OPEN-SOURCE SCRIPT
MTPC Non-Repaint HTF Boxes (Mobile)

MTPC PRO – Non-Repaint HTF Range Breakout Indicator
MTPC PRO is a professional non-repainting Higher Timeframe (HTF) range breakout indicator designed for precision trading and clean structure analysis.
This indicator plots the previous closed HTF candle range as dynamic boxes on lower timeframes and confirms breakouts only after full candle confirmation — ensuring zero repaint behavior.
🔥 Key Features
• 100% Non-Repaint Logic (uses only closed HTF candles)
• Automatic Higher Timeframe Detection
• Manual HTF Selection Option
• True Range Mode (Body-based or Full High-Low Range)
• HTF Trend Confirmation
• Breakout Confirmation Filter
• Dynamic HTF Range Boxes
• Optional Trend-Based Candle Coloring
• Mobile Friendly & Lightweight
📊 How It Works
The script fetches the previous closed Higher Timeframe candle.
It builds a range (High-Low or Body-based).
A box is drawn representing that HTF range.
A breakout is confirmed only when price closes outside the HTF range.
Trend direction is validated before coloring candles.
Because the script strictly uses lookahead_off and previous closed HTF values, signals do not repaint.
🎯 Best Use Cases
• Intraday trading with Daily HTF
• Scalping with H1 / H4 confirmation
• Breakout strategies
• Structure & range traders
• Liquidity zone identification
MTPC PRO is a professional non-repainting Higher Timeframe (HTF) range breakout indicator designed for precision trading and clean structure analysis.
This indicator plots the previous closed HTF candle range as dynamic boxes on lower timeframes and confirms breakouts only after full candle confirmation — ensuring zero repaint behavior.
🔥 Key Features
• 100% Non-Repaint Logic (uses only closed HTF candles)
• Automatic Higher Timeframe Detection
• Manual HTF Selection Option
• True Range Mode (Body-based or Full High-Low Range)
• HTF Trend Confirmation
• Breakout Confirmation Filter
• Dynamic HTF Range Boxes
• Optional Trend-Based Candle Coloring
• Mobile Friendly & Lightweight
📊 How It Works
The script fetches the previous closed Higher Timeframe candle.
It builds a range (High-Low or Body-based).
A box is drawn representing that HTF range.
A breakout is confirmed only when price closes outside the HTF range.
Trend direction is validated before coloring candles.
Because the script strictly uses lookahead_off and previous closed HTF values, signals do not repaint.
🎯 Best Use Cases
• Intraday trading with Daily HTF
• Scalping with H1 / H4 confirmation
• Breakout strategies
• Structure & range traders
• Liquidity zone identification
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.