The talib.AROONOSC()
function is used to calculate the Aroon Oscillator.
The return value of the talib.AROONOSC()
function is: a one-dimensional array.
array
talib.AROONOSC(inPriceHL) talib.AROONOSC(inPriceHL, optInTimePeriod)
The inPriceHL
parameter is used to specify the K-line data.
inPriceHL
true
{@struct/Record Record} structure array
The optInTimePeriod
parameter is used to set the period, the default value is 14.
optInTimePeriod
false
number
function main() {
var records = exchange.GetRecords()
var ret = talib.AROONOSC(records)
Log(ret)
}
import talib
def main():
records = exchange.GetRecords()
ret = talib.AROONOSC(records.High, records.Low)
Log(ret)
void main() {
auto records = exchange.GetRecords();
auto ret = talib.AROONOSC(records);
Log(ret);
}
The AROONOSC()
function is described in the talib library documentation as: AROONOSC(Records[High,Low],Time Period = 14) = Array(outReal)