PROTECTED SOURCE SCRIPT

gary Long Vertical Spread with Trend Filter

9
// Description (begin with English; allowed to include additional languages after):
// English:
// "gary Long Vertical Spread with Trend Filter" — protected release by GaryQuant.
// This indicator generates long-entry related signals (B3, B2) and exit/other signals (S, J)
// based on RSI, simple moving averages and a daily ATR-derived optimal price. A trend filter
// (configurable multi-timeframe) optionally suppresses certain long-entry signals in bearish
// conditions. The script supports a "B filter" to limit B signals frequency, draws persistent
// boxes/labels on confirmed bars, and provides alertconditions for filtered confirmed signals.
//
// Key defaults and usage:
// - Pine version: v5 (script published as Protected).
// - Trend filter default timeframe: 15 minutes (configurable).
// - Daily ATR length default: 14 (used to compute optimal price).
// - Recommended use: short timeframes where 1-minute signals are evaluated, trend filter TF
// may be set to 15m/30m/1h/etc. Adjust inputs to match your instrument and timeframe.
// - Inputs are exposed via the indicator settings (periods, multipliers, B filter minutes, etc.).
// - This publication is Protected; source code is not publicly exposed. The description provides
// sufficient explanation for moderation and user understanding without disclosing proprietary logic.

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.