iOBV
iOBV
计算平衡量指标并返回其值。
double iOBV(
string symbol, // symbol
int timeframe, // timeframe
int applied_price, // applied price
int shift // shift
);参数
- symbol
[in] 要计算指标的数据中的符号名称。NULL表示当前符号。
- timeframe
[in] 时间框架。可以是ENUM_TIMEFRAMES枚举值中的任何一项。0表示当前图表时间框架。
- applied_price
[in] 应用价格。可以是ENUM_APPLIED_PRICE枚举值中的任何一项。
- shift
[in] 从指标缓冲区获取的值的索引(相对于当前条形图向前移动给定数量的周期)。
返回值
平衡量指标的数值。
示例:
double val=iOBV(NULL,0,PRICE_CLOSE,1);最后更新于