可以利用 valuewhen()
Function: Value When [valuewhen()] -------------------------------------------------------------------------------- SYNTAX valuewhen ( Nth, EXPRESSION, DATA ARRAY )
FUNCTION Returns the value of the DATA ARRAY when the EXPRESSION was true on the Nth most recent occurrence. This includes all data loaded in the chart.
EXAMPLE The formula "valuewhen( 2, cross(c,mov(c,10,s), rsi(20) )" returns the value of the RSI on the 2nd most recent occurrence of the closing price crossing above its 10-day moving average.
例如你的例子: "2012年10月12日10点25分 的成交量数据" info:=Year() = 2012 and Month() = 10 and DayOfMonth() = 12 and Hour() =10 and Minute() =25;
Retval := valuewhen( 1, info, V ); Retval
|