OPEN-SOURCE SCRIPT
Asia, London & NY - 50% Level

Asia, London & NY – 50% Level
This indicator automatically tracks the three major trading sessions — Asia, London, and New York — and plots the 50% (midpoint) level of each session's price range directly on the chart.
How it works
For each session, the indicator continuously monitors the highest high and lowest low reached while that session is active. Once it has both extremes, it calculates the midpoint — (session high + session low) / 2 — and draws a horizontal line at that level, labeled accordingly ("50% Asia", "50% London", "50% NY").
Key features
Custom session times: Each session's start/end time is fully configurable via the settings, along with the timezone used for calculation (defaults to America/New_York, but can be set to any timezone).
Live or end-of-session drawing: You can choose whether the level line appears in real time while the session is still forming, or only once the session has fully closed.
Mitigation tracking: After a session ends, the indicator keeps watching price action. If price later comes back and touches that 50% level, the line is automatically marked as "mitigated" — its color and style change (customizable dashed/dotted/solid), and the line stops extending forward, effectively showing at a glance which historical levels have already been revisited by price.
Minimum expansion filter: An optional filter lets you ignore sessions where the price range was too small (below a configurable percentage), so the chart isn't cluttered with insignificant levels from low-volatility sessions.
Full visual customization: Line color, width, and label size can be set independently for each of the three sessions.
This indicator automatically tracks the three major trading sessions — Asia, London, and New York — and plots the 50% (midpoint) level of each session's price range directly on the chart.
How it works
For each session, the indicator continuously monitors the highest high and lowest low reached while that session is active. Once it has both extremes, it calculates the midpoint — (session high + session low) / 2 — and draws a horizontal line at that level, labeled accordingly ("50% Asia", "50% London", "50% NY").
Key features
Custom session times: Each session's start/end time is fully configurable via the settings, along with the timezone used for calculation (defaults to America/New_York, but can be set to any timezone).
Live or end-of-session drawing: You can choose whether the level line appears in real time while the session is still forming, or only once the session has fully closed.
Mitigation tracking: After a session ends, the indicator keeps watching price action. If price later comes back and touches that 50% level, the line is automatically marked as "mitigated" — its color and style change (customizable dashed/dotted/solid), and the line stops extending forward, effectively showing at a glance which historical levels have already been revisited by price.
Minimum expansion filter: An optional filter lets you ignore sessions where the price range was too small (below a configurable percentage), so the chart isn't cluttered with insignificant levels from low-volatility sessions.
Full visual customization: Line color, width, and label size can be set independently for each of the three sessions.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.