OPEN-SOURCE SCRIPT
HTF Candle Box ( 4H ) for CRT

DESCRIPTION:
This indicator overlays the Higher Timeframe (default: 4H) candle
structure directly on your lower timeframe chart (5min, 15min etc).
It draws 3 boxes for every HTF candle:
// - Body Box : The Open-Close range (Bullish = Blue, Bearish = Red)
// - Upper Wick : High to Body Top (Orange dotted) — Liquidity zone
// - Lower Wick : Body Bottom to Low (Orange dotted) — Liquidity zone
//
// WHY USE THIS?
// When you trade on 5min or 15min, it is easy to lose context of where
// price is within the bigger 4H candle. This tool keeps you aware:
// - Are we inside the body? (consolidation or trend continuation)
// - Are we in the wick zone? (liquidity sweep, possible reversal)
// - Where is the 4H open? (key reference level)
//
// SETTINGS:
// - Higher Timeframe : Change to 1H, Daily, Weekly as needed
// - Body & Wick colors are fully customizable
// - Open Price Line can be toggled on/off
//
// Works on any market: Forex, Crypto, Stocks, Indices.
// No repainting — uses lookahead_off.
This indicator overlays the Higher Timeframe (default: 4H) candle
structure directly on your lower timeframe chart (5min, 15min etc).
It draws 3 boxes for every HTF candle:
// - Body Box : The Open-Close range (Bullish = Blue, Bearish = Red)
// - Upper Wick : High to Body Top (Orange dotted) — Liquidity zone
// - Lower Wick : Body Bottom to Low (Orange dotted) — Liquidity zone
//
// WHY USE THIS?
// When you trade on 5min or 15min, it is easy to lose context of where
// price is within the bigger 4H candle. This tool keeps you aware:
// - Are we inside the body? (consolidation or trend continuation)
// - Are we in the wick zone? (liquidity sweep, possible reversal)
// - Where is the 4H open? (key reference level)
//
// SETTINGS:
// - Higher Timeframe : Change to 1H, Daily, Weekly as needed
// - Body & Wick colors are fully customizable
// - Open Price Line can be toggled on/off
//
// Works on any market: Forex, Crypto, Stocks, Indices.
// No repainting — uses lookahead_off.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.