OPEN-SOURCE SCRIPT

VWAP with ±2 & ±3 Sigma

81
o integrate the VWAP and CDV logic for entry along with the ATR-based trailing stop loss for exits, we can combine the concepts and modify the strategy as follows:

Strategy Overview:
Long Entry:
Price is above VWAP.
CDV is positive (bullish).
Short Entry:
Price is below VWAP.
CDV is negative (bearish).
Exit Logic:
For Long: Use the ATR trailing stop. Exit when price crosses below the ATR line.
For Short: Use the ATR trailing stop. Exit when price crosses above the ATR line.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.