OPEN-SOURCE SCRIPT
Candle body break (M_WD4H1H)v5

Overview
This indicator is a multi-timeframe (MTF) analysis tool specialized in detecting candle body breaks. It overlays the break levels for five timeframes: monthly (M), weekly (W), daily (D), 4-hourly (4H), and 1-hourly (1H) on the current chart.
Major Features
Feature Description
Five timeframes: M/W/D/4H/1H. Data for each timeframe is retrieved and calculated using the request.security() function.
Break Detection Logic: A "body break" is defined as when the closing price of the current candlestick exceeds or falls below the body high/low of the previous opposite candlestick.
Confirmed Break Line: A solid line extending from the point of the break to the right edge of the chart indicates the price level at which a previous body break occurred. Upward breaks are drawn in blue, and downward breaks are drawn in red.
Candidate Break Lines: Green dotted lines indicate the (unbroken) body high and low levels that are the next target for a break.
Summary Table: A list of the most recent break direction (upward ⇧ / downward ⇩ / none "") for each time frame (M/W/D/4H/1H) is displayed in the upper right corner of the chart.
Display Time Frame Limit: Depending on user settings, the break line itself will only be displayed for the chart's time frame or higher. Candidate lines can also be displayed only for the current chart's time frame.
Alert Function: An alert will be issued when a body break occurs on the 1-hour (1H) time frame.
Scale Settings: The entire indicator is fixed to the price scale on the right.
This indicator is a multi-timeframe (MTF) analysis tool specialized in detecting candle body breaks. It overlays the break levels for five timeframes: monthly (M), weekly (W), daily (D), 4-hourly (4H), and 1-hourly (1H) on the current chart.
Major Features
Feature Description
Five timeframes: M/W/D/4H/1H. Data for each timeframe is retrieved and calculated using the request.security() function.
Break Detection Logic: A "body break" is defined as when the closing price of the current candlestick exceeds or falls below the body high/low of the previous opposite candlestick.
Confirmed Break Line: A solid line extending from the point of the break to the right edge of the chart indicates the price level at which a previous body break occurred. Upward breaks are drawn in blue, and downward breaks are drawn in red.
Candidate Break Lines: Green dotted lines indicate the (unbroken) body high and low levels that are the next target for a break.
Summary Table: A list of the most recent break direction (upward ⇧ / downward ⇩ / none "") for each time frame (M/W/D/4H/1H) is displayed in the upper right corner of the chart.
Display Time Frame Limit: Depending on user settings, the break line itself will only be displayed for the chart's time frame or higher. Candidate lines can also be displayed only for the current chart's time frame.
Alert Function: An alert will be issued when a body break occurs on the 1-hour (1H) time frame.
Scale Settings: The entire indicator is fixed to the price scale on the right.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.