PROTECTED SOURCE SCRIPT
Diupdate Aegis Swing Projection

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
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
Catatan Rilis
minor changeCatatan Rilis
Add : HTF confirmation
Catatan Rilis
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.
Skrip terproteksi
Skrip ini diterbitkan sebagai sumber tertutup. Namun, anda dapat menggunakannya secara bebas dan tanpa batasan apa pun โ pelajari lebih lanjut di sini.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.
Skrip terproteksi
Skrip ini diterbitkan sebagai sumber tertutup. Namun, anda dapat menggunakannya secara bebas dan tanpa batasan apa pun โ pelajari lebih lanjut di sini.
Pernyataan Penyangkalan
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.