OPEN-SOURCE SCRIPT
已更新

VWAP ORB Strategy

266
Plots the 15-min Opening Range for NY (9:30–9:45 AM ET) and London (3:00–3:15 AM ET), with breakout levels and range-based targets. Includes VWAP and EMA for trend confirmation.
發行說明
VWAP Opening Range Breakout (ORB) strategy for TradingView, written in Pine Script v6.

Here’s a summary of what it does and how it works:

Key Features
* NY & London ORB Sessions:
Detects and draws opening ranges for both New York and London sessions, with configurable session times and timezones.
* Session History:
Displays a user-defined number of previous session ORBs, including their high/low/mid lines and labels.
* Breakout Signals:
Shows breakout signals (arrows) when price crosses above/below the OR high/low, with optional bias based on previous session direction.
* Targets:
Automatically draws target lines above/below the OR range, based on a percentage of the OR width. Targets can be shown adaptively (only near price) or extended (all visible).
* Moving Average:
Optionally plots a session-resetting moving average (SMA/EMA/RMA/WMA/VWMA) starting from the OR open.
* EMAs & VWAP:
Plots two configurable EMAs and a VWAP for additional trend context.
* Customizable Style:
Colors, line styles, and label sizes are all user-configurable.

How It Works
1. Session Detection:
Uses orb_session() to determine if the current bar is within the NY or London ORB session.
2. ORB Calculation:
* On session start: initializes OR high/low, resets counters, and creates a box for the range.
* During session: updates OR high/low as new highs/lows are made.
* On session end: draws lines/labels for OR high/low/mid, fills the range, and calculates targets.
3. Target Calculation:
* Targets are spaced by a user-defined percentage of the OR width.
* Targets are drawn above/below the OR high/low, with adaptive or extended display.
4. Breakout Signals:
* Detects crossovers above OR high or below OR low.
* Optionally filters signals based on daily/session bias.
5. Session History Management:
* Keeps only the most recent N sessions’ drawings, deleting older ones to avoid clutter.
6. Indicators:
* Plots session-based moving average, two EMAs, and VWAP.

Customization
* Session times, timezones, and number of sessions to display
* Breakout signal logic and appearance
* Target calculation method and display style
* Moving average type, length, and color
* EMA/VWAP display and colors
* All colors, line styles, and label sizes
發行說明
This indicator automatically highlights the Opening Range Breakout (ORB) for both the New York and London trading sessions. It draws session boxes, breakout levels, and dynamic price targets on your chart.

Key features:

  • Session Boxes: Clearly marks the NY and London session opening ranges, and keeps the box visible for exactly 2 hours after a breakout.
  • Breakout Levels & Signals: Shows breakout levels and signals when price breaks out of the session range.
  • Dynamic Targets: Automatically plots price targets based on the session range, with options for adaptive or extended display.
  • Session Tools: Includes session-based moving averages, two customizable EMAs, and VWAP.
  • Customization: Adjust session times, timezones, target percentages, and display styles. Show or hide historical sessions as needed.


This tool is ideal for intraday traders who want to visualize session volatility, breakouts, and price targets with clear, automated charting.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。