【发布时间】:2018-11-27 01:00:36
【问题描述】:
我已经创建了枝形吊灯指示器。功能是:
chandlier_exit_long = function(x,k = 3,
n = 22){
high = rollapplyr(Hi(x), width = n, FUN
= max)
atr = ATR(x, n)[, "atr"]
z = high - atr
names(z) = "Chandelier_Exit_Long"
return(z)
}
我已经使用 quantmods 函数 newTA 来创建:
addChandExitLong = newTA(FUN =
chandlier_exit_long, preFUN = OHLC, col
= "red")
【问题讨论】:
标签: r quantmod quantstrat