OPEN-SOURCE SCRIPT
Updated

ADIL_TREND

412
// ===== NOTES =====
// - This indicator tracks an internal position state (inLong / inShort). These are NOT actual executed trades — they are used only to decide when to show exit/cover markers.
// - Long entry requires anchored VWAP condition; short entry ignores VWAP per your earlier spec.
// - Exit / Cover markers are generated only on the single bar that meets the exit condition while the corresponding position is open.
Release Notes
// ===== NOTES =====
// - I disabled the VWAP requirement only on the DAILY timeframe to allow buy criticals on 1D charts.
// - If you want VWAP still required on daily, or want a user input to control this behavior, I can add that.
// - Only execution labels and background are plotted now (no SMA/VWAP lines or critical dots).

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.