talib.ADOSC()
函数用于计算Chaikin A/D Oscillator (佳庆指标)。
talib.ADOSC()
函数的返回值为:一维数组。
array
talib.ADOSC(inPriceHLCV) talib.ADOSC(inPriceHLCV, optInFastPeriod, optInSlowPeriod)
inPriceHLCV
参数用于指定K线数据。
inPriceHLCV
true
{@struct/Record Record}结构数组
optInFastPeriod
参数用于设置快周期。
optInFastPeriod
false
number
optInSlowPeriod
参数用于设置慢周期。
optInSlowPeriod
false
number
function main() {
var records = exchange.GetRecords()
var ret = talib.ADOSC(records, 3, 10)
Log(ret)
}
import talib
def main():
records = exchange.GetRecords()
ret = talib.ADOSC(records.High, records.Low, records.Close, records.Volume, 3, 10)
Log(ret)
void main() {
auto records = exchange.GetRecords();
auto ret = talib.ADOSC(records, 3, 10);
Log(ret);
}
ADOSC()
函数在talib库文档中的描述为:ADOSC(Records[High,Low,Close,Volume],Fast Period = 3,Slow Period = 10) = Array(outReal)