Thank you so much for this valuable script. Question: Is the result without repainting? Thanks in advance for the answer. Maybe also an Idea for an Alertcondition statement?
capissimo
⋅
@cihanoezkaya, according to a recent article on repainting, since the script does not contain a security statement a-la security(..., price, ...), where price is close, hl2, or any other CURRENT value, it does not repaint.
@capissimo, Yes, it repaint... Repainting mean change plot history after the candle close. "security" can also not repaint but can cause repaint depending how it is used. Your script repaint each signal because you setup an offset on the buy/sell plots. Each signal are triggered one candle later in the reality.
Hunter-Gatherer
⋅
Capissimo, what settings are you supposed to use with the "Gain" function?
Great Job Capissimo, Is there any chance you could explain the code from line 10 to 29. Just trying to understand the strategy behind it.
youssefijburg
⋅
Thank you so much what a wonderfull script. Do you have any idea what indicator combination I can use it with to further improve the signals?
I tried it with oscillators but they give horrible results.