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. اقرأ المزيد في شروط الاستخدام.