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
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。