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.
發行說明
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 publications is governed by House rules. 您可以收藏它以在圖表上使用。