OPEN-SOURCE SCRIPT
Ash — ORB / Premkt / PrevDay (Set Lines)

This indicator automatically plots three of the most important intraday reference levels for day traders:
✅ 15-Minute Opening Range Breakout (ORB)
Captures the high and low of the first 15 minutes after the regular session open (9:30–9:45 EST).
Levels are locked in at 9:45 and extend across the rest of the trading day until the close (16:00 EST).
✅ Premarket High & Low
Tracks the overnight/pre-market session (default: 04:00–09:30 EST).
At the opening bell, the premarket high and low are fixed and extended across the regular session until close.
✅ Previous Day High & Low
Uses the prior day’s regular trading session high and low.
Plotted automatically at today’s open and extended across the full session.
🔹 Why it’s useful:
Quickly see areas of potential support, resistance, and breakout zones.
Helps identify confluence between ORB, premarket, and previous day levels.
Designed to stay clean and locked — lines do not repaint or “walk forward” candle by candle.
Keeps only the last N days of levels (default: 20) for a clear chart without clutter.
⚙️ Customization:
Toggle on/off each group of levels (ORB, Premarket, Previous Day).
Full control over colors and line thickness.
Adjustable number of historical days to keep.
📌 Best For:
Day traders and scalpers using ORB strategies, VWAP confluence, or supply & demand analysis. Works on stocks, ETFs, futures, and crypto with extended hours enabled.
✅ 15-Minute Opening Range Breakout (ORB)
Captures the high and low of the first 15 minutes after the regular session open (9:30–9:45 EST).
Levels are locked in at 9:45 and extend across the rest of the trading day until the close (16:00 EST).
✅ Premarket High & Low
Tracks the overnight/pre-market session (default: 04:00–09:30 EST).
At the opening bell, the premarket high and low are fixed and extended across the regular session until close.
✅ Previous Day High & Low
Uses the prior day’s regular trading session high and low.
Plotted automatically at today’s open and extended across the full session.
🔹 Why it’s useful:
Quickly see areas of potential support, resistance, and breakout zones.
Helps identify confluence between ORB, premarket, and previous day levels.
Designed to stay clean and locked — lines do not repaint or “walk forward” candle by candle.
Keeps only the last N days of levels (default: 20) for a clear chart without clutter.
⚙️ Customization:
Toggle on/off each group of levels (ORB, Premarket, Previous Day).
Full control over colors and line thickness.
Adjustable number of historical days to keep.
📌 Best For:
Day traders and scalpers using ORB strategies, VWAP confluence, or supply & demand analysis. Works on stocks, ETFs, futures, and crypto with extended hours enabled.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.