The resource loading... loading...

talib.ROCR100

The talib.ROCR100() function is used to calculate Rate of change ratio 100 scale: (price/prevPrice)*100 (price change ratio).

The return value of the talib.ROCR100() function is: a one-dimensional array. array

talib.ROCR100(inReal) talib.ROCR100(inReal, optInTimePeriod)

The inReal parameter is used to specify the K-line data. inReal true {@struct/Record Record} structure arrays, numeric arrays The optInTimePeriod parameter is used to set the period, the default value is 10. optInTimePeriod false number

function main() {
    var records = exchange.GetRecords()
    var ret = talib.ROCR100(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.ROCR100(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.ROCR100(records);
    Log(ret);
}

The ROCR100() function is described in the talib library documentation as: ROCR100(Records[Close],Time Period = 10) = Array(outReal)

talib.ROCR talib.RSI