其實大部份的解釋, 你都可以於 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 內說明喇 !! |