PROTECTED SOURCE SCRIPT

Safety Trade

21
Overview
Safety Trade plots a deterministic set of adaptive support levels anchored to 4H data and overlays them on any chart timeframe. The script does not use lookahead or future data. Line styles (color/width/type) are user-editable in the Style tab; logic parameters are fixed to keep results uniform across users.

What makes it different
All computations are centralized on 4H, then the finished values are displayed on lower or higher timeframes. This reduces parameter drift, simplifies cross-user comparisons, and avoids ambiguous “moving targets.”

Method (high level)
On 4H, a smoothed baseline is built from recent lowest lows using a moving average. From that baseline, LL2/LL3/LL4 are derived and smoothed on 4H as well. A deterministic mid-line between LL2 and LL3 is used internally (no bar-index tricks or animations). Five empirical extra levels are then computed between LL4 and LL3 using fixed multipliers: 5.33, 4.37, 3.52, 2.95, 2.30. These are not classic Fibonacci; they serve as research/visual guideposts only.

How to use (practical playbook)
Timeframe and confirmation: Values finalize on the 4H close. Confirm setups on 4H candles; use lower TFs only to fine-tune entries once a 4H condition is met.
Reading the levels: The LL4→LL3 corridor is an adaptive 4H support envelope. Level 1…Level 5 are non-linear subdivisions inside this corridor for staging partial exits, re-entries, and trailing stops. Basic bias: above LL3 with rising slope = bullish context; persistent 4H closes below LL4 with retests from below = bearish context.
スナップショット

Long setups:
• Rebound from LL4 (mean-reversion long): Wick through LL4, then a 4H close back above LL4. Entry next bar or on a small pullback; stop = LL4 − 0.5–1.0 × ATR(14, 4H). Targets: L5 → L4 → L3 (e.g., 30/30/40). After first take-profit move stop to breakeven, then trail under the next lower level.
スナップショット
• Retest of LL3 from above (trend-continuation long): Confirmed 4H close above LL3, then pullback holding LL3. Stop slightly below LL3 or below the retest swing low. Targets: structure highs or ladder via L3→L2→L1.
Short setup (mirror): 4H close below LL4, retest fails from below; stop above LL4; manage via structure/ATR and trail above swing highs or above the nearest level.
When to stand aside: High-impact news spikes; mid-corridor chop with no tests of LL4/LL3; before a decisive 4H close.
Confluence: Higher-TF market structure (D/1W), volume/OBV/MFI, and candle behavior right at LL4/LL3.
Risk: Keep per-trade risk small (e.g., 0.5–1%). Prefer partial take-profits over all-or-nothing. If volatility expands, widen stops slightly (ATR-based) and reduce size to keep risk constant.
Common mistakes: Treating lines as guaranteed reversal points; entering off a lower-TF touch without 4H confirmation; claiming performance on synthetic charts; fighting a strong down-slope below LL4.

Multi-timeframe behavior
On lower chart timeframes, values can shift intrabar until the current 4H candle closes. After the 4H close, values are fixed for that 4H segment. Lookahead is off.

What this is not
Not a strategy and not a signal generator. No claims about accuracy or ROI. Past performance does not guarantee future results.

Compatibility and scope
Pine v5, overlay, user-editable line styles. Works on any symbol/timeframe; all computations are centralized on 4H.

Changelog
v1.0 — Initial public release: 4H-anchored processing, no lookahead, user-editable styles, five empirical extra levels.

Disclaimer
For informational and educational purposes only. Not financial advice. Use at your own risk.


免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。