It is repainted because it uses a moving average line. A marker is only true if it was created after the candle closed. The principle is too simple. Please enjoy using it.
[Trend] - Up : Conversion Line > MA #1 and Base Line > MA #2 It is an uptrend. The short-term moving average should be above the conversion line. And the long-term should be above the Base Line. - Down : Conversion Line < MA #1 and Base Line < MA #2 It's a downtrend. The short-term moving average should be below the conversion line. And the long-term should be below the Base Line.
You can get better results if you use a momentum indicator like RSI. Thank you.
Release Notes
When all conditions are satisfied, the color is blue. Down condition is red when all conditions are satisfied. If not all satisfied, it is alpha color.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.