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 de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.