资源加载中... loading...

TA.OBV

TA.OBV()函数用于计算能量潮指标

TA.OBV()函数的返回值为:一维数组。 array

TA.OBV(inReal) TA.OBV(inReal, inPriceV)

inReal参数用于指定K线数据。 inReal true {@struct/Record Record}结构数组、数值数组 inPriceV参数用于指定成交量数据。 inPriceV false {@struct/Record Record}结构数组

function main(){
    var records = exchange.GetRecords(PERIOD_M30)
    var obv = TA.OBV(records)
    Log(obv)
}
def main():
    r = exchange.GetRecords(PERIOD_M30)
    obv = TA.OBV(r)
    Log(obv)
void main() {
    auto r = exchange.GetRecords(PERIOD_M30);
    auto obv = TA.OBV(r);
    Log(obv);
}

测试TA.OBV()函数:

{@fun/TA/TA.MACD TA.MACD}, {@fun/TA/TA.KDJ TA.KDJ}, {@fun/TA/TA.RSI TA.RSI}, {@fun/TA/TA.ATR TA.ATR}, {@fun/TA/TA.MA TA.MA}, {@fun/TA/TA.EMA TA.EMA}, {@fun/TA/TA.BOLL TA.BOLL}, {@fun/TA/TA.Alligator TA.Alligator}, {@fun/TA/TA.CMF TA.CMF}, {@fun/TA/TA.Highest TA.Highest}, {@fun/TA/TA.Lowest TA.Lowest}

TA.ATR TA.MA