PROTECTED SOURCE SCRIPT
gary Long Vertical Spread with Trend Filter

// 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.
// 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.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
hello world
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
hello world
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.