『最佳拍檔』智能決策系統

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2547|回复: 4

請教解釋

[复制链接]
发表于 2007-4-17 20:01:04 | 显示全部楼层 |阅读模式

MatthewAY,
誰教下列式:
BarsSince(cross(70,RSI(14)))
其中BarsSince是甚麼意思?
另WriteVal(open,8.4)
其中WriteVal及尾的8.4是代表甚麼?
還有WriteIf是否代表{如果}

請指導,Thanks!

发表于 2007-4-17 22:06:08 | 显示全部楼层

其實大部份的解釋, 你都可以於 Help 內找到,

而於  "教學篇 - 第九章 MetaStock 的函式編寫功能"
http://www.bp-system.com/discuz/ ... ;page=1&fpage=1

內  "9.3 如何尋找解釋及說明"   我已教了你們如何自助找答案了 !

所以這些基本問題, 你可以很容易找到:

 

SYNTAX barssince( DATA ARRAY )

FUNCTION Calculates the number of bars (time periods) that have passed since DATA ARRAY was true.

Important:  When using the barssince() function in an exploration, you must choose the "Load ___ Records" button in the Explorer Options dialog (see Explorer Options) and specify a value equal to the number of bars loaded in your chart; otherwise, the exploration results may not be accurate.

EXAMPLE barssince( macd() < 0 )

 


SYNTAX writeval( DATA ARRAY )
   or
writeval( DATA ARRAY , FORMAT )

FUNCTION This function can only be used within an expert commentary.  It is used to display the numeric value and decimal format of DATA ARRAY.  The decimal format is X.Y where X is the total number of digits, and Y is the number of digits to the right of the decimal point.

EXAMPLE writeval( stoch(39,3) - stoch(12,3) ,5.2)

SEE ALSO For more detailed Information on using the writeval() function within an expert commentary, see Displaying Numeric Values with Writeval().

 


SYNTAX writeif( EXPRESSION, "TRUE TEXT", "FALSE TEXT" )

FUNCTION This function can only be used within an expert commentary.  If EXPRESSION evaluates to "true", then the TRUE TEXT string is displayed within the commentary.  If EXPRESSION evaluates to "false", then the FALSE TEXT string is displayed.

EXAMPLE writeif( c > mov(c,200,s), "The close is above the 200-period moving average.","The close is below the 200-period moving average." )

SEE ALSO For more detailed Information on using the writeif() function within an expert commentary, see  Displaying Conditional Text with Writeif().

 

現在便一目了然 !!  唔須要多講啦 !!

要成功學習 MetaStock , 就要自己多看 Help  內說明喇 !!

 楼主| 发表于 2007-4-18 13:55:13 | 显示全部楼层
Thanks,MatthewAY
但我的英文
发表于 2007-4-18 18:27:08 | 显示全部楼层

哦~~   唔須要擔心 !  網上世界乜都有 !

全編英文替你轉換為中文都有 !   用法很簡單, 自己試試吧 !

如果翻譯得唔通順的地方就要自己執生喇 !!

網址:   http://babelfish.altavista.com/tr

 楼主| 发表于 2007-4-21 10:51:26 | 显示全部楼层
多謝介紹!
Thanks!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|『最佳拍檔』智能決策系統

GMT+8, 2024-4-29 21:17 , Processed in 0.052883 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表