♥ 0 |
Straightforward, I have an awesome indicator that I’m trying to use, but its slow. It takes around 3-4, 2 min candles before it even plots on both the short and long. It would be amazing if it was faster! please help someone if you can. Also, if you can make an alert on top of it to alert when it plots awesome! Thanks! Logan
input signalOffsetFactor = 0.20; def signalOffset = Average(TrueRange(high, close, low), 9) * signalOffsetFactor; def triggerSell = If(If(close[-1] < high, 1, 0) and (hlc3[-2] < close[-1] or hlc3[-3] < close[-1]), 1, 0); def triggerBuy = If(If(close[-1] > low, 1, 0) and (hlc3[-2] > close[-1] or hlc3[-3] > close[-1]), 1, 0); rec buySellSwitch = If(triggerSell, 1, If(triggerBuy, 0, buySellSwitch[1])); def thirdBarClosed = If(IsNaN(hlc3[-3]), 0, 1); plot SBS = If(triggerSell and thirdBarClosed and !buySellSwitch[1], high + signalOffset, If(triggerBuy and thirdBarClosed and buySellSwitch[1], low – signalOffset, Double.NaN)); SBS.SetStyle(Curve.FIRM); SBS.AssignValueColor(if triggerSell then
Marked as spam
|
Please log in to post questions.