OPEN-SOURCE SCRIPT

Moving Average Channel Breakout (No Repaint)

208
This indicator creates a channel using two simple moving averages: SMA of highs (upper line) and SMA of lows (lower line).

How it works:
- When a candle closes above the upper channel line, the following candles turn green (bullish trend)
- When a candle closes below the lower channel line, the following candles turn red (bearish trend)
- The trend color remains until a breakout in the opposite direction occurs

Anti-repaint:
This indicator does NOT repaint. The candle color is determined at the open, based on the previous candle's close. Once a candle opens with a color, that color never changes.

Breakout strategy:
- Candle opens green → Long entry signal
- Candle opens red → Short entry signal

The signal and entry moment are perfectly synchronized at the candle open, making it ideal for systematic breakout strategies.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。