OPEN-SOURCE SCRIPT

ATR Trailing Stoploss with VWAP

168
plot vwap lin and ATR line too, even though we don't use atr in the logic. atr code is given below. make it a strategy.
Above VWAP: If the price stays above VWAP, it signals a bullish trend → Look for long entries.
Below VWAP: If the price stays below VWAP, it signals a bearish trend → Look for short entries.
Long Entry (Price Crossing VWAP Upward)
If the price crosses above VWAP with strong volume (CDV rising), it may indicate a trend reversal → Enter a long position.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.