I need the attached indicator modified (fixed).
It paints a trailing stop loss above and below price based on the Average True Range. I want to use it as a stop and reverse strategy similar to how the Parabolic SaR indicator works.
However, the attached indicator has a few bugs which need to be fixed.
In a down trend, the blue stop loss line is above the price. When a price candle moves higher and crosses the blue stop loss line, a new line should immediately appear below the price candle, but it doesn't. The new line below price does not appear until 1 candle later. I need a new line to appear instantly below a candle as soon as the candle breaks the line above it.
Also, as price is moving, the blue line often "disappears" or moves position. This should not happen. The blue lines above and below price should always be visible and should never change position. I need the lines to be fixed in place in exactly the same way that the dots on the Parabolic SaR indicator remain fixed and unchanged. I want to use this ATR trailing stop line for a stop and reverse strategy.
This should be a simple project, and I need it done quite urgently. If you have any questions please let me know.