VWAP LX (Strategy)
Input Information
Name | Type | Default | Description |
PriceToUseInVWAPCalc |
Numeric | AvgPrice | A bar price or other value used to calculate the estimated volume-weighted average price (VWAP). |
RestartCondition | Numeric | 1 | This input determines when the VWAP calculation is restarted. By default, the calculation is restarted at the start of a new regular session only (RestartCondition = 1). But the calculation can also be set to restart at every new session (2), or to calculate only during the regular session (3). |
Usage
Long exit (LX) strategy. Exits a long position when the close of a bar crosses from above the volume-weighted average price (VWAP) to below the VWAP.
Description
Volume-weighted average price (VWAP) values are calculated based by averaging volume-weighted prices (see VWAP (Estimated)).
In this strategy, a long exit signal is generated when the close of a bar crosses under the VWAP value. This means that a long exit (sell) order will be generated when, subsequent to a bar closing above the VWAP value, a bar closes below the VWAP value.
For visualization purposes, you may find the indicator VWAP (Estimated) to be helpful.
Order Name: VWAP-LX
Related Strategies: VWAP Bands SE, VWAP Bands LE, VWAP SX
Related Indicator: VWAP (Estimated)