PROTECTED SOURCE SCRIPT
Обновлено

Aegis Swing Projection

137
HorizonCurve — Swing Projection 📈✨

Type: Overlay forward projection
Best on: Liquid markets, mid-TFs (5m–4h) 🕒💧

What it does 🔮

Projects a smooth future path to the right of the last candle by blending:
Drift (trend) ➜ linear-regression slope 📐
Swing (cycle) ➜ phase-locked sine wave 🎛️
Pull (mean reversion) ➜ gravity to EMA Fast 🧲

Segments color by direction:

🟢 up, 🔴 down, 🟠 flat
If market validity is weak, lines become dashed (shadow mode) ➖ to show a low-confidence what-if path.

Built-in validation 🛡️

Solid lines only if these pass:
Trend strength (EMA distance vs ATR) 💪
Close ↔ EMAfast correlation (consistency) 🔗
Over-extension (|Close−EMAfast| / ATR) 🚧

Momentum confirmation (RSI + price change aligned with trend) ⚡

If any fails ➜ dashed “shadow” lines.

Confidence HUD (top-right) 🧠

A tiny table shows a composite Confidence 0–100:
✅ > 80%: Green background (strong)
🟠 51–79%: Orange (moderate)
⚪ < 50%: White (weak; black text for readability)
Status: Valid (solid) or Shadow (dashed).

Key Inputs ⚙️

Mode: Auto / Manual (Volatile • Normal • Sideways) 🔀
Loopback Length (Regression): bars for drift 🔁
Future Bars Projection: how far to project ⏩

EMA Fast / EMA Slow: trend & pull anchors 📊

Validation Gate: on/off filters 🧰

Momentum Confirmation (RSI): trend alignment 📈

Projection Line Width: thickness 📏

Show EMA Lines: toggle EMAs 👀

HUD Toggle: show/hide table 🧾

How to read it 🧭

Solid 🟢/🔴/🟠 = higher trust (filters passed)
Dashed 🟢/🔴/🟠 = alternate scenario (filters failed)
Steep curve = strong trend/cycle combo 🚀
Flatter curve = weak trend or stronger reversion 💤

Suggested usage 🧩

Use as context/anticipation, not a standalone signal.

Combine with structure, S/R, and your risk plan 🧱🎯

Prefer solid for primary plan; treat dashed as contingency.

Tune Future Bars to timeframe (e.g., 20–60 intraday, 10–30 higher TF).

In chop, try Manual ➜ Sideways to tame amplitude 🌊➡️🌊

Limitations ⚠️

It’s a model, not a crystal ball. News/gaps can break patterns 🗞️⚡

Curve doesn’t repaint historically, but re-anchors each new bar to project forward 🔁

Quick presets 🧪

Intraday volatile (5–15m): Loopback 80–120, Future 30–50, Volatile

Normal trend (15m–1h): Loopback 80, Future 30–40, Auto

Sideways: Sideways mode, Future 20–30
Информация о релизе
minor change
Информация о релизе
Add :
HTF confirmation
Информация о релизе
What is HTF and what does it do here?

HTF (Higher Timeframe) = a timeframe higher than your current chart (e.g., you’re on 15m, HTF is 1H/4H/D1).
Why use it? Because trend and momentum on higher timeframes tend to be more reliable. In this indicator, HTF is used to:

Confirm Direction

We compare EMA Fast vs EMA Slow on the HTF.

If HTF is up (EMA Fast > EMA Slow) and your local TF is also up, they’re aligned → the projection is more trustworthy.

If they disagree, it’s a counter-trend situation.

Strengthen or Weaken the Projection (depending on mode)

HTF can make the projection more aggressive when aligned, or tamer when it’s against the HTF bias.

Filter Signal Quality

If HTF disagrees, we switch the line to dashed (shadow) or even hide it (if you choose that mode).

This helps you avoid noise on lower timeframes.

HTF Modes (v20.2)

Filter (Solid/Dashed) (default, same behavior as before)

Only changes how the line is shown:

Aligned with HTF → solid (valid)

Against HTF → dashed (shadow)

It doesn’t change the curve’s shape.

Blend Drift Direction

Adjusts projection slope (the “drift”) based on HTF.

If aligned → boosts slope (more punch).

If against → reduces slope (flatter).

Strength controlled by HTF Weight (%).

Scale Amplitude

Adjusts the oscillation size of the projection.

If aligned → increases amplitude (bigger waves).

If against → decreases amplitude (calmer).

Hide on Disagree

If HTF disagrees, the projection is not drawn at all.

Great for traders who only want HTF-aligned scenarios.

HTF Weight (%): controls how strong modes #2 and #3 apply (0% = no effect, 100% = max effect).

Why “changing HTF” sometimes looks like nothing happens?

Common reasons:

You’re still on Filter (Solid/Dashed) mode and HTF happens to be aligned most of the time → the curve looks the same; only the status (solid vs dashed) would change.

useHTFConfirm is OFF → HTF is ignored.

HTF equals your chart’s TF (e.g., chart 1H, HTF 1H) → nearly identical bias.

HTF EMAs (50/200) are slow; in choppy/flat markets, the HTF bias hardly changes → effect is subtle.

How to make the effect obvious:

Choose HTF = 240 (4H) or D (Daily) when trading 5m–30m.

Use HTF Mode = Blend Drift Direction or Scale Amplitude.

Increase HTF Weight to 60–80%.

HTF Strength Meter & HUD

HTF Strength % measures how strong the HTF trend is: based on |EMA Fast − EMA Slow| / ATR (HTF), smoothed and scaled 0–100.

< 50% → white text (weak)

51–79% → orange (moderate)

≥ 80% → green (strong)

HUD Row 1 (Conf): Overall model confidence (trend/slope/volatility mix).

HUD Row 2 (HTF): HTF Up/Down + Strength %.

Quick presets (so you can feel it right away)

Scalping 5–15m

HTF = 240 (4H), HTF Mode = Blend Drift Direction, HTF Weight = 70%.

Projection gets more assertive when 4H aligns; flattens when it doesn’t.

Intraday 15–60m

HTF = D (1D), HTF Mode = Scale Amplitude, HTF Weight = 60%.

Oscillation grows with daily alignment; shrinks against it.

Swing 4H–1D

HTF = W (Weekly), HTF Mode = Hide on Disagree.

Only draw when the weekly bias agrees.

TL;DR

HTF = the “big picture” guardrail.

It can tag signals (solid/dashed), shape the curve (slope/amp), or suppress the projection when counter-trend.

Use HTF Mode + HTF Weight to control how much the projection respects the higher timeframe.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.