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

talib.SAREXT

The talib.SAREXT() function is used to calculate the Parabolic SAR - Extended (enhanced parabolic steering).

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

talib.SAREXT(inPriceHL) talib.SAREXT(inPriceHL, optInStartValue) talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse) talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong) talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong, optInAccelerationLong) talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong, optInAccelerationLong, optInAccelerationMaxLong) talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong, optInAccelerationLong, optInAccelerationMaxLong, optInAccelerationInitShort) talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong, optInAccelerationLong, optInAccelerationMaxLong, optInAccelerationInitShort, optInAccelerationShort) talib.SAREXT(inPriceHL, optInStartValue, optInOffsetOnReverse, optInAccelerationInitLong, optInAccelerationLong, optInAccelerationMaxLong, optInAccelerationInitShort, optInAccelerationShort, optInAccelerationMaxShort)

The inPriceHL parameter is used to specify the K-line data. inPriceHL true {@struct/Record Record} structure array The optInStartValue parameter is used to set the Start Value, the default value is 0. optInStartValue false number The optInOffsetOnReverse parameter is used to set Offset on Reverse, the default value is 0. optInOffsetOnReverse false number The optInAccelerationInitLong parameter is used to set the AF Init Long, the default value is 0.02. optInAccelerationInitLong false number The optInAccelerationLong parameter is used to set the AF Long, the default value is 0.02. optInAccelerationLong false number The optInAccelerationMaxLong parameter is used to set the AF Max Long, the default value is 0.2. optInAccelerationMaxLong false number The optInAccelerationInitShort parameter is used to set AF Init Short, the default value is 0.02. optInAccelerationInitShort false number The optInAccelerationShort parameter is used to set AF Short, the default value is 0.02. optInAccelerationShort false number The optInAccelerationMaxShort parameter is used to set AF Max Short, the default value is 0.2. optInAccelerationMaxShort false number

function main() {
    var records = exchange.GetRecords()
    var ret = talib.SAREXT(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.SAREXT(records.High, records.Low)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.SAREXT(records);
    Log(ret);
}

The SAREXT() function is described in the talib library documentation as: SAREXT(Records[High,Low],Start Value = 0,Offset on Reverse = 0,AF Init Long = 0.02,AF Long = 0.02,AF Max Long = 0.2,AF Init Short = 0.02,AF Short = 0.02,AF Max Short = 0.2) = Array(outReal)

talib.SAR talib.SMA