talib.SAREXT()
函数用于计算Parabolic SAR - Extended (增强型抛物线转向)。
talib.SAREXT()
函数的返回值为:一维数组。
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)
inPriceHL
参数用于指定K线数据。
inPriceHL
true
{@struct/Record Record}结构数组
optInStartValue
参数用于设置Start Value,默认值为0。
optInStartValue
false
number
optInOffsetOnReverse
参数用于设置Offset on Reverse,默认值为0。
optInOffsetOnReverse
false
number
optInAccelerationInitLong
参数用于设置AF Init Long,默认值为0.02。
optInAccelerationInitLong
false
number
optInAccelerationLong
参数用于设置AF Long,默认值为0.02。
optInAccelerationLong
false
number
optInAccelerationMaxLong
参数用于设置AF Max Long,默认值为0.2。
optInAccelerationMaxLong
false
number
optInAccelerationInitShort
参数用于设置AF Init Short,默认值为0.02。
optInAccelerationInitShort
false
number
optInAccelerationShort
参数用于设置AF Short,默认值为0.02。
optInAccelerationShort
false
number
optInAccelerationMaxShort
参数用于设置AF Max Short,默认值为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);
}
SAREXT()
函数在talib库文档中的描述为: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)