talib.ULTOSC
The talib.ULTOSC() function is used to calculate the Ultimate Oscillator.
talib.ULTOSC(inPriceHLC)
talib.ULTOSC(inPriceHLC, optInTimePeriod1)
talib.ULTOSC(inPriceHLC, optInTimePeriod1, optInTimePeriod2)
talib.ULTOSC(inPriceHLC, optInTimePeriod1, optInTimePeriod2, optInTimePeriod3)Examples
javascript
function main() {
var records = exchange.GetRecords()
var ret = talib.ULTOSC(records)
Log(ret)
}
python
import talib
def main():
records = exchange.GetRecords()
ret = talib.ULTOSC(records.High, records.Low, records.Close)
Log(ret)
c++
void main() {
auto records = exchange.GetRecords();
auto ret = talib.ULTOSC(records);
Log(ret);
}Returns
| Type | Description |
array | The |
Arguments
| Name | Type | Required | Description |
inPriceHLC |
| Yes | The |
optInTimePeriod1 | number | No | The |
optInTimePeriod2 | number | No | The |
optInTimePeriod3 | number | No | The |
Remarks
The ULTOSC() function is described in the talib library documentation as: ULTOSC(Records[High,Low,Close],First Period = 7,Second Period = 14,Third Period = 28) = Array(outReal)