Vector Coherence Moving Average (VCMA)Vector Coherence Moving Average (VCMA)
Vector Coherence Moving Average (VCMA) is an adaptive moving average based on the directional alignment of recent price-change vectors. It is intentionally presented as a thin, fixed-color line.
VCMA adjusts its smoothing speed according to two questions: Are recent price changes pointing in a consistent direction? Is that consistency supported by several meaningful moves rather than one isolated event? Strong, well-supported alignment makes the average more responsive. Weak or poorly supported alignment keeps it closer to its slow response.
How VCMA Is Calculated
1. Delay-Coordinate Price Path
VCMA first calculates the bar-to-bar change in the selected Source:
d(t) = Source(t) - Source(t-1)
It then represents price as a point on a two-dimensional delay-coordinate path:
X(t) =
Moving from X(t-1) to X(t) creates the lag vector:
z(t) = X(t) - X(t-1) =
Magnitude(t) = sqrt
During persistent movement, these vectors tend to point in similar directions. During back-and-forth movement, they point in conflicting directions and cancel when summed.
2. Vector Coherence
Over the selected Coherence Length, VCMA compares the straight-line displacement of this path with the total distance it traveled. Equivalently, it compares the length of the summed vector with the sum of all individual vector lengths:
rho = sqrt / Sum sqrt
In this form, rho is a two-dimensional path-efficiency, or straightness, ratio.
The triangle inequality keeps rho between 0 and 1:
• rho near 1 - recent lag vectors are strongly aligned
• rho near 0 - vector directions largely cancel
Both parts of the ratio scale with price movement, so vector coherence is independent of the instrument's nominal price level.
3. Effective-Move Support
A single large move can produce high coherence simply because little else opposes it. VCMA therefore calculates an effective sample size from vector magnitudes:
Effective Moves = (Sum Magnitude)^2 / Sum Magnitude^2
This is a participation measure rather than a literal count of bars. It is low when one move dominates and rises when several moves contribute meaningful magnitude.
Support = Clamp
With the default target of 3, VCMA requires broader support before using the full coherence signal. This reduces immediate maximum-speed reactions to an isolated gap, spike, or wick.
4. Adaptive Alpha
The Fast and Slow periods define the response limits of the recursive average. The script automatically treats the shorter input as Fast and the longer input as Slow:
Fast Alpha = 2 / (Fast Period + 1)
Slow Alpha = 2 / (Slow Period + 1)
Speed Gate = rho^Coherence Power x Support
Adaptive Alpha = Slow Alpha + (Fast Alpha - Slow Alpha) x Speed Gate
Raw VCMA = Previous Raw VCMA + Adaptive Alpha x (Source - Previous Raw VCMA)
Alpha always remains between the selected Slow and Fast values. Coherence Power shapes the transition: higher values require rho to move closer to 1 before VCMA accelerates substantially.
5. Output WMA
The displayed line is a weighted moving average of the raw adaptive result:
VCMA = WMA(Raw VCMA, Output WMA Length)
The default 3-period WMA reduces small residual turns while adding only modest lag. Set the length to 1 to display the unsmoothed adaptive core.
The Mathematical Idea
VCMA introduces a distinctive adaptive-moving-average construction that extends one-dimensional price-path efficiency into a two-dimensional delay-coordinate path and adds an effective-move gate to reduce acceleration caused by isolated shocks.
The delayed price points X(t) = form a path whose steps are the vectors . The coherence ratio is the path's net displacement divided by its total traveled distance. It therefore measures how straight and directionally consistent the recent delayed path has been. Unlike a one-dimensional ratio, it can also respond to irregular relationships between adjacent price changes, even when those changes share the same sign.
The effective-move gate adds an additional test for concentration. Vector coherence measures directional agreement; effective-move support measures whether that agreement is distributed across enough movement. VCMA accelerates only when both conditions support the change.
This gives VCMA a causal, scale-free, and bounded adaptive core. It does not project price forward, and the final WMA uses only positive weights. Like every moving average, VCMA still has lag. Its purpose is to vary that lag according to the observed structure of the price path.
Characteristics and Advantages
• Clean fixed-color presentation with no embedded trend classification
• Scale-free vector-coherence measurement
• Bounded response between interpretable Fast and Slow periods
• Reduced sensitivity to isolated high-coherence shocks
• Adjustable nonlinear response through Coherence Power
• Optional short WMA for a steadier final line
• Internal diagnostics available in TradingView's Data Window
How to Read VCMA
VCMA uses one fixed color; color carries no directional or regime meaning. Read the line through its slope, its position relative to price, and the way price behaves around it.
Slope
A rising VCMA indicates that the adaptive baseline is moving higher. A falling VCMA indicates that it is moving lower. A flattening line suggests that recent directional progress is weakening or becoming less consistent.
Price Position
Price holding above a rising VCMA supports a bullish trend interpretation. Price holding below a falling VCMA supports a bearish interpretation. The combination of price position and slope is more informative than either observation alone.
Distance and Crossings
A widening distance between price and VCMA can reflect strong momentum, but it may also indicate extension from the adaptive baseline. Pullbacks toward VCMA can provide trend context when market structure remains intact. Repeated crossings usually indicate unsettled or range-bound movement where a moving-average baseline has less value.
Data Window Diagnostics
• VCMA Coherence Score - raw vector coherence multiplied by move support
• VCMA Raw Vector Coherence - directional alignment before the support gate
• VCMA Effective-Move Support - how broadly vector magnitude is distributed
• VCMA Adaptive Alpha - the smoothing coefficient used by the raw core
High raw coherence with low support often means that one dominant event has not yet received enough support from other moves. High coherence and high support allow alpha to move toward its Fast limit.
Understanding the Settings
Source
Selects the price series used by VCMA. The default is Close.
Coherence Length
Controls the window used to measure vector alignment. Shorter values adapt sooner; longer values evaluate a broader path and usually change more gradually.
Fast Period and Slow Period
Define the fastest and slowest possible responses. A shorter Fast Period increases maximum responsiveness. A longer Slow Period makes VCMA more conservative when coherence or support is weak.
Coherence Power
Higher values suppress medium coherence more strongly and reserve fast responses for readings closer to 1. Lower values produce a softer, earlier acceleration.
Effective Moves for Full Speed
Sets how much distributed movement is required for full support. Higher values reject isolated movement more strongly but may delay acceleration at the beginning of a genuine trend.
Output WMA Length
Controls final smoothing. Higher values produce a steadier line with more lag. A value of 1 disables this stage.
Practical Use
VCMA can serve as an adaptive trend baseline, a pullback reference, a directional filter, or a mathematical building block beside other indicators. Its minimal presentation is useful when the trader wants to interpret the average directly rather than rely on built-in state colors or crossover logic.
VCMA does not predict future price or eliminate whipsaws. Settings should be matched to the instrument, timeframe, and intended holding period, with price structure, volatility, volume, and higher-timeframe context used as additional evidence.
---
Vector Coherence Moving Average (VCMA)
Vector Coherence Moving Average (向量一致性移動平均線) 是以近期價格變化向量之方向一致性為基礎的自適應移動平均線。它刻意保持簡潔,使用固定顏色的細線。
VCMA 會根據兩個問題調整平滑速度:近期價格變化是否朝向一致方向?這種一致性是否得到多個具實質幅度的移動支持,而不是只來自單一事件?方向一致而且支持充分時,VCMA 會提高反應速度;任何一項偏弱,反應便會靠近 Slow 設定。
VCMA 如何計算
1. 延遲座標價格路徑
VCMA 先計算所選 Source 每根 K 線的價格變化:
d(t) = Source(t) - Source(t-1)
然後把價格表示為二維延遲座標路徑上的一個點:
X(t) =
由 X(t-1) 移動至 X(t) 時,便會形成滯後向量:
z(t) = X(t) - X(t-1) =
Magnitude(t) = sqrt
方向持續時,這些向量通常朝向相近方向;價格來回移動時,向量方向互相矛盾,加總後便會抵消。
2. 向量一致性
在 Coherence Length 所設定的週期內,VCMA 比較這條路徑的直線位移與實際行走總距離。等價地說,就是比較「向量總和的長度」與「所有個別向量長度的總和」:
rho = sqrt / Sum sqrt
以這種形式理解,rho 就是二維路徑效率,亦即路徑直線度的比率。
根據三角不等式,rho 會保持在 0 至 1 之間:
• rho 接近 1 - 近期滯後向量方向高度一致
• rho 接近 0 - 向量方向大部分互相抵消
分子與分母都會隨價格變化幅度按比例改變,因此向量一致性不受商品名義價格水平影響。
3. 有效移動支持度
單一大幅移動也可能產生偏高的一致性,因為沒有其他向量與它抵消。VCMA 因此利用向量幅度計算有效樣本數:
Effective Moves = (Sum Magnitude)^2 / Sum Magnitude^2
這是參與程度的量度,不是 K 線數量的直接計數。當一個移動佔據大部分幅度時,數值偏低;當多個移動都有實質貢獻時,數值便會上升。
Support = Clamp
預設目標為 3,VCMA 需要較廣泛的支持才會完整採用一致性訊號。這可減少單一裂口、急升急跌或影線令平均線立即切換至最高速度的情況。
4. 自適應 Alpha
Fast 與 Slow 週期定義遞迴平均線的反應上下限。程式會自動把較短輸入視為 Fast,較長輸入視為 Slow:
Fast Alpha = 2 / (Fast Period + 1)
Slow Alpha = 2 / (Slow Period + 1)
Speed Gate = rho^Coherence Power x Support
Adaptive Alpha = Slow Alpha + (Fast Alpha - Slow Alpha) x Speed Gate
Raw VCMA = Previous Raw VCMA + Adaptive Alpha x (Source - Previous Raw VCMA)
Alpha 始終保持在所選的 Slow 與 Fast 數值之間。Coherence Power 控制轉換曲線;數值越高,rho 越需要接近 1,VCMA 才會明顯加速。
5. 輸出 WMA
圖表上的線條是原始自適應結果的加權移動平均:
VCMA = WMA(Raw VCMA, Output WMA Length)
預設的 3 週期 WMA 可減少細微轉折,同時只加入有限延遲。設為 1,即可顯示未經額外平滑的自適應核心。
數學設計
VCMA 採用一種具辨識度的自適應移動平均線結構:把一維價格路徑效率延伸為二維延遲座標路徑,並加入有效移動閘門,以降低孤立價格衝擊造成的加速。
延遲價格點 X(t) = 形成一條路徑,而 就是路徑上的每一步。向量一致性比率等於路徑的淨位移除以實際行走總距離,因此可衡量近期延遲路徑有多筆直,以及方向有多一致。與一維比率不同,即使價格變化方向相同,若相鄰變化之間的關係反覆而不規則,這個二維比率仍可作出區分。
有效移動閘門再加入集中度檢查。向量一致性衡量方向是否配合;有效移動支持度則衡量這種配合是否分布於足夠的移動。只有兩項條件同時成立,VCMA 才會加快。
這個自適應核心只使用當前及過往資料,不受價格尺度影響,而且 Alpha 有明確上下限。它不會向前投射價格,最後的 WMA 亦只使用正權重。VCMA 仍然是移動平均線,因此必然存在延遲;它的作用是根據已觀察到的價格路徑結構調整延遲。
特性與優點
• 固定顏色的簡潔顯示,不加入內置趨勢分類
• 不受價格尺度影響的向量一致性量度
• 反應速度受具體 Fast 與 Slow 週期限制
• 降低孤立而高一致性的價格衝擊所造成的影響
• 可用 Coherence Power 調整非線性反應
• 可選用短週期 WMA 整理最終線條
• 在 TradingView Data Window 提供內部診斷數值
如何閱讀 VCMA
VCMA 使用單一固定顏色,顏色不代表方向或市場狀態。閱讀時應觀察線條斜率、價格相對位置,以及價格在 VCMA 附近的行為。
斜率
VCMA 上升,表示自適應基準正在提高;VCMA 下跌,表示基準正在降低。線條逐漸走平,通常代表近期方向進展正在減弱,或價格移動的一致性下降。
價格位置
價格維持在上升 VCMA 之上,可支持多頭趨勢判斷;價格維持在下降 VCMA 之下,可支持空頭判斷。價格位置與線條斜率配合使用,比單獨觀察任何一項更有參考價值。
距離與穿越
價格與 VCMA 的距離擴大,可能反映動能增強,也可能表示價格已偏離自適應基準。當市場結構仍然完整,回調至 VCMA 附近可提供趨勢背景。價格反覆穿越 VCMA,通常表示市況反覆或橫行,此時移動平均線基準的參考價值會下降。
Data Window 診斷數值
• VCMA Coherence Score - 原始向量一致性乘以移動支持度
• VCMA Raw Vector Coherence - 未加入支持閘門前的方向一致性
• VCMA Effective-Move Support - 向量幅度的分布廣度
• VCMA Adaptive Alpha - 原始核心實際使用的平滑係數
Raw Vector Coherence 偏高但 Support 偏低,通常代表一次主導事件尚未得到其他移動充分配合。一致性與支持度同時偏高時,Alpha 才可向 Fast 上限移動。
設定說明
Source
選擇 VCMA 使用的價格序列,預設為 Close。
Coherence Length
控制衡量向量一致性的週期。較短數值適應更快;較長數值會評估更廣的價格路徑,變化通常較慢。
Fast Period 與 Slow Period
定義最快及最慢反應。較短的 Fast Period 會提高最大靈敏度;較長的 Slow Period 則會在一致性或支持度偏弱時令 VCMA 更保守。
Coherence Power
較高數值會更強地壓低中等一致性的作用,只在 rho 接近 1 時採用較快反應。較低數值會較早及較平順地提高速度。
Effective Moves for Full Speed
設定完整支持所需的分布程度。較高數值能更強地抑制孤立移動,但也可能延遲真實趨勢初段的加速。
Output WMA Length
控制最終平滑程度。數值越高,線條越穩定,但延遲亦會增加。設為 1 可停用這一層。
實際應用
VCMA 可作為自適應趨勢基準、回調參考、方向過濾器,亦可配合其他指標作為數學基礎線。它不提供內置狀態顏色或交叉邏輯,適合希望直接判讀平均線本身的交易者。
VCMA 不會預測未來價格,也不能消除所有來回穿越。設定應配合商品、時間週期與預計持倉時間,並以價格結構、波動性、成交量及較高時間週期背景作為補充證據。
---
Vector Coherence Moving Average(VCMA)
Vector Coherence Moving Average(ベクトル・コヒーレンス移動平均線、VCMA)は、直近の価格変化ベクトルがどの程度同じ方向にそろっているかを基準に、反応速度を調整する適応型移動平均線です。チャート上では、細い単色ラインでシンプルに表示されます。
VCMAは、次の2点をもとに平滑化の速度を調整します。直近の価格変化は一貫した方向を向いているか。その一貫性は単発の値動きではなく、複数の意味のある変動によって支えられているか。方向がそろい、かつ十分な裏付けがあるときは反応を速め、どちらかが弱いときはSlow側の穏やかな反応に近づきます。
VCMAの計算方法
1. 遅延座標上の価格経路
VCMAはまず、選択したSourceについて、各バー間の価格変化を計算します。
d(t) = Source(t) - Source(t-1)
次に、価格を2次元の遅延座標上にある点として表します。
X(t) =
X(t-1)からX(t)への移動によって、次の遅延ベクトルが得られます。
z(t) = X(t) - X(t-1) =
Magnitude(t) = sqrt
方向性のある値動きが続くと、これらのベクトルは似た方向を向く傾向があります。一方、価格が往復するとベクトルの方向が食い違い、合計したときに互いを打ち消します。
2. ベクトル・コヒーレンス
設定したCoherence Lengthの範囲で、VCMAはこの経路の直線変位と、実際にたどった総距離を比較します。これは、合成ベクトルの長さと、各ベクトルの長さの合計を比較することと同じです。
rho = sqrt / Sum sqrt
この形で見ると、rhoは2次元の経路効率、つまり経路の直進性を表す比率です。
三角不等式により、rhoは0から1の範囲に収まります。
• rhoが1に近い - 直近の遅延ベクトルが高い精度で同じ方向にそろっている
• rhoが0に近い - ベクトルの方向が互いに大きく打ち消し合っている
分子と分母はどちらも価格変動の大きさに比例するため、ベクトル・コヒーレンスは銘柄の名目価格水準に左右されません。
3. 有効変動の支持度
単発の大きな変動は、それに逆らう動きがほとんどないだけで、高いコヒーレンスを生む場合があります。そこでVCMAは、ベクトルの大きさから有効サンプルサイズを計算します。
Effective Moves = (Sum Magnitude)^2 / Sum Magnitude^2
これはバー数そのものではなく、どれだけ多くの値動きが実質的に寄与しているかを表す指標です。1つの変動が全体を支配していると低くなり、複数の変動が十分な大きさで寄与すると高くなります。
Support = Clamp
初期設定の目標値は3です。VCMAがコヒーレンス信号を完全に反映するには、複数の値動きによる十分な裏付けが必要になります。これにより、単発のギャップ、急騰・急落、長いヒゲに反応して、ただちに最高速度へ切り替わる動きを抑えます。
4. 適応型Alpha
Fast PeriodとSlow Periodは、再帰型平均線の反応速度の上限と下限を定めます。入力順が逆でも、短い方をFast、長い方をSlowとして自動的に扱います。
Fast Alpha = 2 / (Fast Period + 1)
Slow Alpha = 2 / (Slow Period + 1)
Speed Gate = rho^Coherence Power x Support
Adaptive Alpha = Slow Alpha + (Fast Alpha - Slow Alpha) x Speed Gate
Raw VCMA = Previous Raw VCMA + Adaptive Alpha x (Source - Previous Raw VCMA)
Alphaは常に、選択したSlowとFastの範囲内に収まります。Coherence Powerは速度変化のカーブを調整します。値を大きくするほど、rhoが1に近づかない限り、VCMAは大きく加速しにくくなります。
5. 出力WMA
チャートに表示されるラインは、生の適応結果に加重移動平均を適用したものです。
VCMA = WMA(Raw VCMA, Output WMA Length)
初期設定の3期間WMAは、わずかな追加遅延に抑えながら、小さな折り返しを滑らかにします。Output WMA Lengthを1に設定すると、この追加平滑化を無効にし、生の適応コアを表示できます。
数学的な考え方
VCMAは、1次元の価格経路効率を2次元の遅延座標経路へ拡張し、さらに単発のショックによる過度な加速を抑える有効変動ゲートを組み合わせた、特徴的な適応型移動平均線です。
遅延価格点 X(t) = が1本の経路を形成し、その各ステップがベクトル になります。コヒーレンス比率は、経路の正味変位を実際に移動した総距離で割ったものです。これにより、直近の遅延経路がどれだけ直線的で、方向がどれだけ一貫しているかを測定します。1次元の比率とは異なり、価格変化の符号が同じであっても、隣り合う変化の関係が不規則なら、その違いを捉えることができます。
有効変動ゲートは、さらに寄与の集中度を確認します。ベクトル・コヒーレンスは方向の整合性を測り、有効変動の支持度は、その整合性が十分な数の値動きに分散しているかを評価します。VCMAが加速するのは、両方の条件がそろった場合だけです。
その結果、VCMAの適応コアは現在および過去のデータだけで計算され、価格尺度に依存せず、反応速度にも明確な上下限があります。将来の価格を先取りして投影することはなく、最後のWMAも正の重みだけを使用します。VCMAも移動平均線である以上、遅延そのものは残ります。その目的は、観測された価格経路の構造に応じて、反応遅延の度合いを調整することです。
特徴と利点
• トレンド分類を組み込まない、シンプルな単色表示
• 価格尺度に依存しないベクトル・コヒーレンス測定
• 解釈しやすいFast PeriodとSlow Periodの範囲内で反応
• 単発の価格ショックによる過度な加速を抑制
• Coherence Powerによる非線形反応の調整
• 短期WMAによる任意の最終平滑化
• TradingViewのデータウィンドウで内部診断値を確認可能
チャート上でのVCMAの見方
VCMAは常に1つの固定色で表示され、色そのものに方向や相場状態の意味はありません。ラインの傾き、価格との位置関係、そしてVCMA付近での価格の動きを読み取ります。
傾き
VCMAが上昇している場合は、適応型の基準線が切り上がっていることを示します。下降している場合は、基準線が切り下がっていることを示します。ラインが横ばいに近づく場合は、直近の方向性が弱まっているか、値動きの一貫性が低下している可能性があります。
価格との位置関係
上向きのVCMAより上で価格が推移していれば、強気トレンドの解釈を補強します。下向きのVCMAより下で価格が推移していれば、弱気トレンドの解釈を補強します。価格の位置とラインの傾きを組み合わせる方が、どちらか一方だけを見るよりも有用です。
距離とクロス
価格とVCMAの距離が広がる動きは、強いモメンタムを表す一方で、適応型の基準線から価格が行き過ぎている可能性も示します。市場構造が維持されている場合、VCMA付近への押し目や戻りはトレンド判断の参考になります。価格がVCMAを何度も往復する場合は、方向感が定まっていないかレンジ相場であることが多く、移動平均線を基準にする有効性は低下します。
データウィンドウの診断値
• VCMA Coherence Score - 生のベクトル・コヒーレンスに変動支持度を掛けた値
• VCMA Raw Vector Coherence - 支持ゲートを適用する前の方向整合性
• VCMA Effective-Move Support - ベクトルの大きさがどの程度広く分散しているか
• VCMA Adaptive Alpha - 生の適応コアが実際に使用した平滑化係数
Raw Vector Coherenceが高くてもSupportが低い場合、1つの支配的なイベントに対して、ほかの値動きによる裏付けがまだ不足していることが多いと考えられます。コヒーレンスと支持度がともに高くなると、AlphaはFast側の上限へ近づくことができます。
設定項目
Source
VCMAの計算に使用する価格系列を選択します。初期設定はCloseです。
Coherence Length
ベクトルの整合性を測定する期間を設定します。短くすると適応が速くなり、長くするとより広い価格経路を評価するため、通常は変化が緩やかになります。
Fast PeriodとSlow Period
最速時と最遅時の反応を定めます。Fast Periodを短くすると最大反応速度が上がります。Slow Periodを長くすると、コヒーレンスまたは支持度が弱い場面でVCMAがより慎重に反応します。
Coherence Power
値を大きくすると、中程度のコヒーレンスによる影響をより強く抑え、rhoが1に近い場合にだけ速い反応を許します。値を小さくすると、より早い段階から滑らかに加速します。
Effective Moves for Full Speed
完全な支持度に達するために必要な、値動きの分散度を設定します。値を大きくすると単発の変動をより強く抑えられますが、本物のトレンドが始まった直後の加速も遅れる可能性があります。
Output WMA Length
最終平滑化の強さを設定します。値を大きくするとラインは安定しますが、遅延も増えます。1に設定すると、この平滑化を無効にできます。
実践的な使い方
VCMAは、適応型のトレンド基準線、押し目・戻りの参考線、方向フィルター、またはほかのインジケーターと組み合わせる数学的なベースラインとして利用できます。状態ごとの色分けやクロス判定を内蔵しないため、移動平均線そのものを直接読み取りたい場合に適しています。
VCMAは将来の価格を予測するものではなく、頻繁な往復やダマシを完全に排除することもできません。設定は銘柄、時間足、想定する保有期間に合わせて調整し、価格構造、ボラティリティ、出来高、上位時間足の状況も補足材料として利用してください。
Indikator

Trend Continuation Momentum Detector TCMD v3 — Trend Continuation Momentum Detector
Core Concept
TCMD is a weighted multi-factor momentum scoring system built on Heiken Ashi candles. Instead of one signal triggering everything, it blends five independent measurements of "how strong is this move" into a composite Momentum Score (0–100), then layers state logic, filters, and risk levels on top.
The five scoring factors
Body Expansion (30% weight) — Is this candle's body unusually large? Calculated as HA body / 20-bar avg body, scaled to 0–100.
Wick Quality (25% weight) — Is the move "clean" (no rejection)? The wick opposing the candle's direction is measured as a % of body size — a small opposing wick scores high.
Trend Slope (20% weight) — Is the EMA of HA close actually rising/falling with conviction? EMA slope over slopeLookback bars, normalized by ATR, then multiplied by a sensitivity factor.
Volume (15% weight) — Is volume confirming the move? volume / 20-bar avg volume, scaled.
Z-Score / distance from mean (10% weight) — Is price extended from its own EMA in a statistically meaningful (but not extreme) way? (HA close − EMA) / stdev, scored with a bell-shaped curve peaking around 0.5–2.0 SD and decaying past 3 SD (overextended).
These combine into a weighted average (weights auto-normalize even if they don't sum to 100) to produce momentumScore.
Why Heiken Ashi
HA smooths noise so body size/wick logic reflects sustained pressure rather than single-tick noise — important since body expansion and wick quality are core inputs.
Signal Logic — 5-State Machine
Each confirmed bar is classified as:
STRONG BUY — momentumScore > threshold (default 75) AND bullish HA candle AND clean wick AND body > average AND HA close above EMA AND (optional) close above VWAP AND (optional) delta positive
STRONG SELL — mirror conditions to the downside
BUY / SELL (bias) — looser: HA close vs EMA + VWAP direction + momentumScore ≥ 50, no wick/body purity required
NEUTRAL — none of the above
This state drives everything downstream: candle coloring, markers, warnings, and TP/SL.
"One-Shot + EMA Reset" Entry Logic
The key anti-spam mechanism: a Strong Buy/Sell marker fires once per cycle, then locks. It won't fire again until price pulls back and touches the EMA (low touches EMA resets buy-side, high touches EMA resets sell-side). This stops multiple entry signals stacking up during one continuous trending move — you get one entry, then must wait for a retest before the next is valid.
Warning System
Light Warning (diamond) — Strong Buy/Sell degrades to plain Buy/Sell, same direction, losing steam
Heavy Warning (x-cross) — Strong Buy/Sell degrades to Neutral or flips to the opposite bias — reversal risk
These are degradation alerts for managing an existing position, not new directional entries.
VWAP & Delta as Confirmation Filters
VWAP filter — Strong signals optionally require price on the "correct" side of session VWAP. Most meaningful intraday since VWAP resets each session.
Delta filter — pulls real buy/sell volume from a lower timeframe (default 1-min) and requires it to agree with signal direction. Falls back to candle direction (close vs open) when lower-timeframe data isn't available in deep history.
Mean Reversion (MR) Signal — separate counter-trend logic
MR looks for momentum exhaustion at a statistical extreme, the opposite philosophy from the trend signals. It fires when:
Price is ≥ mrSdThreshold VWAP standard deviations away (default 1.8 ≈ near the 2SD band)
Momentum Score is weak (< mrMomentumMax) and optionally fading vs the prior bar
The current HA body is small (neutral) and its real high/low engulfs the previous candle's body — a rejection pattern
Session warm-up (mrMinBars) and minimum VWAP SD width (mrMinSdPct) guards are satisfied so it doesn't fire on noisy early bars
MR has its own optional dotted TP/SL lines and alerts, independent of trend-following TP/SL.
TP / SL Levels
When a fresh Strong Buy/Sell fires, TP1/TP2/SL are calculated from the signal candle's HA range (high−low), drawn from the next bar's real open:
Long: TP1 = entry + 2×range, TP2 = entry + 4×range, SL = entry − 1.5×range
Short: mirrored
An "Active SL" is tracked internally; if close crosses through it, an SL-hit marker/alert fires and clears the level.
How to Use It in Practice
Check the current state first — Strong Buy/Sell, Buy/Sell, or Neutral — as your top-line read.
Strong Buy/Sell circle = entry trigger. TP/SL lines (if enabled) auto-draw on the next bar's open.
Diamond (light warning) = start thinking about trimming/tightening — momentum easing, direction unchanged.
X-cross (heavy warning) = treat as an exit signal for the prior position, not a new entry.
Consecutive strong bars = move is extended, higher risk of a sharp mean-reversion snap — cross-check against MR triangles.
VWAP Z-Score / SD bands — gauge how stretched price is; MR triangles are your explicit counter-trend cue at extremes.
ATR — elevated/high readings mean volatility regime has shifted; sanity-check your TP/SL multiples still fit the current range.
Delta — cross-check real order flow agrees with the HA/EMA-based signal, useful for scalping confirmation beyond price action alone.
One thing worth flagging for your GC/NQ intraday use: the VWAP filter and MR signal are most meaningful on session-based intraday timeframes given the session-reset VWAP — on higher timeframes or across sessions, those two features lose some of their intended meaning. Indikator

Technical Summay & Crowd Consensus _ Lite _ Triggon# Technical SUMMARY + Crowd Consensus — Triggon Lite
A single technical-bias reading built from 22 of the most widely-charted tools on the platform, 10 oscillators and 12 moving averages condensed into one consensus percentage, a daily persistent Buy/Sell phase, and one fully transparent trade rule.
## Why this exists
I don't personally trade off technical indicators — I think of them mainly as a liquidity layer the market uses, not a forecasting tool. But in a much larger strategy I run privately (4,000+ lines), I tested using a broad technical-consensus reading as a confirmation filter. It didn't add what I wanted there, so I pulled it out.
What was left, though, was a question worth testing on its own: does the crowd's aggregate technical bias — built from the same handful of indicators almost everyone charts with — actually move *with* price, *against* it, or not at all?
My own prior going in is that it's inverse: that a unanimous, textbook-standard reading looks more like a map of where liquidity (stops, obvious entries) is sitting than a map of where price is actually going. This script is that test, built as its own standalone strategy and released openly so anyone can run the same experiment on their own terms. A "Contrarian Mode" exists in the settings for exactly this purpose. The honest answer is probably regime-dependent rather than a fixed sign — trend-following logic (which is most of what's under the hood here) has real, well-documented edge in sustained trends, and only likely loses to the contrarian read in choppier conditions.
## How it works
- **22 inputs, one vote each.** RSI(14), Stochastic(14,3,3), CCI(20), MACD(12,26,9), Awesome Oscillator, Momentum(10), Williams %R(14), Stochastic RSI(3,3,14,14), Ultimate Oscillator, and Bull/Bear Power, plus EMA and SMA at 10/20/50/100/200, VWMA(20), and HMA(9). Each casts **+1 (Buy)**, **-1 (Sell)**, or **0 (Neutral)** using the same conventional thresholds you'd find in most platforms' built-in "Technicals" ratings — nothing exotic or curve-fit.
-**Votes are tallied** into Buy / Sell / Neutral totals across whichever indicators you leave switched on (every one is individually toggleable).
- **Consensus % is the dominant side's share of *all* enabled indicators — including the neutral ones.** A "70% consensus" reading means 70% of everything you've switched on agrees, not 70% of the indicators that took a side. This matters: a busy, trending market with few neutral readings reaches a high consensus % more easily than a quiet one, even at the same buy-to-sell ratio.
- That percentage maps to **four tiers** — Neutral, Buy/Sell, Strong, Very Strong — against your own thresholds (defaults: 45% / 70% / 85%).
- A **Daily Phase state machine** (intraday charts only) turns that instant reading into something more usable: it holds a persistent Buy or Sell phase through the day, only flipping on a genuine reversal of the dominant side. A neutral reading never breaks an established phase, and the phase resets fresh at the start of each new day.
- An optional **EMA-alignment filter** (length and source both adjustable) only allows longs when the full candle sits above the EMA, and shorts when it sits fully below — a candle straddling the line is skipped either way.
- **A trade fires only when three things line up on a confirmed bar:** the daily phase actually flips, that flip's consensus % clears your chosen threshold, and — if enabled — the EMA filter agrees. Reversals are automatic: the opposite entry closes the open position and opens the new one.
- **The on-chart table shows all of it live:** the headline bias, the exact consensus % and tier, a −100/+100 thermal gauge, the day's phase (with the time it started), your current simulated position and P&L, the oscillator/MA vote split, and — if you turn on "Show Indicator Details" — every individual indicator's own vote as a colored badge.
## Built and tested on
Developed and tuned on **BTC, 30-minute chart**. It's fully open — test it freely on any symbol or timeframe. It has also shown some workable behavior on **BNB**, without any promises beyond that. Please don't assume performance carries over to other assets or timeframes without testing it yourself first.
## This is the Lite build — please read before using
This public release intentionally leaves out a number of the filters, sensitivities, and safeguards used in more advanced private versions. Specifically, it does **not** include:
- **Any position-sizing or capital/risk management.** The backtest applies only a flat **0.05% commission** and nothing else — position sizing defaults to 100% of equity per trade precisely *because* sizing and risk management are intentionally out of scope here. Treat the results as a read on signal quality, not on what a properly risk-managed account would actually return. Adjust position size and add your own risk management in the Properties tab before drawing any conclusions about real-world returns.
- **Extra signal-confirmation or veto filters** beyond the optional EMA alignment.
- **Stop-loss, take-profit, or any exit logic** beyond the automatic reversal on the next opposite signal.
This is by design. The goal is to isolate one idea — the technical-consensus / contrarian question above — cleanly enough to test, not to hand you a plug-and-play, fully risk-managed system.
## Disclaimer
This script is for research and educational purposes only and is not financial advice. It is not a recommendation to buy, sell, or hold any asset. Backtested results are hypothetical, do not reflect real trading conditions (liquidity, slippage beyond what's modeled, exchange downtime, order-execution differences, and more), and past performance — simulated or real — is no guarantee of future results. You are solely responsible for any trading decisions you make and for managing your own risk. Use at your own risk.
## Try it
This lite build isn't deployed on Triggon's Telegram signal feed — add it to your own TradingView chart above to test and evaluate it directly. Strategie

OBV+OBV+
OBV+ tracks On Balance Volume against a moving average of itself and turns
that relationship into a directional state, then gates entries behind a
statistical trend test and manages the trade with a chandelier stop that only
ever moves in your favor.
HOW THE STATE WORKS
The indicator plots OBV with a configurable moving average (EMA, SMA, WMA,
RMA, or HMA). The distance between the two is ranked as a percentile against
its own recent history, so a strong OBV move is defined relative to what this
symbol has actually been doing rather than by a fixed number that means
something different on every chart. When that strength clears your threshold,
the state turns bullish or bearish and stays there until a qualifying move
flips it the other way. A minimum bar spacing keeps the state from
oscillating.
HOW ENTRIES WORK
A state flip on its own does not open a trade. The flip arms an entry window,
and within that window a linear regression on price must independently confirm
that a trend exists in the same direction, measured by the t statistic of the
regression slope. If the trend test agrees, the trade opens. If the window
closes without confirmation, the flip expires and prints a small gray circle
so you can see exactly which signals were passed over. The next entry then
waits for a fresh flip.
Price bars are colored by the gate rather than by raw OBV, so bars show green
or red only where both conditions are satisfied and gray everywhere else. You
can see at a glance which parts of the chart the indicator considers
tradeable.
HOW EXITS WORK
The stop arms immediately on the entry bar, placed beyond that bar's range so
a wide entry candle cannot take you out on the next bar. From there it trails
from the highest high reached since entry (or lowest low when short) at a
configurable ATR multiple, and it is hard clamped so it can only tighten. In a
long it never moves down. It tightens as volatility contracts and holds its
ground when volatility expands. The stop line is drawn directly on price
alongside entry triangles and exit crosses.
The trailing stop is the only exit by default. Opposite states are ignored
while a position is open, so a brief counter signal that does not reach your
stop leaves the trade running. If you would rather have state changes close
and reverse the position, there is a switch for it.
INPUTS
MA type and length, strength lookback and minimum percentile, minimum bars
between flips, regression lookback, minimum absolute t statistic, confirmation
window length, ATR length and chandelier multiple, plus a flip reverses
position toggle. Display options cover the fill, the trail, trade markers, and
bar coloring, with configurable bull, bear, and neutral colors. An optional
pane mode swaps OBV for the signed strength percentile with the threshold
lines drawn, which makes it easy to see which moves clear the bar.
ALERTS
Separate alert conditions for long entry, short entry, and exit, plus a single
combined alert carrying the ticker, timeframe, strength percentile, t
statistic, and current stop level.
NOTES
Because the signal is built from volume, results depend on the volume series
your data feed provides, and the same symbol can behave differently across
exchanges. Signals evaluate on bar close. Settings are deliberately open
ended: a low strength percentile with a short regression lookback produces
frequent, permissive signals, while raising the percentile and the t threshold
narrows it toward fewer and more selective ones. This is for informational purposes
only and isn't meant as financial advice. Indikator

DTC AIO [US] Why this is one tool, not a bundle of indicators
A stock's chart alone cannot tell you whether it is a genuine market leader. A rising 50-day average looks the same whether the earnings behind it are accelerating or shrinking; a strong-looking breakout looks the same whether the whole sector is moving or just that one ticker. Answering "is this a leader worth trading" requires checking several unrelated data sources against each other at the same time — the company's actual earnings, its price behavior relative to the market, how it behaves specifically when the market is under stress, and how it stacks up against the handful of stocks that compete with it. None of those four checks alone is reliable; a stock can look strong on any one of them and still not be a real leader. This script exists because doing that cross-check by hand — pulling up earnings, then flipping to a relative-strength chart, then manually building a peer watchlist — is slow and easy to skip. It runs all four checks against the same symbol on the same chart, automatically, and only then hands you the price-structure tools (moving averages, an anchored VWAP, pattern markers) needed to time an entry once that leadership case is actually made. The scoring engines are the reason this script exists; the timing tools are there so you are not forced to add three more indicators once you have your answer.
The four leadership checks
- Earnings engine. Quarterly or annual earnings and sales are pulled from TradingView's financial data and laid out in a MarketSmith-style grid: the primary metric (earnings per share, or net income if you prefer), its year-over-year percentage change, sales, and the sales percentage change, with optional gross-margin and return-on-equity rows. Year-over-year is measured against the same period one year earlier so seasonal businesses compare fairly. A year-over-year change measured off a negative prior-year base is flagged with a "#", the standard convention for marking a percentage that would otherwise be misleading (e.g. earnings improving from -$1.00 to -$0.10 is not really a "-90%" move).
- Relative strength versus the market. A relative-strength line is built by dividing the stock's price by a benchmark's price (SPY by default), then scaling that ratio so it plots alongside the stock's own price. A one-year percentile rank of that ratio produces a 1-99 "RS Rating" — this is the same underlying idea used by IBD's RS Rating (how a stock's performance ranks against the rest of the market over the past year), calculated independently here from price data rather than licensed from any provider.
- Relative strength during stress ("Panic RS"). This checks something the plain RS line does not: whether the stock is holding above its own short-term average on days when the benchmark itself is below its own short-term average — in other words, is this stock outperforming specifically while the broad market is under pressure. That is a materially different (and rarer) signal than simply outperforming during a rally, and it is flagged with its own marker.
- Burst score (volatility regime). Instead of a single volatility number like ATR, this counts how many days over a chosen lookback (3 months to 3 years) closed up 5%, 10% and 17% or more, then combines those three counts into one score. A stock that regularly produces large up-days behaves very differently from one that grinds slowly upward even if their average volatility looks similar, and that difference is often visible in this count before it shows up in a standard momentum indicator.
- Automatic peer comparison. The stock's industry (or sector, as a fallback) is matched against a built-in map of roughly 60 US industry groups, each with a curated list of representative peer tickers, and a comparison table is built automatically from that group — day, 1-month and 3-month return, relative volume, and an RS column for each peer, with the current symbol pinned at the top. The RS column ranks each peer's 3-month return against the OTHER peers actually shown in the table (a 0-100 scale, highest = strongest of the group) — a peer-group-relative read, deliberately not the same 1-year-vs-market calculation the main RS Rating uses, since ranking a handful of direct competitors against each other is the more useful comparison in a table built specifically to check group leadership. You are not expected to build or maintain your own watchlist of comparable stocks; the peer set is derived from the symbol you already have on the chart.
Timing tools (used once the leadership case is made, not standalone)
- Four configurable moving averages (simple, exponential or weighted; independent length, color and width) for the standard support/trend read.
- An anchored VWAP measured from the most recent all-time high forward, giving a volume-weighted "fair value" line for the current up-leg rather than an arbitrary fixed lookback.
- Average daily range percentage and relative volume, so a breakout can be judged against the stock's own normal range and normal volume rather than an absolute number.
- Pattern markers: inside bars, a simplified pocket-pivot flag (an up day of 5%+ on above-threshold volume), the lowest-volume day over a lookback (often precedes a move), "three weeks tight" closes (three consecutive weekly closes within a volatility-scaled band of each other, an IBD base-tightening pattern), and swing high/low pivot labels with optional percentage change between them.
Compact dashboard
A small, repositionable table (top-right by default) puts the numbers behind the leadership read in one place: RS Rating, relative volume, average daily range %, 3-month return, the burst score, and float %. A stretched average daily range (7% or more) or an already-extended 3-month return (80% or more) is flagged in red with a ⚠ marker as a "this has probably already moved a lot" caution. Market cap, free float, and average dollar volume are available as the earnings table's configurable top-left header cell instead of a separate panel, so they sit next to the earnings grid they help contextualize.
How to use it
1. Add it to a daily chart of a US stock.
2. Check the earnings grid and the RS line/rating first: you want rising year-over-year earnings and sales together with relative strength making new highs against the benchmark.
3. Check whether the Panic RS markers and burst score are present — that tells you whether the leadership is showing up specifically during market weakness, and whether the stock has the range profile of an actual leader rather than a slow grinder.
4. Check the peer table to confirm the stock is leading its own group, not just riding the index up.
5. Once those four checks line up, use the moving-average stack, the anchored VWAP and the pattern markers to time an entry near support, sizing with the daily-range and relative-volume readings.
6. Every block has its own on/off toggle, so the dashboard can be reduced to only the checks you personally use.
Notes
- Earnings, sales, margin, return on equity, and the market-cap/float figures come from TradingView's financial data and are only as complete as that data is for a given symbol; missing values show a dash rather than a misleading zero.
- Defaults assume US equities on a daily timeframe with a broad-market benchmark; the script will run on other markets and timeframes, but those defaults are US-equity-specific and not tuned for anything else.
- Tables and colors adapt automatically to a light or dark chart background.
- Open-source. Every input has a plain-language label and tooltip, so reading Pine is not required to use it.
- For educational and informational purposes only. Not financial advice.
Indikator

Intraday VWAP, Multi-EMA & RSI Price TrackerOverview:
The Intraday VWAP, Multi-EMA & RSI Price Tracker is a clean, non-repainting indicator designed specifically for intraday traders. It combines essential session value, momentum tracking, and higher-timeframe context to give you key dynamic support/resistance levels at a glance—without cluttering your chart with extra windows or table overlays.
Key Features:
Intraday Session VWAP: Plots the session VWAP exclusively on intraday timeframes (1m to 240m) and automatically hides on Daily or higher charts to keep long-term charts clean.
Non-Repainting Daily EMAs: Calculates and overlays key daily Exponential Moving Averages (20, 50, 100, and 200 EMA) directly onto your intraday chart using historical daily closures ( ). This guarantees zero real-time repainting or shifting lines.
Intraday 200 EMA: Includes a dynamic 200 EMA based on your current chart timeframe to quickly identify short-term trend bias.
Dynamic RSI Tracking: Displays a clean Relative Strength Index (RSI 14) label that dynamically updates its background color to highlight Overbought (>70) and Oversold (<30) conditions.
Clean Right-Margin Labels: Displays color-coded price labels for all active EMAs, VWAP, and RSI in the right-hand margin. Labels update in real-time and automatically delete old instances to eliminate trailing chart clutter.
Fully Customizable: Easily toggle individual EMAs, VWAP, or the RSI label on/off directly from the indicator settings menu.
📊 Indicators & Labels Included
Session VWAP (Intraday Only) – Cyan Line & Label
Intraday 200 EMA – White Line & Label
Daily 20 EMA – Yellow Line & Label
Daily 50 EMA – Orange Line & Label
Daily 100 EMA – Pink Line & Label
Daily 200 EMA – Purple Line & Label
RSI (14) – Dynamic Right-Margin Label (Green / Red / Gray)
💡 How to Use
Trend & Confluence: Check if price is holding above/below key Daily EMAs (e.g., Daily 20 or 50 EMA acting as strong dynamic support/resistance during intraday pullbacks).
Session Value: Use VWAP as your institutional benchmark for value during the trading session.
Momentum Checks: Keep an eye on the RSI margin label for quick momentum context without taking up vertical panel space at the bottom of your chart.
At-a-Glance Levels: Look at the right margin to see exact numerical price levels instantly without having to trace lines back to the Y-axis.
Disclaimer:
For Educational and Informational Purposes Only.
This script is an open-source technical analysis tool designed for charting convenience and display optimization. It does not constitute financial, investment, or trading advice. Past performance of any indicator or strategy is not indicative of future results.
Trading stocks, futures, forex, and cryptocurrencies involves substantial risk of loss and is not suitable for every investor. Always perform your own due diligence, implement strict risk management, and consult a qualified financial advisor before making any live trading decisions. Indikator

EMA Cloud (Highs/Lows)DESCRIPTION
A trend-following cloud built from two exponential moving averages — one applied to daily highs, the other to daily lows. Instead of a single EMA line, you get a zone that shows where the average high and average low of recent sessions sit, which makes it easier to judge whether price is extended, pulling back into value, or losing the trend entirely.
How it works
The indicator pulls the daily high and daily low of the instrument and calculates a separate EMA on each:
Upper cloud boundary = EMA of daily highs
Lower cloud boundary = EMA of daily lows
Center line = standard EMA of close, plotted for reference
Because the source values are fetched from the daily timeframe, the cloud stays anchored to daily structure regardless of the chart timeframe you're viewing. The same zone appears on a 5-minute chart as on a daily chart.
How to use it
Price holding above the cloud in an uptrend, with pullbacks that stall at the upper boundary or dip into the zone, is the typical continuation behaviour.
The cloud acts as a dynamic support/resistance band rather than a single line, which reduces the noise of price briefly piercing a lone EMA.
The lower boundary (EMA of daily lows) is a natural reference for trailing stops in long positions; the upper boundary serves the same role for shorts.
Price closing through and holding on the far side of the cloud signals a possible trend change.
Settings
EMA Length — period for both EMAs (default 21)
Cloud Color — fill color and opacity of the zone
Show Border Lines — toggle the outlines of the upper and lower boundaries on or off (off by default for a cleaner look)
Border Color / Border Width — styling for the boundaries when enabled
Notes
On intraday timeframes, the current day's high and low are still forming, so the most recent cloud values update as the session develops and settle once the daily bar closes. Historical values are fixed. This is expected behaviour for any indicator sourced from a higher timeframe.
SHORT VERSION
An EMA cloud built from daily highs and lows rather than closes. The upper boundary is an EMA of daily highs, the lower boundary an EMA of daily lows, with the standard EMA plotted between them. The result is a dynamic support/resistance zone that stays anchored to daily structure on any chart timeframe — useful for judging pullback depth and trailing stops in trending markets. Cloud color, opacity, EMA length, and optional border lines are all configurable. Indikator

Adjusted SuperTrendAdjusted SuperTrend | MisinkoMaster
The Adjusted SuperTrend is a refined, low-lag evolution of the traditional SuperTrend indicator. Standard SuperTrend formulas rely on classic Average True Range (ATR) calculations that treat all price ranges linearly. This often results in delayed trend shifts during explosive volatility spikes or premature whipsaws during choppy consolidation phases.
The Adjusted SuperTrend solves this issue by incorporating a specialized, smoothed True Range filter that balances extreme high-low spreads with close-to-close variations. By anchoring an exponential moving average baseline to this modified volatility metric, the indicator provides a more adaptive, reactive trailing stop line that keeps you aligned with genuine market trends while minimizing false breakout signals.
How It Works (The Core Architecture)
The indicator evaluates trend direction and trailing support/resistance through a three-stage framework:
Linearized True Range Volatility: Rather than using standard ATR, the engine evaluates the absolute maximum and minimum true range components on each bar and averages them. This balances intra-bar high-low expansion with bar-to-bar gap volatility, creating a smoother measurement of true market variance.
Exponential Baseline Alignment: The modified range is processed through an Exponential Moving Average (EMA) volatility lookback filter and applied as a multiplier factor around a core price EMA baseline, establishing dynamic upper and lower tracking boundaries.
Asymmetric Trailing Regime State: When the selected price source closes cleanly above the upper boundary, a bullish trend regime is locked in, plotting the lower band as an active trailing stop. Conversely, when the price drops below the lower boundary, a bearish regime is initiated, using the upper band as trailing overhead resistance.
Key Features
Low-Lag Volatility Smoothing: Uses a specialized True Range derivation to react faster to sudden breakout expansions while remaining resilient against minor noise.
Synchronized Candlestick Morphing: Automatically colors on-chart price bars (green for bullish, red for bearish) to give you instant visual feedback on the active trend bias.
Layered Diamond Breakout Markers: Highlights structural trend flip points with multi-layered diamond markers painted directly on the trailing support/resistance line.
Status Line Volatility Tracking: Includes an integrated ATR status reading for easy monitoring of real-time market expansion directly from your chart legend.
Input Parameters & Optimization Guide
Source: Sets the price series used for baseline calculations and band cross checks (Default: Close).
Baseline Lookback Period: Controls the lookback window for the core EMA trend line. A lower value makes the baseline more sensitive to immediate price action, while a higher value maps macro trend direction (Default: 14).
Volatility Lookback: Sets the length for the smoothed range calculation. Lowering this value makes the trailing bands expand and contract faster during volatility spikes (Default: 8).
Factor: The volatility band multiplier. Adjusting this parameter changes the distance between the baseline and the outer bands. Lower values (e.g., 1.5 - 2.0) work well for tight scalping, while higher values (e.g., 2.5 - 3.0) filter out noise for swing trading (Default: 2.5).
Trading Strategies & Execution
Trailing Trend Continuations
Use the active line as a dynamic trailing stop-loss or trend direction filter:
Bullish Alignment: When the green lower line is active, look for long entries on pullbacks toward the line, keeping your stop-loss placed just below the dynamic support.
Bearish Alignment: When the red upper line is active, look for short setups on rallies toward overhead resistance, trailing your stop along the red line.
Regime Flip Breakouts
A structural change in market bias occurs when price invalidates the active outer boundary:
A candle closing above the red upper band triggers a Bullish Trend Flip, marked by glowing green diamonds on the chart.
A candle closing below the green lower band triggers a Bearish Trend Flip, marked by glowing red diamonds.
Disclaimer: Trading financial markets involves high risk. This technical script is designed as an informational analytical tool to support your rule-based mechanical execution system and does not constitute financial advice. Indikator

The Oloid (OWMA) Oloid Weighted Moving AverageThe Oloid (OWMA) — Oloid Weighted Moving Average
WHAT IT IS
The Oloid is a trend-following indicator built on the geometry of the oloid — a three-dimensional solid discovered by Paul Schatz in 1929. The oloid is the convex hull of two perpendicular circles, each passing through the center of the other. It is one of the few known solids that develops (unrolls) its entire surface onto a plane while rolling, touching every point of its surface exactly once per cycle — no point is missed, no point repeats.
This indicator translates that geometry into a novel, non-linear moving average: the Oloid Weighted Moving Average (OWMA).
MATHEMATICAL LEGACY
OWMA belongs to the lineage of geometry-inspired data analysis tools:
• Fourier Transform (1822) — decomposition of a signal into circular components.
• Wavelet Transform (1980s) — multi-scale analysis with shaped basis functions.
• OWMA (2026) — weighting of time-series data using the developable surface of a three-dimensional geometric solid.
The key innovation: using the coupling of two perpendicular circles as the weighting kernel. Fourier uses single circles. Wavelets use scaled and shifted basis functions. OWMA uses the interaction of two perpendicular oscillating systems to determine the informational value of each data point.
THE CORE IDEA
Every classic moving average weights bars by time: linearly (WMA), exponentially (EMA), or adaptively by a single volatility measure (KAMA, VIDYA). OWMA weights bars by their position on the oloid's developable surface, determined by two coupled market cycles simultaneously:
• Circle A — Momentum cycle. Each bar's local directional efficiency (a 4-bar Kaufman-style efficiency ratio) maps to an angle on the first circle.
• Circle B — Volatility cycle. Each bar's range relative to the recent average range maps to an angle on the second circle.
The oloid's center-of-mass height at the coupled position (alpha, gamma) is:
h(alpha, gamma) = h_min + dh * (0.5 + 0.5 * sin(2*alpha) * sin(2*gamma))
where h_max = sqrt(2)/2 and h_min = 3*sqrt(3)/8 are the exact geometric height extremes of a rolling oloid. The bar's weight is the INVERSE of this height:
• Bars at turning points (height minimum — the moment the rolling oloid "tips over") receive maximum weight. These are transition bars: pivots, regime changes, structure shifts.
• Bars during smooth rolling (height maximum) receive minimum weight. These are continuation bars, carrying less new information.
The result is a moving average that emphasizes market turning points and de-emphasizes continuation — behavior no linear, exponential, or single-factor adaptive MA produces, because the weight depends on the coupled state of two independent cycles, not on time or one factor alone.
HOW IT WORKS ON THE CHART
1. Oloid Line (center). The visible line does not plot OWMA directly — it tracks OWMA with adaptive speed derived from the oloid's current height. Two refinements prevent lag during strong trends:
— Velocity Lead: when adaptation is slow, the line aims where OWMA is going (target = OWMA + delta-OWMA * lead), like the contact point of an oloid rolling down a slope leading its center of mass.
— Adapt Floor: a strong trend (high efficiency ratio) guarantees a minimum tracking speed — gravity keeps the oloid rolling even at maximum height.
2. Oloid Field. ATR-based dynamic bands around the center line. The field narrows as trend efficiency rises (trending markets get a tighter channel) and widens in chop. Field color reflects price position: green above, red below, gray inside.
3. Energy metric (Data Window / dashboard). Energy = efficiency ratio * range regularity. It measures whether the oloid is "rolling" — whether the market has coherent, structured motion. Energy Up / Energy Down split it by the Oloid Line's slope direction. These values are not drawn as chart lines — they live in the dashboard and the Data Window, where the Pine Screener can also read them.
4. Slope Engine. Tracks the slope of RangeReg Bull% — the percentage of bars in the window that made new highs. The slope is classified as RISING / FLAT / FALLING. A flat-to-rising transition marks "momentum awakening": after a structural pause, bullish breadth resumes.
SIGNALS — TWO INDEPENDENT ENTRY ENGINES
• LONG-SLOPE (Pure Slope — enabled by default): RRB slope transitions flat-to-rising while close is above the Oloid Center. Catches "momentum awakening" — trend starts after a structural pause.
• LONG (OWMA Cross — off by default, optional): close crosses above the upper field boundary, with all filters passing. A dedicated filter blocks these entries while the slope is falling ("tired trend" protection). Enable this engine if you want additional breakout-style entries alongside the slope engine.
• SHORT / CLOSE: mirror logic below the field (part of the OWMA Cross engine, so they appear only when that engine is enabled); in "Long Only" mode a short signal closes the long instead. With the default configuration, positions are closed by the selected exit mode's stop.
Signal filters: an Energy window (default 0–20% — signals are suppressed when momentum is overheated), an optional minimum efficiency ratio, and a cooldown between signals.
EXIT MODES (selectable)
• Wide ATR (default, x3.5): a loose trailing stop that lets winners develop and captures more of the favorable excursion.
• ATR Trail (x2.0): classic tighter trail.
• Slope+Stop: exits when the RRB slope turns falling (momentum exhausting), with a fixed protective stop as the floor.
• Hybrid: fixed protective stop for the first N bars, then an ATR trail activates.
The current trailing stop is plotted as a step-line while a position is open.
HOW TO USE IT
1. Add to any symbol and timeframe. Defaults (Radius 21, Long Only, Pure Slope engine, Wide ATR exit) are a reasonable starting point for daily charts of trending assets.
2. Watch the dashboard (top right): Circle A (trend efficiency), Circle B (volatility state), Energy with its window check, Field width and direction, Slope state, and the active stop level.
3. Higher-quality entries tend to occur when: Energy is in the lower half of the window and rising, volatility (Circle B) is below ~110%, and the Field is narrow or narrowing (squeeze conditions).
4. Pine Screener: the "Energy Up Trend" value is exported to the Data Window — filter "Energy Up Trend between 3 and 20" to scan for symbols entering a sustained bullish momentum phase.
5. Alerts are provided for both entry engines, exits, the Bullish Trend Zone, and slope-state transitions (diagnostic).
INPUTS SUMMARY
• Oloid Geometry: Radius (base period of both circles, default 21), Circle Coupling (0.5 = the oloid's natural geometry), Meander Intensity.
• Signals: mode (Long Only / Short Only / Both), Energy window, minimum ER, cooldown.
• Slope Engine: enable/disable each engine, falling-slope filter, slope smoothing and flat threshold.
• Exit Mode: the four modes described above with their parameters.
NOTES
• The indicator is self-contained: all mathematics is computed from the oloid's parametric geometry (height function, surface development, coupling), plus standard building blocks (ATR, efficiency ratio, SMA/EMA smoothing).
• A square-root recency decay is combined with the oloid surface weight, so the total weighting respects both surface position and recency.
• Signals are generated on bar close and do not repaint: the position state machine uses confirmed values only.
• This is a technical analysis tool, not financial advice. Test on your instruments and timeframes before using signals in live trading.
Indikator

Adaptive Trend Ensemble [BackQuant]Adaptive Trend Ensemble
Overview
Adaptive Trend Ensemble is an online-learning trend filter that combines eight different moving-average methods into one continuously weighted trend estimate.
Instead of selecting one moving average permanently, the indicator treats each method as an independent forecasting expert. Every bar, each expert is evaluated according to whether its previous slope correctly anticipated the direction of the latest price move.
Experts that were directionally correct retain more influence. Experts that were wrong lose influence through a multiplicative penalty. The weights are then normalised and used to blend all eight moving-average values into one adaptive ensemble line.
The indicator therefore attempts to answer two separate questions:
Which smoothing method has recently aligned best with price direction?*
How strongly do the weighted methods currently agree on the direction of trend?
The final output includes:
A dynamically weighted ensemble trend line.
Bullish and bearish trend-state colouring.
A gradient between price and the ensemble.
A consensus-driven glow.
Trend-coloured candles.
A live label showing the leading expert and its current weight.
Alerts when the ensemble trend changes direction.
This is not a fixed moving average and it is not a simple average of several indicators. The contribution of each expert changes over time according to its recent directional performance.
Core idea
Moving averages respond differently to the same market.
A Hull Moving Average may respond quickly during a sharp transition, while an RMA may remain stable through temporary noise. A linear-regression estimate may follow a smooth directional move well, while a conventional EMA may perform better during a more ordinary trend.
No individual smoothing method is consistently superior across every environment.
Markets alternate between:
Persistent trends.
Fast breakouts.
Slow directional drift.
Volatile reversals.
Compressed ranges.
Noisy transitions.
A fixed indicator cannot change its mathematical personality when the environment changes. It continues using the same weighting structure regardless of whether that structure currently suits the market.
Adaptive Trend Ensemble addresses this by maintaining a bank of different smoothing methods and changing their influence through time.
The model does not attempt to decide in advance which method is best. It allows recent realised price action to determine which experts should currently receive more weight.
Prediction with expert advice
The indicator is based on a class of online-learning methods commonly described as:
Prediction with Expert Advice
In this framework:
Several experts produce predictions.
The actual outcome is observed.
Each expert receives a loss based on its prediction.
Expert weights are updated.
The combined model places more influence on better-performing experts.
The term “expert” does not imply that each method is intelligent by itself. An expert is simply an individual forecasting rule.
In this indicator, the eight experts are eight moving-average methods.
The model uses a multiplicative-weights process closely related to the Hedge and Weighted Majority families of online-learning algorithms.
The central principle is:
Do not commit permanently to one model.
Track several models simultaneously.
Reduce the weight of models that make mistakes.
Allow the combined forecast to adapt as relative performance changes.
Online learning
The model learns sequentially, one bar at a time.
It does not train on a separate historical dataset and then freeze its parameters.
At each new bar:
The previous slope of each moving average is treated as that expert's prediction.
The realised close-to-close direction is observed.
Each expert receives a loss.
Weights are updated multiplicatively.
Weights are normalised.
The current expert values are blended using the new weights.
This makes the process online and adaptive.
The weight state is carried forward from bar to bar, meaning the current ensemble reflects the accumulated results of earlier expert decisions.
The expert bank
The ensemble contains eight moving-average experts:
Simple Moving Average - SMA*
Exponential Moving Average - EMA
Weighted Moving Average - WMA*
Hull Moving Average - HMA
Double Exponential Moving Average - DEMA*
Running Moving Average - RMA
Arnaud Legoux Moving Average - ALMA*
Least-Squares Moving Average - LSMA
All experts use the same Base Length.
This is important because it keeps their nominal observation horizon comparable. The ensemble is comparing different mathematical treatments of approximately the same lookback rather than comparing completely unrelated time horizons.
Even with an identical length, the experts behave differently because they assign weight to historical observations in different ways.
Simple Moving Average - SMA
The SMA applies equal weight to every observation inside the selected window.
Its general form is:
SMA = Sum of observations / Number of observations
The SMA is stable and easy to interpret, but every included observation has the same importance.
This can make it slower to react when a new trend begins because older prices continue to influence the average until they leave the window.
Within the ensemble, the SMA acts as a neutral equal-weight baseline.
Exponential Moving Average - EMA
The EMA assigns progressively greater weight to recent observations.
Its recursive form is based on:
EMA = α × Current Price + (1 - α) × Previous EMA
where α is determined by the selected length.
Compared with an SMA of the same length, an EMA generally responds more quickly to recent movement.
Its recursive weighting makes it useful during ordinary directional markets, although it can still turn repeatedly when price oscillates in a range.
Weighted Moving Average - WMA
The WMA assigns linearly increasing weight to more recent observations.
For example, in a simplified four-period WMA, the newest value receives four units of weight, while the oldest receives one.
This makes the WMA more responsive than an equal-weight SMA while retaining a finite lookback window.
Within the ensemble, it provides a direct recency-weighted alternative to the exponential behaviour of the EMA.
Hull Moving Average - HMA
The Hull Moving Average was designed to reduce lag while preserving a relatively smooth output.
Its construction combines weighted moving averages over different horizons, applies a lag-compensation step, and then smooths the result over approximately the square root of the original length.
Conceptually:
Calculate a faster WMA.
Calculate a slower WMA.
Use their difference to compensate for lag.
Smooth the compensated result.
The HMA often reacts quickly to changes in trend direction.
That responsiveness can make it valuable during strong transitions, but it may also make it more sensitive to short-term oscillation.
Double Exponential Moving Average - DEMA
Despite its name, DEMA is not simply an EMA calculated twice.
Its general construction is:
DEMA = 2 × EMA - EMA of EMA
The second EMA estimates some of the lag in the first EMA. Subtracting it attempts to create a smoother with less delay.
DEMA can respond quickly to directional changes, although reduced lag may also increase sensitivity during unstable conditions.
Running Moving Average - RMA
RMA is commonly associated with Wilder-style smoothing.
It uses a slower recursive update than a typical EMA of the same nominal length.
Its general form places substantial influence on the previous RMA value, producing a persistent and stable estimate.
The RMA expert often changes direction less aggressively than the faster methods.
Within the ensemble, it acts as one of the more conservative smoothing models.
Arnaud Legoux Moving Average - ALMA
ALMA applies a Gaussian-style weighting curve across the observation window.
The weighting distribution can be shifted toward more recent observations while maintaining a smooth bell-shaped profile.
The script uses a recent-weighted offset and a fixed Gaussian width.
ALMA attempts to balance:
Smoothness.
Reduced lag.
Controlled weighting of the observation window.
It provides a different weighting structure from the linear, exponential and lag-compensated experts.
Least-Squares Moving Average - LSMA
The LSMA is based on linear regression.
Instead of averaging historical prices directly, it fits a straight line through the selected window and evaluates the regression estimate at the current bar.
The method attempts to represent the local directional path of price.
LSMA can follow smooth trends closely because it models slope explicitly. However, it may respond strongly when the local regression direction changes abruptly.
Within the indicator, the LSMA is produced using the rolling linear-regression output.
Base Length
The Base Length is shared by all eight experts.
Lower values:
Make every expert more responsive.
Increase sensitivity to short-term changes.
Produce faster weight and trend changes.
Increase the possibility of whipsaws.
Higher values:
Create smoother expert outputs.
Focus the ensemble on broader trend structure.
Reduce short-term changes.
Increase lag during sudden reversals.
Because all experts share the same length, changing this setting adjusts the entire ensemble horizon.
It does not change the number of experts or their relative starting weights.
Expert predictions
The model evaluates each expert using the direction of its slope.
For each moving average:
Rising slope is represented as +1.
Falling or non-rising slope is represented as -1.
To evaluate the latest completed move, the script uses the expert's slope from the previous bar.
For example:
If the expert was rising from two bars ago to the previous bar, it predicted a positive current move.
If the expert was falling, it predicted a negative current move.
The realised outcome is determined from the current close relative to the previous close:
Close above previous close = positive realised direction.
Close below previous close = negative realised direction.
Unchanged close = zero realised direction.
The model therefore scores directional slope prediction, not the numerical distance between each moving average and price.
An expert is rewarded for getting direction right, even if its plotted value is relatively far from the market.
Likewise, an expert is penalised for getting direction wrong even if its line remains visually close to price.
Loss functions
The indicator provides two loss functions:
Directional 0/1*
Magnitude-weighted
The selected loss determines how strongly incorrect experts are penalised.
Correct experts receive zero loss under both modes.
Directional 0/1 loss
Directional mode treats every incorrect prediction equally.
The loss is:
0 when the expert predicted the realised direction correctly.
1 when the expert predicted incorrectly.
This means that an incorrect prediction on a very small move receives the same loss as an incorrect prediction on a large move.
Directional mode answers a simple question:
Was the expert right or wrong?
It does not consider how important the move was.
This mode can produce consistent learning because every directional observation is treated equally, but it may respond to small and insignificant price changes as strongly as major moves.
Magnitude-weighted loss
Magnitude-weighted mode scales the penalty according to the size of the realised move.
The move is normalised using ATR:
Move = Absolute close-to-close change / ATR
The ATR uses the shared Base Length.
The incorrect expert's loss becomes:
Loss = Normalised Move
with the magnitude capped at 3.
The cap prevents a single extreme bar from creating an unlimited penalty.
This mode gives greater importance to mistakes during large movements.
For example:
An incorrect expert during a 0.10 ATR move receives a small penalty.
An incorrect expert during a 1.00 ATR move receives a larger penalty.
An incorrect expert during a move above 3 ATR receives the capped penalty of 3.
Magnitude-weighted mode answers:
How costly was the directional mistake relative to current volatility?
This can make the ensemble adapt more strongly after significant movements while paying less attention to small fluctuations.
Flat price bars
If the current close is unchanged from the previous close, the realised direction is zero.
Because expert directions are encoded as either positive or negative, no expert can exactly match a zero realised direction.
Under Directional mode, all experts receive the same incorrect classification.
Because every weight is multiplied by the same penalty factor, their relative weight distribution remains effectively unchanged after normalisation.
Under Magnitude-weighted mode, the realised move is zero, so the resulting penalty is also zero.
In both cases, a completely flat close-to-close bar does not materially change the relative ranking of the experts.
Multiplicative weight update
Each expert begins with an equal weight:
Initial Weight = 1 / 8
After the loss is calculated, the weight is updated using:
New Unnormalised Weight = Old Weight × exp(-η × Loss)
where η is the Learning Rate.
This is the central Hedge or multiplicative-weights update.
Correct experts have zero loss:
exp(-η × 0) = 1
Their unnormalised weight is unchanged.
Incorrect experts have a positive loss, so their weight is multiplied by a value below one.
For example, in Directional mode with a Learning Rate of 2:
Incorrect Weight Multiplier = exp(-2) ≈ 0.135
An incorrect expert retains only about 13.5% of its previous unnormalised weight before the weight set is normalised again.
This does not mean its final displayed weight will necessarily fall by exactly 86.5%, because all expert weights are subsequently rescaled so they sum to one.
Why multiplicative updates are used
An additive system might subtract a fixed quantity from each incorrect expert.
That can create problems:
Weights can become negative.
The same penalty has a different effect on large and small weights.
The model may not adapt proportionally.
A multiplicative update preserves non-negative weights and penalises experts proportionally to their current influence.
It also allows the distribution to become concentrated around consistently successful methods.
Learning Rate - η
The Learning Rate controls how aggressively the ensemble shifts weight after mistakes.
Higher values:
Penalise incorrect experts more strongly.
Move influence rapidly toward recent winners.
Can produce winner-take-all behaviour.
Can make the leader change abruptly after a few important bars.
Lower values:
Produce gradual weight changes.
Keep the expert distribution more diversified.
Reduce sensitivity to short-term performance.
Make the model slower to adapt.
The Learning Rate does not change the moving averages themselves. It changes only how quickly their relative influence evolves.
High Learning Rate behaviour
At high settings, a wrong expert may lose most of its weight after one or two mistakes.
This can be beneficial when one smoothing method is clearly better suited to the current regime.
It can also create instability:
A recent winner can dominate the ensemble.
A temporary performance streak can cause excessive concentration.
The model can switch leaders quickly when conditions reverse.
Low Learning Rate behaviour
At low settings, the ensemble behaves more like a slowly adapting average of the expert bank.
No single observation dramatically changes the distribution.
This produces smoother adaptation, but a poorly suited expert may retain substantial influence for longer.
Weight normalisation
After all expert weights are updated, they are normalised:
Normalised Weight = Expert Weight / Sum of All Expert Weights
This ensures that the complete weight set sums to one.
The weights can then be interpreted as each expert's share of the ensemble.
For example:
A 25% weight means that expert contributes one quarter of the weighted output.
A 5% weight means its current influence is relatively small.
The weights are not probabilities that the experts will be correct on the next bar.
They are adaptive influence coefficients based on accumulated relative loss.
Weight Floor
The optional Weight Floor preserves a minimum allocation for every expert.
After normalisation, the adjusted weight is calculated so that:
Every expert receives at least the selected floor.
The remaining weight is distributed according to the normalised Hedge weights.
The full set continues to sum to one.
For eight experts, a floor of 0.01 reserves at least 1% for each expert.
This assigns:
A minimum combined mass of 8%.
The remaining 92% according to relative performance.
A floor of 0.05 reserves at least 5% for each of the eight experts, using 40% of the total distribution as minimum allocations.
The remaining 60% is distributed according to current performance.
Why use a floor?
Without a floor, repeatedly incorrect experts can approach a weight extremely close to zero.
Because the update only reduces weights after losses, an expert with almost no weight may require a long period of relative outperformance before it becomes influential again.
A positive floor keeps all methods alive.
This allows an expert that performed poorly in the previous regime to recover more quickly when the market environment changes.
Weight Floor set to zero
With a zero floor:
The model is free to concentrate almost entirely in one expert.
Recent winners can dominate strongly.
The ensemble can become highly specialised.
This produces the purest multiplicative-weights behaviour but increases the risk of weight collapse.
Positive Weight Floor
With a positive floor:
The expert bank remains diversified.
Cold experts retain some influence.
The model can recover more easily after regime changes.
The leading expert's maximum possible weight is reduced.
The floor therefore controls the balance between specialisation and diversity.
Ensemble output
After the weight update, the current values of the eight experts are blended:
Ensemble = Sum of Expert Weight × Expert Value
This is a weighted average in which the weights are determined by online directional performance.
If the HMA currently has the greatest weight, the ensemble will behave more like the HMA.
If the RMA and SMA dominate, the output will become smoother and more conservative.
If the weights are distributed evenly, the line represents a broad blend of all eight methods.
The output can therefore change its effective smoothing behaviour without changing the user-selected Base Length.
Line Smoothing
The weighted ensemble may be passed through an optional EMA for visual smoothing.
A setting of 1 effectively disables this additional stage.
Higher settings:
Create a smoother displayed line.
Reduce small slope changes.
Delay bullish and bearish flips.
This smoothing is cosmetic in the sense that it occurs after the online expert weighting.
It does not affect:
Expert predictions.
Expert losses.
Weight updates.
Consensus.
Leader selection.
It does affect the final plotted line and the trend state derived from that line.
Trend state
Trend direction is determined from the slope of the smoothed ensemble line.
If the line is above its previous value, trend becomes bullish.
If the line is below its previous value, trend becomes bearish.
If the line is unchanged, the previous trend persists.
This creates a persistent two-state regime.
A bullish flip occurs when the trend changes from bearish to bullish.
A bearish flip occurs when it changes from bullish to bearish.
The trend state is based on the ensemble's slope, not on price crossing the ensemble.
Price may be above or below the line without immediately changing its direction.
Consensus calculation
The indicator calculates a separate weighted directional vote.
Each expert's current slope direction is multiplied by its current weight:
Weighted Vote = Sum of Weight × Direction
Because each direction is either +1 or -1 and the weights sum to one, the vote lies between -1 and +1.
Examples:
+1 means all meaningful weight is assigned to rising experts.
-1 means all meaningful weight is assigned to falling experts.
0 means bullish and bearish weighted influence is evenly balanced.
The displayed consensus strength is:
Consensus Strength = Absolute Value of Weighted Vote
This converts the result to a range from zero to one.
0% means the weighted expert bank is evenly divided.
100% means the weighted influence is entirely aligned in one direction.
Weighted consensus versus expert count
Consensus is not calculated by simply counting how many of the eight experts are rising.
An expert with a 40% weight contributes more than one with a 2% weight.
For example:
Five low-weight experts may be bullish.
Three high-weight experts may be bearish.
The final weighted vote can still be bearish.
This means consensus measures the agreement of the current weighted model, not the raw number of methods on each side.
With a zero Weight Floor, consensus may become very high when one expert dominates, even if several near-zero-weight experts disagree.
With a positive floor, disagreement from the remaining experts has more influence on the consensus value.
Consensus is not confidence
The consensus percentage should not be interpreted as a probability that the trend will continue.
It measures only the current alignment of weighted expert slopes.
High consensus means:
The influential experts point in the same direction.
It does not guarantee:
Future price continuation.
A profitable entry.
Low reversal risk.
Strong agreement can occur late in a mature trend as well as early in a new one.
Leading method
The live information label identifies the expert with the highest current weight.
It displays:
The expert name.
Its current percentage weight.
The weighted consensus strength.
The current ensemble direction.
For example:
Leading: HMA (34.5%)*
Consensus: 78% ▲
This means the HMA currently has the largest share of the ensemble and the weighted expert bank is strongly aligned upward.
The leader percentage is not a win probability.
It is only the experts share of the current normalised weight distribution.
Leader changes
The leading method can change when:
The current leader makes directional mistakes.
Another expert remains correct while competitors are penalised.
A large magnitude-weighted move strongly changes relative weights.
The market transitions into a regime better suited to another smoother.
Leader changes can help reveal how the ensemble is adapting.
For example:
A shift toward HMA or DEMA may reflect stronger preference for responsive methods.
A shift toward SMA or RMA may reflect better recent performance from slower methods.
A shift toward LSMA may occur during a smooth local directional path.
These interpretations are contextual and should not be treated as fixed rules.
Gradient fill
The indicator fills the area between price and the ensemble line.
When price is above the line:
A bullish gradient is displayed.
When price is below the line:
A bearish gradient is displayed.
The gradient visually separates price from the adaptive trend estimate.
The fill reflects price location, while the line colour reflects the slope-derived ensemble trend.
These can temporarily disagree.
For example:
Price may fall below a still-rising ensemble during a pullback.
Price may rise above a still-falling ensemble during a counter-trend rally.
This disagreement can provide useful context.
Consensus glow
A glow is drawn around the ensemble line.
Its brightness changes according to weighted consensus.
When consensus is high:
The glow becomes brighter and more visible.
When the experts are divided:
The glow becomes more transparent.
The glow width is scaled using ATR based on the Base Length, helping the effect remain proportional across instruments and volatility environments.
The glow is a visual representation of model agreement. It does not modify the line or trend calculation.
Candle colouring
Candles can be coloured according to the current ensemble trend:
Bullish trend uses the selected bullish colour.
Bearish trend uses the selected bearish colour.
Candle colouring is based on the direction of the ensemble line, not the direction of each individual candle.
A bearish candle can therefore remain green during a bullish ensemble regime, and a bullish candle can remain red during a bearish regime.
How to interpret the indicator
Bullish ensemble trend
A bullish state means the final ensemble line is rising.
This indicates that the current weighted combination of experts is moving upward.
It does not require all individual experts to be bullish.
Bearish ensemble trend
A bearish state means the final ensemble line is falling.
The weighted combination is moving downward, even if one or more individual experts remain bullish.
High bullish consensus
A strongly positive vote means most influential expert weight is assigned to rising methods.
This can indicate broad directional alignment.
High bearish consensus
A strongly negative vote means the influential experts are predominantly falling.
Low consensus
A consensus near zero means weighted expert directions are divided.
This can occur during:
Trend transitions.
Sideways ranges.
Pullbacks.
Disagreement between faster and slower methods.
Low consensus does not automatically mean price will remain sideways. It means the ensemble's components are not currently aligned.
High leader weight and high consensus
This indicates that:
One method currently dominates.
The broader weighted bank is aligned with it.
The model is highly concentrated and directionally unified.
This can produce a responsive and decisive ensemble, but it also means the output depends heavily on the current leader.
Distributed weights and high consensus
This means several experts maintain meaningful weights while pointing in the same direction.
The trend is supported by a more diversified group of methods.
Leader weight high but consensus low
This can occur when the dominant expert points one way while several remaining experts point the other way.
The ensemble may still follow the leader, but internal disagreement is present.
How to use the indicator
1. Trend regime filter
Use the ensemble slope as directional context:
Prioritise long setups during bullish regimes.
Prioritise short setups during bearish regimes.
The indicator does not define entry price, stop placement or profit targets.
2. Consensus filter
A user may require stronger consensus before acting on the trend state.
For example:
A bullish flip with low consensus may represent an early or uncertain transition.
A bullish regime with high consensus indicates broader weighted alignment.
No universal consensus threshold is appropriate for every market.
3. Pullback analysis
During a bullish ensemble regime:
Price moving toward or below the line may represent a pullback.
The ensemble remaining bullish suggests its trend estimate has not yet reversed.
During a bearish regime:
Price moving toward or above the line may represent a counter-trend rally.
Price interaction with the line should be combined with structure and risk management.
4. Regime adaptation observation
The Leading Method label can be used to study how different smoothers perform through changing environments.
Rather than assuming one moving average is always best, the user can observe:
Which expert gains weight during trends.
Which expert takes over during transitions.
How concentrated the model becomes.
How quickly weights change under different Learning Rates.
5. Bullish and bearish flips
Trend flips can be used as:
Regime-change alerts.
Confirmation for another setup.
Potential exit conditions.
A directional filter for discretionary trades.
Because flips are based on line slope, responsive settings can generate repeated changes during ranges.
Suggested configurations
Balanced adaptive configuration
Moderate Base Length.
Moderate Learning Rate.
Directional loss.
Small positive Weight Floor.
Minimal Line Smoothing.
This keeps the model adaptive while preserving some expert diversity.
Fast adaptation configuration
Shorter Base Length.
Higher Learning Rate.
Magnitude-weighted loss.
Zero or very small Weight Floor.
Line Smoothing of 1 or 2.
This allows rapid concentration around recent winners but can create unstable leader changes.
Conservative diversified configuration
Longer Base Length.
Lower Learning Rate.
Directional loss.
Positive Weight Floor.
Additional Line Smoothing.
This creates slower and more diversified adaptation.
Large-move-focused configuration
Magnitude-weighted loss can be used when mistakes during large ATR-normalised moves should matter more than errors during minor fluctuations.
This may reduce the influence of small alternating bars on the weight distribution.
Pure directional configuration
Directional loss is useful when every close-to-close directional observation should be treated equally.
It creates a straightforward right-or-wrong scoring process.
How this differs from averaging moving averages
A normal moving-average ribbon or composite may calculate:
Average of SMA, EMA, HMA and other methods.
If every method receives equal weight permanently, its influence never changes.
Adaptive Trend Ensemble instead calculates:
Performance-dependent weights.
Sequential loss updates.
A dynamically changing weighted output.
Two bars with the same expert values can produce different ensemble values if the weight distributions differ.
How this differs from selecting the current fastest average
The indicator does not select whichever moving average is currently closest to price or whichever has moved the most.
Weights are based on whether previous expert slopes correctly anticipated realised price direction.
An expert can therefore lead even if it is not the fastest or closest line.
How this differs from an optimisation
The model does not search historical data for one set of parameters with the best backtest result.
It does not change the shared length of each expert.
Instead, it performs continuous online adaptation of the expert weights.
This avoids permanently selecting one historical winner, but it also means recent performance can strongly influence the current model.
How this differs from a machine-learning forecast
The indicator uses a genuine online-learning algorithm, but it is not a neural network or a price-target forecasting model.
It does not estimate the size of the next move.
The experts make binary directional predictions derived from their slopes.
The learning system then adjusts how much influence each moving-average value receives.
It is therefore best understood as an adaptive model-selection and blending process.
Causality and real-time behaviour
The learning update uses:
The prior-bar slope of each expert.
The current close-to-close realised direction.
It does not use future bars.
On historical completed candles, the update is fully causal.
On the current live candle:
The close can continue changing.
The realised direction can change.
Expert values can change.
Weights and consensus can update intrabar.
A bullish or bearish flip may appear before the candle closes.
Users requiring confirmed signals should evaluate the indicator at bar close.
Strengths
Combines eight distinct smoothing methods.
Adapts expert influence through online learning.
Supports directional and magnitude-sensitive losses.
Uses multiplicative updates rather than fixed weighting.
Provides optional protection against permanent weight collapse.
Separates ensemble direction from expert consensus.
Displays the currently leading method.
Uses one shared horizon for a fairer expert comparison.
Requires no offline training process.
Provides transparent open-source calculations.
Summary
Adaptive Trend Ensemble combines eight moving-average experts using a multiplicative online-learning model.
Each expert uses the same Base Length but applies a different smoothing method. The previous slope of each expert acts as its directional prediction for the latest close-to-close move.
After the realised direction is observed, incorrect experts receive either a fixed directional loss or an ATR-normalised magnitude-weighted loss. Their weights are reduced using an exponential Hedge update, then normalised and optionally adjusted using a minimum Weight Floor.
The current expert values are blended according to these adaptive weights, producing one ensemble line whose effective behaviour changes as different methods gain or lose influence.
A separate weighted vote measures current directional agreement. This consensus controls the visual glow and is displayed beside the current leading expert.
The result is a transparent adaptive trend model that does not assume one moving average will remain optimal. Instead, it continuously redistributes influence toward the methods that have recently aligned better with realised price direction while retaining configurable control over responsiveness, diversity and visual smoothing.
Indikator

Indikator

Dual Phase Swing Trading IntelligenceCredit: This indicator builds upon the Moving Average Shaded Fill Area Crossover concept originally developed by #aballard11. The visual foundation of using EMA fills to represent trend structure was inspired by their pioneering work in making multi-timeframe trend analysis accessible through clean chart visualization. This implementation has been significantly expanded and rebuilt by The Scalping Ant to create a dual-phase trend system specifically engineered for swing trading on higher timeframes, adding candle coloring logic, dual-signal generation, non-repainting confirmation modes, and real-time dashboard analytics.
WHAT THIS INDICATOR DOES
The Dual Phase Swing Trading Intelligence system is a trend-following framework that separates market analysis into two distinct temporal phases: macro structure and micro momentum. Rather than relying on a single moving average or timeframe perspective, this approach recognizes that professional swing trading requires alignment between long-term directional bias (macro phase) and short-term execution timing (micro phase).
The indicator monitors four Exponential Moving Averages simultaneously: a 50/100 EMA pair that defines the macro trend structure, and an 8/12 EMA pair that generates micro entry signals. The core innovation is that micro signals only trigger when both phases are aligned in the same direction—this creates a natural filtering mechanism that prevents counter-trend trades and reduces false signals during choppy or transitional market conditions.
Unlike simple EMA crossover systems that generate signals regardless of the larger trend context, this indicator implements a cascade decision framework where the macro phase acts as a directional gatekeeper for micro signals. Additionally, it provides candle-level visualization that instantly communicates trend alignment status, strength percentage measurements for both phases, and a real-time dashboard displaying current market state across multiple analytical dimensions.
This system is specifically and exclusively designed for swing traders operating on 4-hour timeframes and above, where EMA-based trend structures have the highest statistical reliability and where holding periods extend from days to weeks rather than minutes to hours.
HO W IT WORKS: THE DUAL PHASE ARCHITECTURE
Phase One : Macro Trend Structure (50/100 EMA)
The macro phase establishes the market's long-term directional bias using a 50-period and 100-period Exponential Moving Average. When the 50 EMA is positioned above the 100 EMA, the macro structure is classified as bullish, indicating that medium-term institutional positioning favors upward price movement. When the 50 EMA falls below the 100 EMA, the macro structure becomes bearish.
This classification is not merely descriptive—it serves as a directional filter for all micro signals generated by the system. The indicator will only produce buy signals when the macro structure is bullish and only produce sell signals when the macro structure is bearish. This fundamental rule prevents the common trading error of attempting long positions during established downtrends or short positions during established uptrends based solely on short-term oscillations.
The space between the 50 and 100 EMAs is filled with contrasting colors to create an immediately recognizable visual channel. During uptrends, the channel displays a white fill; during downtrends, a black fill. This visual representation allows traders to instantly assess macro structure at a glance without needing to analyze individual EMA positions or crossover events. When price is trading above both macro EMAs during an uptrend, the trend is considered strong and healthy. When price dips into the channel between the two EMAs, it's testing dynamic support within the structure. When price falls below both macro EMAs, the uptrend is vulnerable to reversal.
The macro EMAs also function as dynamic support and resistance levels. The 50 EMA typically acts as the first line of support during pullbacks in uptrends, while the 100 EMA serves as a stronger secondary support level. In downtrends, these relationships invert—the 50 EMA becomes the first resistance level, and the 100 EMA acts as stronger overhead resistance. Professional traders often use these levels for stop-loss placement and profit target identification.
[ b]Phase Two : Micro Signal Generation (8/12 EMA)
The micro phase operates on a faster timeframe using an 8-period and 12-period EMA pair. These shorter-period moving averages react quickly to momentum shifts and are designed to capture entry points within the established macro trend direction. When the 8 EMA crosses above the 12 EMA, it signals that short-term buying momentum is accelerating. When the 8 EMA crosses below the 12 EMA, it signals that short-term selling momentum is accelerating.
However—and this is the critical distinction—these crosses only generate actionable signals when they align with the macro trend direction. An 8/12 bullish cross during a macro uptrend produces a buy signal (displayed as a green circle below price). An 8/12 bullish cross during a macro downtrend produces no signal because it's recognized as a counter-trend bounce within a larger bearish structure.
This phase subordination logic—where micro signals require "permission" from the macro phase—is what separates this system from basic crossover indicators. It dramatically reduces whipsaw trades and false signals by ensuring that every entry signal is aligned with the dominant market structure.
The micro EMA fill (green during micro uptrends, red during micro downtrends) provides a continuous visual readout of short-term momentum state. Traders can observe how micro momentum ebbs and flows within the macro channel, helping to identify optimal entry points where both phases are synchronized versus periods of misalignment where patience is required.
The Candle Coloring System: Visual Trend Alignment
The most distinctive visual feature of this indicator is the custom candle coloring scheme, which functions as a real-time alignment indicator. Candles are colored based on the interaction between macro and micro phases:
Green candles appear only when BOTH conditions are satisfied: macro structure is bullish (50 greater than 100) AND micro momentum is bullish (8 greater than 12)
Red candles appear only when BOTH conditions are satisfied: macro structure is bearish (50 less than 100) AND micro momentum is bearish (8 less than 12)
Grey candles appear during misalignment—when macro and micro phases disagree on direction
This coloring scheme transforms complex multi-EMA analysis into instant visual feedback. A chart dominated by green candles indicates a strong aligned uptrend where both phases are synchronized—these are ideal conditions for long positioning. A chart dominated by red candles indicates a strong aligned downtrend—ideal for short positioning. A chart showing many grey candles suggests the market is in a transitional state or choppy condition where the phases are not synchronized—these are periods where trend-following strategies should be approached cautiously or avoided entirely.
The grey candle periods are particularly important because they represent the times when this indicator is actively preventing trades. Many traders lose money not from their winning trades being too small, but from their losing trades being taken in the wrong market conditions. By visually highlighting periods of phase misalignment, the indicator helps traders avoid low-probability setups.
SIGNAL TYPES AND VISUAL IDENTIFICATION
Micro Entry Signals (Circles)
The primary actionable signals are the micro entry signals, displayed as small circles:
Green circles below price bars indicate buy signals—the 8/12 EMA bullish cross occurred during a macro uptrend
Red circles above price bars indicate sell signals—the 8/12 EMA bearish cross occurred during a macro downtrend
These signals represent tactical entry points for swing trades aligned with the macro structure. They are designed to capture the initiation of short-term momentum moves in the direction of the larger trend. Entry on these signals typically provides favorable risk/reward ratios because stops can be placed below recent swing lows (for longs) or above recent swing highs (for shorts) while targets extend toward the opposite end of the macro channel.
Macro Crossover Signals (Circles - Different Shade)
In addition to micro entry signals, the indicator plots macro crossover events when the 50 EMA crosses the 100 EMA. These are displayed as circles in slightly different shades (darker green for bullish macro crosses, darker red for bearish macro crosses) and represent major structural shifts in market positioning.
Macro crossovers are rare events on higher timeframes. On weekly charts, they might occur only a few times per year. On daily charts, several times per year. On 4-hour charts, perhaps monthly or bi-monthly depending on the asset's trending characteristics. When they occur, they signal a fundamental change in the institutional risk environment for that asset.
These macro signals are not meant for immediate tactical trade execution like micro signals. Instead, they represent strategic positioning alerts—signals that the overall market structure has shifted and portfolio allocations should be adjusted accordingly. A macro bullish cross suggests beginning or increasing allocation to long positions in that asset. A macro bearish cross suggests reducing long exposure or preparing short positions.
The visual distinction between micro and macro signals (both are circles but different shades) prevents confusion while maintaining chart clarity. Traders can quickly differentiate between tactical entry points and strategic trend changes without cluttering the chart with multiple indicator windows.
THE DASHBOARD: REAL-TIME TREND INTELLIGENCE
The top-right dashboard provides a comprehensive overview of current market state across six analytical categories:
1. Macro Trend
Displays whether the 50/100 EMA structure is currently BULLISH, BEARISH, or NEUTRAL. The background color changes to match: green for bullish, red for bearish, white for neutral. This is the single most important piece of information for directional bias—all trading decisions should align with this state.
2. Micro State
Shows the current 8/12 EMA relationship: BULL when 8 is greater than 12, BEAR when 8 is less than 12, FLAT when they are equal or extremely close. This indicates whether short-term momentum is currently aligned with (or opposed to) the macro trend. Background color coding (green/red/white) provides instant visual feedback.
3. Candle State
Indicates the current candle color logic: GREEN when both phases are bullish, RED when both phases are bearish, GREY when phases are misaligned. This cell essentially tells you whether you should be looking for trade opportunities (green/red) or staying patient (grey).
4. Mode
Displays whether you are viewing CONFIRMED signals (non-repaint mode enabled) or LIVE signals (non-repaint mode disabled). This is critical for understanding whether the signals you're seeing are final and historically accurate, or real-time and subject to change before candle close. For live trading, CONFIRMED mode should always be used. The background is a neutral light grey to distinguish it from trend-dependent cells.
5. Macro Strength
Shows the percentage separation between the 50 and 100 EMAs, calculated as ((EMA50 - EMA100) / EMA100) times 100. Positive values indicate uptrend strength, negative values indicate downtrend strength. Higher absolute values indicate stronger trend conviction.
A macro strength reading above 2-3 percent typically indicates a robust, well-established trend. Readings between 0.5-2 percent suggest a moderate trend. Readings below 0.5 percent indicate a weak trend or transitional phase where the EMAs are very close together and the market structure is fragile. This measurement helps traders assess whether to be aggressive (strong trends) or cautious (weak trends) with position sizing.
6. Micro Strength
Shows the percentage separation between the 8 and 12 EMAs using the same calculation method. This measures the intensity of short-term momentum. Sharp spikes in micro strength during aligned conditions (green or red candles) often precede accelerated price moves—these represent high-momentum entry opportunities. Declining micro strength during aligned conditions can signal that the current micro trend is losing steam and may be approaching a reversal or consolidation.
The dashboard background colors provide additional instant visual feedback: green backgrounds indicate bullish conditions, red backgrounds indicate bearish conditions, white/grey backgrounds indicate neutral or transitional states. This allows traders to glance at the dashboard and immediately understand market condition without reading any text.
NON-REPAINTING MODE: THE CONFIRMATION SYSTEM
The indicator includes a critical "Apply Non-Repaint Mode" setting that fundamentally changes how signals are generated and displayed. Understanding this feature is essential for proper use of the system.
Repaint vs Non-Repaint Behavior
In standard "live" mode (non-repaint disabled), the indicator responds to price movements in real-time during candle formation. If the 8 EMA crosses above the 12 EMA intrabar during a macro uptrend, a buy signal will appear immediately. However, if price reverses and the EMAs uncross before the candle closes, that signal will disappear. This creates repainting—signals that appeared historically may not be present when you look back at the chart because they disappeared before candle confirmation.
In "confirmed" mode (non-repaint enabled), the indicator waits for the candle to close before evaluating whether a signal condition is met. The 8/12 cross must still be present at candle close for a signal to appear. Once a candle closes with a valid signal condition, that signal becomes permanent and will never disappear from historical charts. This eliminates repainting entirely.
When to Use Each Mode
For live trading: Non-repaint mode should always be enabled. This ensures that every signal you act upon is confirmed and historically reliable. You sacrifice 1-candle of responsiveness (you see the signal after the triggering candle closes rather than during its formation), but you gain certainty that the signal is valid and will not disappear.
For study and education: Disabling non-repaint mode allows you to see how the indicator responds to price action in real-time, which can be valuable for understanding the EMA relationships and how signals develop. This mode is also useful for very active monitoring where you want the earliest possible awareness of potential setups, understanding that they are not confirmed until candle close.
For backtesting: Non-repaint mode must be enabled to produce historically accurate results. Backtest results using live mode will show signals that never actually existed at candle close, producing misleading performance metrics.
The dashboard MODE cell always displays which mode you're in (CONFIRMED or LIVE) so there's no confusion about the signal reliability you're viewing.
HOW TO USE THIS INDICATOR FOR SWING TRADING
Timeframe Selection
This indicator is restricted to 4-hour timeframes and above. Attempting to apply it to timeframes below 4H will generate an error message. This restriction is intentional and based on the statistical characteristics of EMA-based trend-following systems.
On timeframes below 4 hours, market noise increases substantially, EMA relationships become less reliable as directional filters, and whipsaw trades multiply. The 8/12 and 50/100 EMA combinations used in this system are optimized for swing trading timeframe windows where trends persist for days to weeks rather than hours.
Recommended timeframe usage:
4-hour charts: Active swing trading with position holds of 2-10 days
Daily charts: Standard swing trading with position holds of 1-4 weeks
Weekly charts: Long-term trend following with position holds of 2-6 months
Entry Strategy for Long Positions
1. Confirm macro structure is bullish: Dashboard shows MACRO TREND = BULLISH, white fill between 50/100 EMAs
2. Wait for green candles: This indicates macro/micro alignment
3. Enter on buy signals: Green circles appearing below price bars
4. Place stop-loss: Below recent swing low or below the 100 EMA (whichever provides better risk/reward)
5. Target management: Use resistance zones, Fibonacci extensions, or trail stop along the 8 EMA as price advances
Entry Strategy for Short Positions
1. Confirm macro structure is bearish: Dashboard shows MACRO TREND = BEARISH, black fill between 50/100 EMAs
2. Wait for red candles: This indicates macro/micro alignment
3. Enter on sell signals: Red circles appearing above price bars
4. Place stop-loss: Above recent swing high or above the 100 EMA
5. Target management: Use support zones or trail stop along the 8 EMA as price declines
Setups to Avoid
Do NOT take trades when:
Candles are grey (macro/micro misalignment—phases disagree on direction)
Macro strength percentage is below 0.5 percent (weak trend, EMAs too close together)
Price is whipsawing through the macro EMAs (structural breakdown, transitional phase)
You missed the signal candle (chasing trades reduces risk/reward ratio)
Position Sizing and Risk Management
Position size should be determined by the distance between your entry and stop-loss level. Signals that occur near macro EMA support levels naturally provide tighter stop placement, which allows for larger position sizes while maintaining consistent percentage risk per trade.
As a general framework:
High conviction setups: Signals occurring at or near macro EMA support/resistance with macro strength greater than 2 percent
Standard setups: Signals occurring within the macro channel with moderate strength (1-2 percent)
Low conviction setups: Signals during weak trends (less than 0.5 percent strength) or far from macro EMAs—consider reducing size or skipping
Never risk more than 1-2 percent of trading capital on a single swing trade, regardless of setup quality.
ALERT SYSTEM
The indicator includes comprehensive alert conditions for all major signal types:
Micro Entry Alerts
BUY Signal (Micro 8/12): Fires when the 8 EMA crosses above the 12 EMA during a macro uptrend
SELL Signal (Micro 8/12): Fires when the 8 EMA crosses below the 12 EMA during a macro downtrend
These are your primary tactical entry alerts. Configure these if you're monitoring multiple charts and want to be notified immediately when entry opportunities appear.
Macro Structure Alerts
MACRO BULLISH CROSSOVER: Fires when the 50 EMA crosses above the 100 EMA
MACRO BEARISH CROSSOVER: Fires when the 50 EMA crosses below the 100 EMA
These are strategic positioning alerts for long-term trend changes. Because they occur infrequently, they are high-importance notifications that warrant immediate analysis and potential portfolio adjustment.
All alerts include descriptive messages and ticker/timeframe information for multi-asset monitoring. Alerts respect the non-repaint setting—if non-repaint mode is enabled, alerts only fire after candle close confirmation.
WHAT MAKES THIS INDICATOR ORIGINAL AND VALUABLE
While Exponential Moving Averages and crossover systems have existed for decades, this indicator's value proposition lies in its architectural integration of multiple analytical layers:
1. Phase Subordination Logic
Unlike mashup indicators that simply display multiple signals side-by-side, this system implements a hierarchy where micro signals require macro approval. This reduces false signals by 40-60 percent compared to standalone crossover systems because it eliminates all counter-trend setups.
2. Visual Synthesis
The candle coloring system translates complex multi-EMA analysis into instant visual feedback. Rather than mentally tracking four moving average positions and their relationships, traders can assess trend alignment at a glance through color alone.
3. Dual Signal Classification
Separating tactical entry signals (micro crosses) from strategic positioning signals (macro crosses) addresses two different trading timeframes within one indicator. Traders can use the same system for weekly trend monitoring and daily entry timing.
4. Strength Quantification
The percentage-based strength measurements for both macro and micro phases provide objective metrics for trend conviction, enabling systematic position sizing and risk adjustment rather than subjective assessment.
5. Non-Repaint Implementation
Proper non-repaint functionality with user control ensures that the indicator can be used reliably for both live trading (confirmed mode) and education (live mode) without the confusion and unreliability common to repainting indicators.
6. Higher Timeframe Focus
The 4H+ timeframe restriction is a feature, not a limitation. It prevents misuse of the system in market conditions (lower timeframes) where its statistical edge does not exist, protecting users from inappropriate application.
This is not simply a combination of EMAs—it is a decision framework that uses EMA relationships to create a systematic filter for trend-aligned trade opportunities while actively suppressing signals during unfavorable market states.
SUITABLE MARKETS AND TRADING STYLES
This indicator is suitable for any liquid market where price responds to moving average structure and institutional positioning:
Forex Major Pairs: EUR/USD, GBP/USD, USD/JPY, AUD/USD (optimal on 4H-Daily timeframes)
Stock Indices: S&P 500, NASDAQ, DAX, FTSE (optimal on Daily-Weekly timeframes)
Cryptocurrencies: BTC/USD, ETH/USD (4H-Daily optimal, high volatility requires wider stops)
Individual Stocks: Large-cap equities with consistent volume (Daily-Weekly optimal)
Commodities: Gold, Silver, Crude Oil, Natural Gas (Daily optimal)
Trading Style Alignment
Swing Trading (Primary): This indicator is specifically designed for swing trading—holding positions for multiple days to weeks based on 4H-Daily macro structure and micro entry timing. This is the optimal use case.
Position Trading: Using weekly macro crosses for long-term allocation decisions and holding for months. The system works well for this approach but signals are rare (2-4 per year per asset).
Trend Following: Systematic entry on micro signals within established macro trends, exiting when macro structure breaks or opposing micro signal appears.
NOT Suitable For:
Scalping (requires sub-1H timeframes where system has no edge)
Day trading (same reason—timeframe mismatch)
Range trading / mean reversion (this is a trend-following system)
News trading (EMAs lag price and cannot react to fundamental shocks)
SETTINGS EXPLANATION
Non-Repaint Settings
Apply Non-Repaint Mode (Recommended): When enabled, waits for candle close before confirming signals, eliminating repainting. Recommended for live trading.
Macro Trend EMAs (Visible Fill)
EMA Macro Fast (Default 50): Medium-term institutional bias line
EMA Macro Slow (Default 100): Long-term structural support/resistance line
Micro Signal EMAs (Visible Fill Default ON)
EMA Micro Fast (Default 8): Short-term momentum leader
EMA Micro Slow (Default 12): Short-term trigger line for entry signals
Show EMA 8/12 Fill: Toggle colored fill between micro EMAs (green uptrend, red downtrend)
Visual Settings
Show Dashboard: Toggle information panel display in top-right corner
Alert Configuration
Alert on Micro Signals: Receive alerts for 8/12 crossover entry signals
Alert on Macro Crossovers: Receive alerts for 50/100 structural change signals
Indicator Type: Overlay
Best Timeframes: 4H, Daily, Weekly
Market Suitability: Universal (trending liquid markets)
Repainting: Optional (Non-Repaint Mode available)
Alerts: Fully supported (4 distinct alert types)
DISCLAIMER
This indicator is a technical analysis tool designed to identify trend alignment and potential entry points based on Exponential Moving Average relationships. It does not guarantee profitable trades and should be used as part of a comprehensive trading plan that includes proper risk management, position sizing, and fundamental analysis where appropriate.
Past performance of any trend-following system does not predict future results. The indicator works best in trending market conditions and may generate false signals during extended ranging or highly volatile transitional periods. Market conditions change, and no technical indicator can predict all future price movements.
Always backtest any strategy on your chosen asset and timeframe before risking real capital. Never risk more than you can afford to lose. Trading involves substantial risk of loss and is not suitable for all investors. This indicator is an educational and analytical tool—all trading decisions and their consequences remain solely the responsibility of the user.
Indikator

DNSE VN301!, MACD Cross Strategy"MACD Trend Following with SMA Trend Filter" is a momentum-based trend-following strategy designed to capture directional market moves as momentum begins to strengthen. The strategy uses the MACD indicator, with its standard parameters of Fast EMA(12), Slow EMA(26), and Signal EMA(9), to identify bullish signals when the MACD line crosses above the signal line and bearish signals when it crosses below.
To improve signal quality, the strategy incorporates an optional SMA(200) trend filter, allowing Long trades only when the SMA is rising and Short trades only when it is falling. By combining MACD momentum crossovers with long-term trend confirmation, the strategy seeks to reduce false signals during sideways market conditions while participating in sustained intraday trends. It also includes configurable stop loss, take profit, trading session filters, and automatic end-of-day position closure for disciplined risk management.
Strategy settings and configuration:
Chart timeframe: recommended 5-minute chart
Position size: 3 contracts
MACD fast length: 12
MACD slow length: 26
MACD signal length: 9
SMA length: 200
Stop loss: 10 points
Take profit: 30 points
SMA trend filter: On / Off
Take profit: On / Off
Time filter: On / Off
Trading session: 09:00 – 14:30
Trade direction: Long / Short / Both
Default script settings:
The strategy uses MACD(12,26,9). The MACD line is calculated from the difference between EMA(12) and EMA(26). The Signal line is the EMA(9) of the MACD line.
When MACD crosses above the Signal line, bullish momentum may be taking control. When MACD crosses below the Signal line, bearish momentum may be taking control.
When the SMA(200) trend filter is enabled, the script only allows Long trades when SMA(200) is rising and only allows Short trades when SMA(200) is falling. When the SMA filter is disabled, the strategy can trade both directions based only on MACD crossover signals.
Users can add the built-in MACD indicator on TradingView with settings 12, 26, 9 and source close to visually monitor the signal below the price chart.
Entry and exit rules:
Long entry:
MACD(12,26,9) crosses above the Signal line
AND SMA(200) is rising, if the SMA filter is enabled
AND the signal appears during the trading session
AND trade direction allows Long entries
Long exit:
Stop loss: 10 points from entry price
Take profit: 30 points from entry price, if enabled
MACD crosses below the Signal line
Reversal when a valid Short signal appears
Automatic position close at the end of the trading session
Short entry:
MACD(12,26,9) crosses below the Signal line
AND SMA(200) is falling, if the SMA filter is enabled
AND the signal appears during the trading session
AND trade direction allows Short entries
Short exit:
Stop loss: 10 points from entry price
Take profit: 30 points from entry price, if enabled
MACD crosses above the Signal line
Reversal when a valid Long signal appears
Automatic position close at the end of the trading session
Risk disclaimer:
Futures trading involves a high level of risk and prices can move sharply. This script is provided for reference, research, and backtesting purposes only. Users should fully understand derivatives trading, their own risk tolerance, and the strategy logic before applying it to live trading.
All investment decisions are the responsibility of the user. phaisinh.online is not responsible for any losses arising from the use of this strategy in real trading. Past performance does not guarantee future results.
___________________________________________________________________
"MACD Trend Following với Bộ lọc Xu hướng SMA" là một chiến lược giao dịch theo xu hướng dựa trên động lượng, được thiết kế nhằm nắm bắt các biến động giá theo một hướng khi động lượng thị trường bắt đầu gia tăng. Chiến lược sử dụng chỉ báo MACD với các tham số tiêu chuẩn gồm Fast EMA(12), Slow EMA(26) và Signal EMA(9) để xác định tín hiệu mua khi đường MACD cắt lên trên đường tín hiệu, và tín hiệu bán khi đường MACD cắt xuống dưới đường tín hiệu.
Để nâng cao chất lượng tín hiệu, chiến lược tích hợp bộ lọc xu hướng SMA(200) (có thể bật hoặc tắt), chỉ cho phép mở vị thế Long khi SMA đang dốc lên và vị thế Short khi SMA đang dốc xuống. Bằng cách kết hợp tín hiệu giao cắt động lượng của MACD với xác nhận xu hướng dài hạn, chiến lược hướng tới việc giảm thiểu các tín hiệu nhiễu trong giai đoạn thị trường đi ngang, đồng thời tận dụng các xu hướng intraday kéo dài. Ngoài ra, chiến lược còn bao gồm các tùy chọn Stop Loss, Take Profit, bộ lọc khung thời gian giao dịch, và cơ chế tự động đóng toàn bộ vị thế khi kết thúc phiên, nhằm đảm bảo quản trị rủi ro một cách chặt chẽ và có kỷ luật.
Cài đặt & cấu hình chiến lược:
Biểu đồ: khuyến nghị khung 5 phút
Khối lượng giao dịch: 3 hợp đồng
Chu kỳ nhanh MACD: 12
Chu kỳ chậm MACD: 26
Chu kỳ tín hiệu MACD: 9
Chu kỳ SMA: 200
Cắt lỗ: 10 điểm
Chốt lời: 30 điểm
Bộ lọc xu hướng SMA: Bật / Tắt
Dùng chốt lời: Bật / Tắt
Bộ lọc giờ: Bật / Tắt
Khung giờ giao dịch: 09:00 – 14:30
Chiều giao dịch: Mua / Bán / Cả hai
Cài đặt mặc định của script:
Chiến lược sử dụng MACD(12,26,9), trong đó đường MACD được tính từ chênh lệch giữa EMA(12) và EMA(26). Đường Signal là EMA(9) của chính đường MACD.
Khi MACD cắt lên đường Signal, động lượng tăng có thể đang chiếm ưu thế. Khi MACD cắt xuống đường Signal, động lượng giảm có thể đang chiếm ưu thế.
Khi bật bộ lọc xu hướng SMA(200), script chỉ cho phép lệnh Mua khi SMA(200) dốc lên và chỉ cho phép lệnh Bán khi SMA(200) dốc xuống. Khi tắt bộ lọc SMA, chiến lược có thể giao dịch cả hai chiều chỉ dựa trên tín hiệu giao cắt MACD.
Người dùng có thể thêm chỉ báo MACD có sẵn trên TradingView với tham số 12, 26, 9 và nguồn close để quan sát tín hiệu trực quan bên dưới biểu đồ giá.
Điều kiện vào và thoát lệnh:
Vào lệnh Mua:
MACD(12,26,9) cắt lên đường Signal
VÀ SMA(200) dốc lên, nếu bật bộ lọc SMA
VÀ tín hiệu xuất hiện trong khung giờ giao dịch
VÀ chiều giao dịch cho phép lệnh Mua
Thoát lệnh Mua:
Cắt lỗ: 10 điểm từ giá vào lệnh
Chốt lời: 30 điểm từ giá vào lệnh, nếu bật
MACD cắt xuống đường Signal
Đảo chiều khi xuất hiện tín hiệu Bán hợp lệ
Tự động đóng lệnh khi hết khung giờ giao dịch
Vào lệnh Bán:
MACD(12,26,9) cắt xuống đường Signal
VÀ SMA(200) dốc xuống, nếu bật bộ lọc SMA
VÀ tín hiệu xuất hiện trong khung giờ giao dịch
VÀ chiều giao dịch cho phép lệnh Bán
Thoát lệnh Bán:
Cắt lỗ: 10 điểm từ giá vào lệnh
Chốt lời: 30 điểm từ giá vào lệnh, nếu bật
MACD cắt lên đường Signal
Đảo chiều khi xuất hiện tín hiệu Mua hợp lệ
Tự động đóng lệnh khi hết khung giờ giao dịch
Tuyên bố rủi ro:
Giao dịch hợp đồng tương lai có mức độ rủi ro cao và giá có thể biến động mạnh. Script này chỉ phục vụ mục đích tham khảo, nghiên cứu và kiểm thử. Người dùng cần hiểu rõ giao dịch phái sinh, khẩu vị rủi ro cá nhân và logic của chiến lược trước khi áp dụng vào giao dịch thực tế.
Mọi quyết định đầu tư thuộc trách nhiệm của người dùng. phaisinh.online không chịu trách nhiệm cho bất kỳ khoản lỗ nào phát sinh từ việc sử dụng chiến lược này trong giao dịch thực tế. Hiệu quả trong quá khứ không đảm bảo kết quả trong tương lai.
Strategie

Caheeen Pulse v3.0Caheeen Pulse is a market-regime visualization tool designed to summarize trend structure, directional alignment and volatility-normalized price positioning in one compact view.
HOW IT WORKS
The indicator combines four independent observations into a composite regime score ranging from -4 to +4:
Price position relative to the long-term Trend EMA.
Alignment between the Fast EMA and Slow EMA.
Direction of the Trend EMA slope.
Price distance from the Trend EMA, normalized by ATR.
The combined score classifies the current market environment into five states:
• Strong Bull
• Bull
• Neutral
• Bear
• Strong Bear
This approach differs from a basic moving-average crossover. It evaluates several dimensions of market structure simultaneously and normalizes price displacement using volatility, allowing the same framework to adapt across instruments and timeframes.
VISUAL COMPONENTS
• Long-term Trend EMA
• Fast and Slow EMAs
• Regime-based chart background
• Confirmed regime-transition markers
• Dashboard displaying the composite score, ATR-normalized price distance, trend slope, EMA spread and ATR volatility
ALERTS
Caheeen Pulse includes alert conditions for confirmed transitions into Strong Bull, Strong Bear and Neutral regimes. Transition alerts and markers are confirmed only after the candle closes. When creating an alert, select “Once Per Bar Close.”
USAGE
Caheeen Pulse is intended to help users:
• Identify the prevailing market regime
• Distinguish directional conditions from transitional periods
• Compare trend structure with current volatility
• Apply an additional market-context filter to their own analysis
The indicator does not place orders, manage positions or provide personalized investment advice. It should not be used as a standalone instruction to buy or sell.
The live regime display can change while the current candle is forming. Confirmed transition markers and alerts are generated at candle close.
Historical or hypothetical observations do not guarantee future results. Trading involves risk, and users remain responsible for their own decisions and risk management. Indikator

Zone Flow S/R StrategyZone Flow S/R Strategy
📌 Strategy Overview
Zone Flow is a multi‑timeframe support/resistance strategy that uses dynamic pivot‑derived zones to identify high‑probability reversal and breakout setups.
Unlike static support/resistance lines, this 9‑level zone system (R4–R1, P, S1–S4) automatically adapts to market structure changes at each new period (Daily/Weekly/Monthly). Each zone has a configurable width (Percentage, ATR, or Fixed) to account for volatility, and a breakout threshold to filter out minor wicks.
# Unique Synergy
Most pivot strategies treat levels as static lines, leading to false breakouts. Most engulfing strategies ignore the bigger picture, catching falling knives. This strategy solves both problems by combining these components in a specific sequence:
1- Dynamic Zones + Gap State Machine (The Context)
Instead of just drawing lines, we create zones (R1-R4, P, S1-S4) with adaptive width. More importantly, the Gap State Machine tracks which gap price sits in (e.g., between R1 and Pivot). This tells us exactly where we are in the market structure. If price moves from upper Gap to lower Gap, the strategy instantly switches sentiment from Bullish to Bearish.
- Why this matters: It prevents the strategy from trading blindly; it only trades when price is transitioning between structural levels, and price retrace to the zone drastically reducing false signals in the middle of nowhere.
2- Pin Bar Sweep + Engulfing Combo (The Momentum Trigger)
A standard pin bar alone is a weak reversal signal. A standard engulfing pattern alone is common. However, when a Pin Bar sweeps the N-bar high/low (proving a breakout attempt failed) and is immediately followed by an Engulfing pattern on the next candle, this combo represents a "double confirmation" of exhaustion.
Crucially, this specific combo overrides the EMA confirmation.
- Why this matters: Strong momentum sweeps often happen against the short-term EMA trend. By allowing this specific combo to bypass the EMA, the strategy captures powerful reversals that pure trend-following strategies miss.
3- Dynamic Zone Width (The Volatility Adaptation)
Instead of using fixed support/resistance, the zone width changes based on the selected Period's ATR or Percentage.
- Why this matters: This ensures the strategy scales perfectly across any asset (Gold, Crypto, Forex) without manual width adjustments, making it robust across different volatility regimes.
4- Selective Zone Activation (The Manual Override)
Unlike standard pivot systems that force trades on every level, the Zone Selection inputs allow users to disable specific zones (e.g., turn off R3 if price often fakes out there or turn off S4 market is always get exhausted lower probability trade).
- Why this matters: This turns the strategy from a rigid algorithm into a customizable framework where the user can apply their own discretion based on historical price behavior.
5. Hierarchical EMA Architecture (The Structural Governor)
This strategy does not treat all EMAs equally. It uses a two-tier EMA system with a strict hierarchy:
Lower TF EMA (Optional & Overrideable): The Lower TF EMA on the current timeframe acts as a micro-trend filter. However, as explained above, the Pin Bar Sweep + Engulfing Combo can override this filter. Why? Because strong institutional reversals often happen against the short-term trend, and we want to capture them.
Higher TF EMA (Absolute & Non-Negotiable): Higher TF EMA on the selected Higher Timeframe acts as an "Absolute Structural Governor." Unlike the lower EMA, this filter cannot be overridden by any pattern.
For Long entries: Price must be above this HTF EMA.
For Short entries: Price must be below this HTF EMA.
Most strategies either ignore the HTF entirely. By making the HTF EMA absolute and the LTF EMA overrideable, this strategy achieves the perfect balance:
The HTF EMA prevents catastrophic drawdowns by keeping you on the right side of the bigger trend.
The LTF EMA override allows you to catch sharp, high-probability reversals within that trend without being delayed by a slow-moving micro-filter.
6. Optional Risk Architecture (The Management Layer)
The strategy includes a built-in partial-take-profit and breakeven module. By default, this module is disabled to provide a clean, straightforward 1:3 risk-reward backtest without the complexity of multiple exit orders.
This default setting allows users to evaluate the core entry logic (zones + patterns) without interference from partial exits.
However, for traders who want to reduce psychological pressure or manage Gold's notorious retracements, they can enable Allow Breakeven and Allow Partial TP. When activated, the strategy closes a percentage of the position (e.g., 50%) at a lower R:R threshold (TP1) and moves the remaining position to breakeven—locking in early profits while letting the rest of the trade run.
# Zone Calculation
The strategy calculates 9 zones using a modified pivot point formula from the selected period (Daily, Weekly, Monthly, Quarterly, Yearly):
The pivot formula can be one of 5 methods: Classic, Fibonacci, Woodie, Camarilla, or DM.
The Classic Pivot (shown below) is the most widely used and serves as the default:
Pivot (P) = (H + L + C) / 3
R1 = (2 × P) – L
S1 = (2 × P) – H
R2 = P + (H – L)
S2 = P – (H – L)
(R3, R4, S3, S4 are logical extensions of this same principle)
Additional Methods (Briefly Explained):
Fibonacci: Uses the golden ratio multipliers (0.382, 0.618, 1.000, 1.618) to place support/resistance levels between the pivot and the high/low range.
Woodie: Gives extra weight to the closing price (Formula: P = (H + L + 2C) / 4), making it more sensitive to the current session's momentum.
Camarilla: Uses multipliers based on the previous range to place levels very close to the current price, ideal for range-bound trading and scalping.
DM: Adjusts the pivot formula conditionally based on whether the close was higher or lower than the open, making it adaptive to daily sentiment.
From these, the strategy derives:
- 4 Resistance Zones (R4, R3, R2, R1) – above the pivot
- 1 Pivot Zone (P)
- 4 Support Zones (S1, S2, S3, S4) – below the pivot
Each zone is expanded by a Zone Width to create a buffer, making the levels more practical.
# Zone Width Calculation
Three modes:
- Percentage – zone width as a percentage of current price
- ATR Multiplier – width = ATR × Multiplier
- Fixed – fixed price distance
# Gap Index Mapping (0–9):
Gap 0 – Above R4 → Aggressive (no trades)
Gap 1 – Between R4 and R3 → Bearish near R4, Bullish near R3
Gap 2 – Between R3 and R2 → Bearish near R3, Bullish near R2
Gap 3 – Between R2 and R1 → Bearish near R2, Bullish near R1
Gap 4 – Between R1 and Pivot → Bearish near R1, Bullish near Pivot
Gap 5 – Between Pivot and S1 → Bearish near Pivot, Bullish near S1
Gap 6 – Between S1 and S2 → Bearish near S1, Bullish near S2
Gap 7 – Between S2 and S3 → Bearish near S2, Bullish near S3
Gap 8 – Between S3 and S4 → Bearish near S3, Bullish near S4
Gap 9 – Below S4 → Aggressive (no trades)
Based on the gap index and price action, the strategy sets allowLong or allowShort – and displays the status on the info table.
Market Status Displayed:
- Bullish – near support zones; long trades allowed
- Bearish – near resistance zones; short trades allowed
- Waiting – new period started; zones recalculating; no trades
- Aggressive – above R4 or below S4; no trades
- Zone disabled – manually disabled zone; no trades
# Entry Signals
1. Engulfing Patterns
Detects bullish and bearish engulfing with filters:
- Body Only – if true, only bodies must engulf (not full range)
- Min/Max Range – can be Percentage, ATR Multiplier, or Fixed
- Gap Allowance – max price gap between previous close and current open
- Previous or Prior Candle – at least one of the last two candles must be the opposite. color (bearish for bullish engulf; bullish for bearish engulf).
This is not a random condition. The strategy only considers trades when price is near a strong structural zone (support/resistance). Because the zone itself provides the primary context for a potential reversal, the immediate previous candle does not need to be strictly opposite in color.By relaxing the requirement to "at least one of the last two," the strategy captures valid reversals at key levels that a strict, textbook rule would miss—while remaining highly selective because it only trades near strong zones.
2. Pin Bar + Engulfing Combo (EMA Override)
Identifies hammers/shooting stars with:
- Wick/Body Ratio (Wick 3× body)Requires a clearly defined pin bar with a very small body.
- Max Body/Range (Body is at most 20% of range) Ensures the body is genuinely small relative to the total range. This is the textbook definition of a pin bar/hammer. Captures true rejection candles.
- Min Wick/Range (70% of range) This is the classic pin bar definition. A 70%+ wick means price aggressively rejected the level and reversed.
- Sweep Lookback – bullish pinbar must break the lowest low of the previous N bars;
bearish must break the highest high
a pin bar that sweeps a recent extreme (lookback) and the very next candle forms an engulfing pattern in the same direction. This combo overrides the Lower TF EMA confirmation – a unique feature that captures strong momentum after a sweep.
Combined Entry Requirements
All of the following must be true:
1. Valid engulfing or pin+engulf combo
2. Pattern occurs near a zone (open inside zone boundaries or crossing it)
3. Market status aligns with trade direction
4. Daily trade limit not exceeded (default: 2)
5. Relevant zone is enabled
6. Price is on the correct side of EMAs (unless overridden by combo)
7. HTF EMA confirms (if enabled)
8. RSI not overbought/oversold (if enabled)
9. Not within the no‑trade window (if enabled)
-----------------------------------------------------
# Confirmation Filters
Current TF EMA – ensures micro‑trend alignment. Overridden by pin+engulf combo.
Higher TF EMA (default 150 on 1H) – filters out counter‑trend moves in the bigger picture.
RSI – prevents buying above 70 and selling below 30.
Bollinger Bands – blocks trades when volatility is too low (BB width below threshold).This filter is specifically designed for assets that range heavily—choppy, sideways markets.
No‑Trade Window – avoids end‑of‑day volatility (active only for timeframes ≤15min).
# Risk & Position Management
1- Position Sizing:
- Risk per trade – percentage of equity for first trade, separate for second
- Position size = (Account Risk) / (Entry – SL distance).
- Second trade does not increment the daily trade counter:
This is a deliberate design choice. The daily trade counter tracks new trade initiations, not total positions. The second trade (pyramiding) is considered a continuation of the existing position, not a new independent decision. This ensures the strategy can scale into strong trends without consuming the daily limit, while still respecting the maximum number of new entries per session.
2-Stop Loss Options:
- Low-High – entry bar low/high ± buffer Tight, reactive stops. Best for scalping or when you want the SL to follow the immediate price action of the entry candle.
- Swing high/low – N-bar low/high ± buffer Broader, structural stops. Ideal for swing trading or when you want the SL to respect recent market structure rather than a single bar.
- Zone – zone boundary ± buffer Structural stops aligned with pivot levels. Best when you want the SL to be placed exactly at the structural support/resistance level that defines the trade.
- Fixed distance – fixed price distance Simple, static stops. Useful when you know your exact risk tolerance in dollar/pip terms and want a consistent SL distance regardless of volatility.
- ATR Multiplier – entry ± (ATR × multiplier) Volatility-adaptive stops. Best for Gold's changing volatility—widens during news/high volatility, tightens during calm periods.
3- Take Profit:
- Main R:R ratio – main R:R ratio (default 1:3), plus optional partial TP and breakeven at a lower R:R ratio.
- Partial TP – close a percentage of position at a lower R:R (TP1)
- Breakeven – optionally move stop to entry at TP1
4- Trade Counter Reset:
- For TF ≤ 15m: resets at NY (9:30 AM) and London (3:30 AM) starts (configurable)
This aligns with Gold's session-specific volatility and allows fresh participation in each session while preventing over-trading within a single session.
- For TF > 15m: resets once per day at session start (Every new day) Session-specific behavior is less relevant on higher timeframes, and a simple daily cap is more appropriate for swing trading.
5- No‑Trade Window:
- Avoids high‑volatility periods (e.g., end of day)
- Active only for TF ≤ 15m (16:00 PM – 18:30 PM NY time, configurable) End-of-day volatility spikes can cause excessive slippage and erratic price action on short timeframes. on TF > 15 The window is too short to be meaningful; higher timeframe traders are less affected by brief volatility spikes.
6- Session Close:
- TF ≤ 15m: can close at day end and/or week end (configurable). Scalping trades on 1m–15m charts typically last minutes to a few hours. These trades are highly sensitive to Overnight gaps, Weekend gaps
- 15m < TF ≤ 10h: only week end. Swing trading on 30m–4H charts typically lasts hours to several days.
- TF > 10h: feature disabled. Position trading on daily+ charts lasts days to weeks. These trades aim to capture large macro moves.
# Chart Display
- Zone boxes – semi‑transparent red/pink with labels (R4…S4), auto‑cleanup (max 55 periods)
- Trade management lines – entry (white), SL (red), TP (green), TP1/breakeven (dashed),
with green/red fills; auto‑cleanup ((4) * max 125)
- Info table (top‑right) :
1. shows Market Status(Bullish/Bearish/Aggressive/Waiting).
2. EMA confirmations.
3. Zone Width, Breakout threshold.
4. Engulf range max min.
5. SL settings(SL refrence, sL bufer)
- EMA plots – light blue (lower TF) and light red (higher TF)
- Signal shapes – hidden by default (can be enabled via style settings)
- arrowdown shapes - "Reset trade counter"
- Background 1 color – yellow during no‑trade window
- Background 2 color – white close all position on week/day end.
UI Note: Inputs are hidden from the status line to keep your chart clean. All settings (zones, EMAs, risk, patterns) remain fully adjustable in Settings → Inputs.
# Default Settings – Optimized for XAUUSD (Gold)
All default values have been calibrated specifically for Gold's typical volatility and intraday structure.
(Setting : Default : Why This Works for Gold)
----------------------------------------------------------------------------------------
Period : Daily : Gold respects daily highs/lows as key structural levels.
-----------------------------------------------------------------------------------------
Pivot Type : Classic : Most widely used and reliable for Gold.
-----------------------------------------------------------------------------------------
Zone Width : ATR (0.053× ATR(14)) : ATR(14) provides a stable, week-to-week view of Gold's volatility (roughly two trading weeks of data).Adapts to Gold's daily volatility (Zone Width often $4–$10 range).
-----------------------------------------------------------------------------------------
Breakout Threshold : 7% of zone width : Zone width ≈ $3.00–$10.00 (Daily ATR × 0.053). 7% ≈ $0.21–$0.70 (21–70 ticks)—filters noise wicks, captures genuine breaks.Prevents false transitions caused by standard stop-hunting wicks
-----------------------------------------------------------------------------------------
Engulfing Range : ATR(14) (0.375× – 2.5×) : ATR(14) sits in the "sweet spot"—responsive enough to capture shifts in Gold's volatility relatively quickly, yet long enough to smooth out the daily noise and provide a reliable, consistent measure. Captures meaningful moves $3–$15—ensures candle has enough size to be meaningful, rejecting tiny $0.30–$0.50 noise patterns, while filtering out massive blow-off spikes (> $20–$25 on 15m).
-----------------------------------------------------------------------------------------
Pin Bar Sweep : 12 bars : 12 bars – Calibrated for Gold's 3-hour intraday cycle and session transitions. Long enough to capture genuine liquidity grabs, short enough to avoid outdated levels.
-----------------------------------------------------------------------------------------
Risk per trade : 2% (1st), 1% (2nd) : Balances risk with Gold's occasional false breakouts. For Gold's volatile nature, 2%-1% provides the best balance between survival and growth.
-----------------------------------------------------------------------------------------
Risk:Reward : 1:3 : Gold routinely moves 1.5–2× its ATR in a single directional push. A 1:3 target is well within Gold's typical daily range.
-----------------------------------------------------------------------------------------
Stop-Loss Reference : ATR Multiplier : For Gold's volatile nature, a static stop-loss (Fixed or Low-High) cannot adapt to changing volatility. ATR-based SL scales with market conditions—widening during high volatility (news, session opens) and tightening during calm periods. This ensures the stop-loss is always "fair" relative to current market conditions, preventing premature stops during normal volatility spikes
-----------------------------------------------------------------------------------------
Stop-Loss Multiplier : 1.8× ATR(14) : A 1.8× ATR(14) stop-loss represents 1.8 times Gold's average 14-period range. Why 1.8× and not 2.0× or 1.5×? Backtesting revealed that 1.8× is the "sweet spot"—wide enough to survive Gold's normal volatility spikes without being stopped out by noise, yet tight enough to limit losses
-----------------------------------------------------------------------------------------
Current TF EMA : 21 (Enabled, Overrideable) : On 15m chart = 5.25 hours—perfectly captures Gold's average intraday move length. Can be overridden by Pin Bar + Engulfing Combo to catch institutional reversals that occur against the short-term trend.
-----------------------------------------------------------------------------------------
Higher TF EMA : 150 on 1H : On Gold, a 150-period EMA on a 1H chart represents roughly 6.5 days (one full trading week) of data. By making this filter absolute, the strategy guarantees it will never take a counter-trend trade against the weekly macro-structure.trend.
-----------------------------------------------------------------------------------------
Filter (RSI) : length 12 : Most traders default to RSI(14), but RSI(12) is intentionally faster for Gold's volatile intraday moves. Gold often spikes into overbought/oversold territory and reverses quickly. A 12-period RSI reacts ~15% faster than RSI(14), catching these reversals earlier while remaining smooth enough to avoid excessive whipsaws.
-----------------------------------------------------------------------------------------
Filter (Bollinger Bands) : Disabled by default : Gold is historically a trending asset with strong directional moves. A low-volatility filter would unnecessarily block valid entries during these trends. Designed for range-bound assets (choppy crypto, certain forex crosses)—enable it only if your market consolidates heavily.
-----------------------------------------------------------------------------------------
These values are a starting point – you may adjust them for other assets or personal risk tolerance.
# Important Notes on Backtest Realism
- Commission – Most ECN/raw-spread brokers charge $3.00–$3.50 per side (round-turn commission of $6.00- $7.00) for 1 standard lot (100 oz) of XAUUSD. Standard accounts usually build the fee into a wider spread instead of charging a separate cash. This strategy deducts $3.50 per entry and $3.50 per exit ($0.035 × 100 oz)round-turn commission of $7.00. Adjust this to match your broker's exact fees.
- 4 ticks Slippage - For XAUUSD, 1 tick = $0.01 per ounce. 4 ticks = **$0.04 per ounce (unit)**. Accounts for real-world price . Prevents overly optimistic backtest equity curves.
Always adjust the commission value to your broker's exact fee structure before relying on the results.
"A backtest without realistic commission and slippage is a fantasy. A backtest with realistic commission and slippage is a truthful reflection of what you can expect when trading live."
- Intra-Bar Execution: The strategy uses calc_on_every_tick = true, meaning it recalculates on every price tick during real-time trading. This allows the breakeven and partial TP logic to trigger immediately when price hits TP1, protecting the trade from intra-bar reversals.
Note: Backtests use OHLC data only, so intra-bar fills and breakeven triggers cannot be perfectly simulated. Real-time performance may differ from backtest results due to this limitation
# The Core Innovation (Why This Isn't Just a Mashup)
This strategy is built on a three-layer validation system. Each layer solves a specific problem that the other layers cannot solve alone.
Layer 1 (The Structure): Dynamic Pivot Zones
Layer 2 (The Trigger): Pin-Bar Sweep + Engulfing Combo
Layer 3 (The Execution): Gap State Machine
Here is how they interdepend to create a unique edge:
1. Adaptive Pivot Mathematics (The "Regime Matching" Logic)
Instead of offering multiple pivot types just for the sake of it, this strategy provides them so the trader can match the mathematical formula to the market's current behavioral regime:
Why this matters: Most strategies lock you into one formula. This strategy acknowledges that price dynamics change, and it gives you the mathematical weapon to adapt without rewriting the entire code.
2. The "Liquidity Grab" Trigger (Sweep + Engulfing Combo)
This is the most critical edge of the strategy. A standard Engulfing pattern is common. A standard Pin Bar is common. But when they occur sequentially—a Pin Bar that sweeps the 12-bar extreme, immediately followed by an Engulfing candle—it represents a textbook institutional "liquidity grab."
- The Logic: Large players often push price to sweep obvious stop-losses (above highs or below lows) before reversing the trend.
- The Override: Crucially, this specific combo overrides the Lower TF EMA confirmation.
- Why this is a breakthrough: Standard trend-following strategies with a hard EMA filter will miss these reversals because price is moving against the EMA in the short term. By programming this specific override, the strategy captures the exact moment of institutional reversal—catching the move before the EMA flips and the trend-followers finally enter.
3. The Gap State Machine (Dynamic Sentiment Tracking)
Unlike static support/resistance scripts that just plot lines and wait for touches, this strategy features a state machine that tracks which of the 9 gaps (between R4-R1, Pivot, S1-S4) the price currently occupies.
- The Mechanism: A Breakout Threshold (default 7% of zone width) acts as a "dead-zone" filter. Price must exceed this threshold to officially transition from one gap to another.
- The Alpha: This prevents the strategy from whipsawing during minor noise. When price crosses from Gap 4 (between R1 and Pivot) into Gap 3 (between R2 and R1), the strategy instantly and autonomously switches market status from "Bearish" to "Bullish" or vice versa.
4. Selective Zone Activation (Strategic Discretion)
- This strategy allows the user to completely disable specific zones (e.g., turn off R3).
- The Value: By disabling a weak level, the user forces the strategy to wait for the next stronger level, instantly increasing the win rate and filtering out historically weak signals without altering any other code.
5. Non-Invasive Risk Architecture (Clean Defaults)
For traders who want to reduce psychological pressure or optimize for Gold's notorious retracements, they can enable these modules. When activated, the strategy closes % of the position at a lower R:R threshold and moves the remaining position to breakeven—locking in profits while letting the rest run.
In Summary: The "Mashup" Justification
This is not a random collection of indicators.
1. The State Machine provides the structural context.
2. The Pin+Engulf combo provides the high-conviction trigger that overrides slow-moving filters.
3. The Selectable Pivot Types provide the mathematical adaptability to different assets.
4. The Selectable Zones provide the manual discretion to avoid historical losing levels.
5. The Disabled TP/BE by default provides a clean baseline for evaluating the core logic.
Author: Awab_Hassan
Strategie

Indikator

Gravity Well Trend | Lyro RSOverview:
Gravity Well Trend is a volume-weighted mean-reversion and trend tool built around a simple idea: the volume-weighted price center is where the market's "mass" sits, and price orbiting near it is effectively captured. A real trend only exists when price achieves sufficient distance from that center in ATR terms while the center itself is accelerating the same direction — an escape from the well, not just a temporary orbit. Three selectable signal modes let it run as a strict trend filter, a simple midline flip, or a band-reclaim system.
Key Features
Volume-Weighted Gravity Center: Calculates a volume-weighted moving average as the "center of mass" for price, forming the core reference line the rest of the indicator is built around.
Escape-Distance Trend Logic: In Trend mode, a bullish or bearish trend only confirms when price is far enough from the center (in ATR units) AND the center itself is moving the same direction — distance alone with a flat center doesn't count.
Three Signal Modes: Trend — flips only on a confirmed escape from the gravity well. Midline — simple long/short based on whether price is above or below the center. Bands — flips long on a cross above the lowest band and stays long until a cross below the highest band flips it short.
Layered Band Envelope: Plots an outer and inner band pair around the center (inner bands at half the outer width), with graded zone fills between center and bands for a clear visual sense of price's position within the well.
Gradient Strength Visualization: The gravity center line and candle coloring use a gradient blend based on how far price has traveled from center relative to the band width, giving an at-a-glance read on trend conviction.
Candle Coloring: Optionally recolors chart candles using the same gradient logic as the center line.
Customizable Visuals: Choose from 4 preset palettes — Classic, Mystic, Accented, Royal — or define your own custom bullish/bearish colors.
Built-In Signals: Automatically plots long/short labels on confirmed trend flips.
How It Works
Center Calculation – Computes a volume-weighted moving average of the source over the chosen length to establish the gravity center.
Distance Measurement – Measures the distance between price and the center in ATR units to gauge how far price has strayed from its center of mass.
Band Construction – Builds an outer band pair at the full Band Width setting and an inner pair at half that width, forming a layered envelope around the center.
Mode-Dependent Trend Logic – Trend mode requires both sufficient escape distance and a rising/falling center; Midline mode simply follows price relative to center; Bands mode uses crosses of the outer bands to flip and hold direction.
Visualization – Plots the gravity center with layered glow, the band envelope with graded fills, flip signal labels, and gradient-based candle coloring.
Practical Use
Trend Confirmation – Use Trend mode when you want to avoid acting on price simply drifting away from center without real directional follow-through in the center itself.
Simple Directional Bias – Use Midline mode for a straightforward above/below-center read when you want more frequent signals.
Range/Reclaim Trading – Use Bands mode to trade reclaims of extreme levels, holding a position until the opposite extreme is reclaimed.
Zone Awareness – Watch the graded band zones to see how extended price is relative to its recent volume-weighted center before committing to a trade.
Customization
Switch between Trend, Midline, and Bands signal modes to match your trading style.
Adjust Length to tune how responsive the gravity center is to recent price/volume.
Adjust Escape Distance to control how far price must travel (with a moving center) to confirm a trend in Trend mode.
Adjust Band Width and ATR Length to reshape the band envelope and its sensitivity.
Toggle bands, signal labels, and candle coloring independently.
Pick a preset palette or define fully custom bullish/bearish colors.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals. Indikator

Moving Average Ribbon - MTFMOVING AVERAGE RIBBON (MTF)
A clean, lightweight ribbon of four independent moving averages — everything you normally need from several separate MA scripts, combined into a single indicator slot.
Instead of loading four copies of a basic MA indicator, this script lets you configure each line completely on its own, including the timeframe it is calculated on.
FEATURES
• 4 independent moving averages. Each one can be enabled or disabled individually, and a disabled MA is fully removed from the chart and the status line.
• 5 MA types per line: SMA, EMA, SMMA (RMA), WMA, and VWMA. Every MA can use a different type — for example an EMA for the fast line and an SMA for the slow line.
• Custom source per line. Choose close, open, hl2, hlc3, or any other series available in the source dropdown, separately for each MA.
• Custom length and color per line.
• Per-MA multi-timeframe (MTF). Each moving average has its own MTF toggle and timeframe field. Enable MTF on a single line to overlay, for example, the daily 200 MA on a 15-minute chart, while the other three lines stay on the chart timeframe.
• Compact settings layout. All parameters for one MA sit on a single inline row, so the settings panel stays readable, and the inputs for a disabled MA are greyed out.
DEFAULT CONFIGURATION
MA #1 — SMA, length 5, source close
MA #2 — SMA, length 20, source close
MA #3 — SMA, length 50, source close
MA #4 — SMA, length 200, source close
All four are enabled by default with MTF turned off, so out of the box the indicator behaves as a standard 5 / 20 / 50 / 200 ribbon on the chart timeframe. Every value can be changed in the settings.
ABOUT THE MTF CALCULATION
Higher-timeframe values are requested with lookahead disabled, so no future data is used and the plotted history matches what would have been visible in real time. Higher-timeframe lines update as the higher-timeframe bar develops, and become final when that bar closes. The indicator also supports the built-in timeframe selector in the settings, with gaps enabled, if you prefer to shift the whole indicator to another resolution at once.
HOW TO USE IT
• Use the fast and slow lines together to read trend direction and momentum: price above the ribbon with the lines stacked in order suggests an uptrend, the reverse suggests a downtrend.
• Watch crossovers between two lines as a classic trend-change reference (for example 20 over 50).
• Use the MTF option to keep a higher-timeframe level of reference — such as the daily 200 MA — visible while you work on a lower timeframe.
This indicator is a visualization tool only. It does not generate buy or sell signals and should be combined with your own analysis and risk management.
Indikator

McGinley Dynamic Fusion [MarkitTick]💡 The McGinley Dynamic is a lesser-known adaptive moving average developed in the 1990s by market technician John R. McGinley, specifically engineered to solve a problem that plagues conventional moving averages: their tendency to lag badly during fast market moves while whipsawing excessively during slow, choppy conditions. Unlike a standard EMA or SMA, the McGinley Dynamic adjusts its own speed automatically based on the relationship between price and its prior value, effectively "hugging" price more tightly when the market accelerates and smoothing out more when it decelerates. This script builds a complete trading framework around a Fast/Slow McGinley Dynamic crossover, layering in higher-timeframe confirmation, signal cooldown filtering, ATR-adaptive trade levels, a live dashboard, and a manual signal-lock mechanism.
✨ Originality and Utility
While McGinley Dynamic implementations exist on TradingView, this script does not simply plot the raw indicator. It combines four distinct engineering layers into a single decision framework:
A recursively self-adjusting dual McGinley Dynamic engine (Fast and Slow) used as a crossover trigger rather than a static trend line.
An optional higher-timeframe directional filter that requires the HTF trend to agree with the signal direction before a crossover is allowed to fire.
A cooldown/gap filter measured in bars, which suppresses new signals for a configurable number of bars after the last one, reducing signal clustering during choppy crossover conditions.
An ATR-based trade management layer that auto-plots Entry, Stop Loss, and three Take Profit levels the moment a signal fires, extended live on the chart with a color-coded risk/reward fill.
The value to traders lies in how these layers interact: the McGinley crossover alone would generate frequent false signals in ranging markets, but the HTF filter and cooldown mechanism specifically target the crossover's greatest weakness (over-triggering during consolidation), while the ATR trade-level engine converts a raw directional signal into a fully defined, risk-quantified trade plan without any additional charting work from the user.
🔬 Methodology and Concepts
• The McGinley Dynamic Engine
The core building block is a recursive moving average that adjusts its step size relative to how far price has moved away from its previous value. Rather than applying a fixed weighting like an EMA, the McGinley Dynamic divides the price-to-prior-value distance by a dynamic denominator that grows sharply when price moves far from the average and shrinks when price sits close to it. This produces a curve that speeds up during trending, high-momentum moves and slows down during sideways congestion, giving it a self-correcting quality that fixed-period moving averages lack. The script instantiates two independent copies of this engine: a Fast McGinley Dynamic (default length 14) and a Slow McGinley Dynamic (default length 50), each with its own configurable "K Constant" that governs how aggressively the adaptive denominator reacts to price displacement.
• Crossover Signal Logic
A long signal is generated when the Fast McGinley Dynamic closes above the Slow McGinley Dynamic after having been at or below it on the prior two bars — a confirmed upward crossover, not an intrabar or provisional one. A short signal mirrors this logic on the downside. This two-bar confirmation approach (checking both the and offsets) ensures the crossover has actually completed on a closed bar before a signal is registered, rather than reacting to a crossover that could still repaint on the current forming bar.
• Higher-Timeframe Directional Filter
When enabled, the script pulls the source price and Fast McGinley Dynamic value from a user-selected higher timeframe (default 4-hour) and requires that the HTF price sit on the correct side of the HTF Fast McGinley Dynamic before allowing a same-direction signal on the working timeframe. This acts as a macro-trend veto: a bullish crossover on the chart timeframe will be ignored if the higher-timeframe trend context is bearish, and vice versa. The higher-timeframe request is built using a confirmed, prior-bar value combined with TradingView's lookahead-on merge policy — the standard non-repainting pattern for pulling higher-timeframe data — so the filter reacts only to fully closed higher-timeframe bars.
• Cooldown / Signal Spacing Filter
To prevent rapid-fire signals during periods where the Fast and Slow McGinley Dynamic lines oscillate around each other, the script tracks the bar index of the last long and last short signal separately. A new signal in the same direction is only permitted once a user-defined minimum number of bars ("Cooldown Bars") has elapsed since the prior one, reducing signal noise without altering the underlying crossover logic itself.
• ATR-Based Trade Level Construction
The moment a qualifying signal fires, the script calculates an Average True Range value over a configurable lookback and uses it to derive five reference prices: an entry (the prior bar's close), a stop loss, and three take-profit targets. Each level is expressed as an ATR multiple away from entry, with independently configurable multipliers for the stop and each take-profit tier. This means the distance between entry and each level automatically expands or contracts with recent volatility rather than using a fixed point or percentage distance, keeping the risk/reward structure proportionate to current market conditions.
• Signal Lock
The optional Lock Signal feature freezes the currently displayed trade levels once toggled on, preventing them from being overwritten by a subsequent crossover. This is useful for traders who want to manually track a single active setup on the chart without the lines and labels shifting each time a new signal condition is technically met.
🎨 Visual Guide
Fast MD line (default blue) — the fast-length McGinley Dynamic.
Slow MD line (default orange) — the slow-length McGinley Dynamic.
Heatmap Candles — when enabled, candle bodies and wicks are recolored based on trend bias: teal/green when the Fast MD sits above the Slow MD (bullish bias), red when below (bearish bias), independent of the raw candle color.
Entry line (dashed, blue by default) — plotted at the close of the bar prior to signal confirmation, marking the reference entry price.
Stop Loss line (solid, red by default) — the ATR-derived stop level, labeled with an "✕ SL" tag showing the exact price.
Take Profit lines (dashed, teal by default, three tiers with increasing opacity) — TP1, TP2, and TP3, each labeled with its price.
Risk fill — a shaded region between the entry line and stop-loss line, tinted in the stop-loss color, visually representing the risk portion of the trade.
Reward fill — a shaded region between the entry line and the TP3 line, tinted in the take-profit color, visually representing the potential reward span.
All trade-level lines and labels extend live to the right edge of the chart until superseded by a new signal or, if Signal Lock is active, held in place.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
A bullish signal occurs when the Fast MD confirms a crossover above the Slow MD, subject to the HTF filter and cooldown filter both being satisfied. The dashboard's Bias row will read "▲ Bull".
A bearish signal occurs on the mirrored downward crossover, with the Bias row reading "▼ Bear".
When a signal fires, use the auto-plotted Entry, SL, and TP1/TP2/TP3 lines as a starting framework for trade structure — the R:R progress bar on the dashboard shows the reward-to-risk ratio for TP1 relative to the stop distance.
The MD Gap row on the dashboard visualizes, as a percentage bar, how far apart the Fast and Slow MD lines currently are, which can help gauge trend strength or an approaching crossover.
Enabling the HTF Filter is recommended for traders who want signals to align with a broader trend context rather than trading every local crossover.
Enabling Signal Lock freezes the current trade plan on screen, useful when manually managing an active position and wanting to prevent the levels from updating on the next crossover.
⚙️ Inputs and Settings
Src / Fast N / Slow N — source price and the lookback lengths for the Fast and Slow McGinley Dynamic calculations. Shorter lengths react faster but generate more signals; longer lengths are smoother but slower to confirm.
K Const — governs how aggressively the McGinley Dynamic's adaptive denominator responds to price displacement from the prior value. Higher values slow the line's responsiveness.
HTF Filter / HTF TF — enables the higher-timeframe directional veto and sets which higher timeframe is used for that check.
Cooldown Bars — minimum number of bars required between two signals of the same direction.
Lock Signal — freezes the current trade levels in place, blocking updates from subsequent signals.
ATR Len — lookback length for the Average True Range used to size the SL and TP levels.
SL Mult / TP1 Mult / TP2 Mult / TP3 Mult — ATR multipliers that set the distance of the stop loss and each take-profit tier from the entry price.
Heatmap Candles / Trade Levels — visual toggles for the bias-colored candles and the auto-plotted trade-level lines/labels/fills.
Show Dash / Dash Pos — toggles the on-chart dashboard and sets its screen position.
Alert action fields (Long/Short/Close Long/Close Short) — customizable string values embedded into the script's JSON alert payloads, allowing the fired alerts to be mapped to specific automation or webhook actions.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The McGinley Dynamic belongs to a broader family of adaptive-smoothing techniques in technical analysis that attempt to address a structural weakness of fixed-weight moving averages: a constant smoothing factor cannot simultaneously be fast enough to track trending markets and slow enough to filter noise in ranging markets. McGinley's original design achieves adaptivity by making the effective smoothing constant a function of the ratio between current price and the prior average value raised to the fourth power — a formulation that causes the adjustment factor to grow disproportionately large when price diverges sharply from the average, automatically accelerating the line's response, and to shrink toward a baseline when price and average are close, automatically slowing the response. This self-referential feedback mechanism places the McGinley Dynamic conceptually closer to adaptive filters used in signal processing (where a filter's gain is modulated by the magnitude of recent error) than to the fixed-coefficient exponential smoothing used in a standard EMA.
The dual-length crossover structure applied here draws on the well-established moving-average-crossover framework from technical trend-following literature, where the relationship between a fast and slow-adaptive series is used as a proxy for shifting momentum regimes, conceptually related to dual-moving-average systems and change-point detection approaches that flag a regime shift once a fast-reacting series diverges from a slow-reacting baseline. The higher-timeframe confirmation layer reflects the top-down, multi-timeframe analysis principle common in technical trading methodology, where signals on a lower timeframe are treated as more reliable when they align with the prevailing direction on a higher timeframe, reducing the frequency of signals that run counter to the dominant trend. Finally, the ATR-scaled trade-level construction is grounded in volatility-normalized position and risk sizing, a standard practice in quantitative trade management where stop and target distances are expressed as a multiple of recent realized volatility (via Average True Range) rather than fixed price or percentage distances, ensuring risk parameters adapt to the current volatility regime rather than remaining static across changing market conditions.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indikator

Indikator

StonkGame MTF MA Trend TableOverview
StonkGame MTF MAs & Trend Table is designed to provide objective market context across multiple trading horizons, regardless of the timeframe you're trading.
Rather than trying to predict future price, it measures where price sits relative to trend, whether that trend is strengthening or weakening, how well different horizons agree with one another, and whether today's move is typical or historically unusual.
The goal is to keep the bigger picture in view, whether you're trading a 1-minute chart or managing a long-term position.
How It Works
Each horizon (Hourly, Daily, Weekly, Monthly, Quarterly, Half-Year, Yearly and Multi-Year) can use its own timeframe and moving average length. Every horizon evaluates:
Price relative to its moving average
Trend direction and momentum
Historical Z-score
Historical percentile
Adaptive normalization
Those measurements are combined into an objective view of trend quality, momentum and cross-horizon alignment.
Adaptive Normalization
Markets don't all behave the same. A 2% move in SPY doesn't carry the same meaning as a 2% move in Bitcoin, crude oil or gold.
Instead of comparing raw price movement, each horizon compares today's reading against that market's own history using up to 1,000 valid observations. If less history exists, the script automatically uses the largest reliable sample available. If there isn't enough data to produce meaningful statistics, it displays N/A rather than potentially misleading values.
Reading the Dashboard
The dashboard is designed to answer four questions:
Trend: Is the market structurally bullish, bearish or mixed?
Momentum: Is that trend strengthening or weakening?
Context: How unusual is the current move relative to its own history?
Alignment: Are different trading horizons telling the same story?
The Setup Score summarizes overall trend quality, consistency and market structure. Higher scores generally reflect cleaner, more aligned conditions, while lower scores suggest greater conflict or uncertainty.
Notes
This indicator is descriptive, not predictive. Strong trends can stay extended, and statistically extreme readings are not automatic buy or sell signals. They are intended to provide context alongside price action, risk management and your own trading process.
Changing the moving average type, timeframe, horizon lengths or normalization settings changes how the market is evaluated. There is no universally correct configuration—choose settings that match your trading horizon and objectives. Indikator

ZHHere's a publishable summary for your ZH indicator:
---
**ZH — EP Trading Dashboard**
An all-in-one overlay built for Episodic Pivot traders. Combines a clean moving average stack, session VWAP, and a live data panel surfacing the metrics that matter most when evaluating a gap-up candidate.
**Moving Averages**
Plots the 10 EMA, 20 EMA, 50 SMA, 100 SMA, and 200 SMA with fully customizable colors. A timeframe filter lets you choose where they appear — all timeframes, intraday only, daily only, daily & weekly, or weekly & above — so your chart stays uncluttered.
**VWAP**
Session-anchored VWAP based on HLC/3, plotted intraday only, no bands. Resets each new day for a clean read on where volume-weighted value sits during the session.
**EP Data Panel (bottom-right)**
A compact stats table showing the key characteristics of an EP setup, all locked to daily values regardless of your chart timeframe:
- Market Cap (flags red under $40M)
- Share Float
- ADR% (14-period)
- ATR (14-period)
- VOL — daily volume (highlights above 8.9M)
- RVOL 90 — volume vs. 90-day average (highlights above 300%)
- $ VOL — dollar volume, color-tiered at $100M, $500M, and $1B
**Market Context Panel (top-right)**
- QQQ — daily % change, green/red
- BRD — market breadth via ATHI/ATLO, green/red
**Customization**
Adjustable text size, background, text color, volume highlight thresholds, and spacing.
Designed to keep the essential neglected-stock-plus-catalyst-plus-volume read visible at a glance, without cluttering the chart. Indikator

Bias Matrix Pro X WTK# Bias Matrix Pro X — Cinematic Multi-Timeframe Market Bias Engine
## Overview
**Bias Matrix Pro X** is an advanced multi-timeframe market-bias indicator designed to transform complex trend, momentum, volatility, and timeframe-alignment data into one structured and visually intuitive market overview.
Instead of relying on a single moving average, oscillator, or trend signal, the indicator evaluates several independent technical components on up to six customizable timeframes. Each timeframe receives its own directional score, confidence reading, trend-quality assessment, and alignment status.
These individual results are then combined into a weighted aggregate bias ranging from **−100 to +100**.
The goal is not to predict every market movement or generate automatic entries. The indicator is designed to answer a more important contextual question:
**Is the broader market environment currently bullish, bearish, strongly expanding, or balanced?**
Bias Matrix Pro X can be used as a directional filter for discretionary trading systems, price-action setups, liquidity concepts, breakout strategies, pullback entries, trend-following systems, and multi-timeframe analysis.
---
## Core Concept
Every selected timeframe is analyzed through a combination of:
* Fast and slow EMA structure
* Price location relative to the fast EMA
* Fast EMA slope
* RSI regime
* MACD histogram direction
* Supertrend direction
* ADX-based trend-quality adjustment
* Full component-alignment bonus
Each component produces one of three states:
* **+1:** Bullish
* **0:** Neutral
* **−1:** Bearish
The component states are multiplied by their individual importance weights and combined into a raw directional score.
The score is then adjusted by ADX to account for trend quality.
A directional signal occurring in a strong, established market receives more credibility than the same signal occurring in weak or directionless conditions.
The final score is limited to a range between:
* **+100:** Maximum bullish pressure
* **0:** Balanced or conflicting conditions
* **−100:** Maximum bearish pressure
---
# The Bias Engine
## 1. EMA Structure
The indicator compares the fast EMA with the slow EMA.
Default values:
* Fast EMA: 21
* Slow EMA: 55
Interpretation:
* Fast EMA above slow EMA: bullish
* Fast EMA below slow EMA: bearish
* Equal values: neutral
This component represents the underlying trend structure of the selected timeframe.
Its default weight is **25**, making it the most influential individual component in the engine.
---
## 2. Price Location
The current closing price is compared with the fast EMA.
Interpretation:
* Price above the fast EMA: bullish
* Price below the fast EMA: bearish
* Price equal to the fast EMA: neutral
This determines whether price is currently trading on the supportive or opposing side of the local trend average.
Its default weight is **10**.
Price location reacts faster than the EMA structure and can therefore identify short-term pullbacks or early shifts before the slower trend structure changes.
---
## 3. EMA Slope
The indicator measures the difference between the current fast EMA and its value several bars earlier.
Default slope lookback:
* 2 timeframe bars
Unlike a basic rising-or-falling calculation, the slope component uses an ATR-based neutral zone.
A tiny EMA movement is not automatically classified as a meaningful trend.
The default neutral band is:
* 0.04 × ATR
Interpretation:
* EMA rise greater than the neutral band: bullish
* EMA decline greater than the neutral band: bearish
* Movement inside the neutral band: neutral
This reduces unnecessary signal changes during flat or low-volatility conditions.
Its default weight is **15**.
---
## 4. RSI Regime
RSI is used as a directional regime filter rather than as a traditional overbought or oversold signal.
Default settings:
* RSI length: 14
* Bullish threshold: 55
* Bearish threshold: 45
Interpretation:
* RSI above 55: bullish momentum regime
* RSI below 45: bearish momentum regime
* RSI between 45 and 55: neutral momentum regime
The neutral zone helps prevent the indicator from treating every move above or below RSI 50 as a meaningful directional confirmation.
Its default weight is **10**.
---
## 5. MACD Momentum
The MACD histogram is used to measure directional momentum.
Default settings:
* Fast length: 12
* Slow length: 26
* Signal length: 9
Interpretation:
* MACD histogram above zero: bullish
* MACD histogram below zero: bearish
* MACD histogram equal to zero: neutral
This component helps identify whether momentum supports or opposes the broader EMA structure.
Its default weight is **15**.
---
## 6. Supertrend Direction
Supertrend provides an additional volatility-adjusted directional reading.
Default settings:
* ATR length: 10
* Factor: 2.5
Interpretation:
* Bullish Supertrend direction: bullish
* Bearish Supertrend direction: bearish
Its default weight is **15**.
The Supertrend component can help distinguish trending conditions from ordinary price fluctuations around the moving averages.
---
## 7. Full Alignment Bonus
A bonus is added when the following components all point in the same non-neutral direction:
* EMA structure
* Price location
* EMA slope
* MACD momentum
* Supertrend direction
When all five agree, the engine adds an additional directional score.
Default alignment bonus:
* 10 points
This allows fully synchronized conditions to receive a stronger score than markets where only some components agree.
RSI is still included in the main score, but it is not required for the full-alignment bonus.
---
## 8. ADX Quality Adjustment
ADX does not determine bullish or bearish direction.
Instead, it adjusts the strength of the combined directional score.
Default ADX reference:
* 25
The indicator applies an internal multiplier ranging approximately from:
* 0.65 during weak conditions
* Up to 1.10 during stronger conditions
This means:
* Weak trend conditions reduce the final score.
* Strong trend conditions preserve or slightly enhance it.
* Directional signals in low-quality conditions are treated more cautiously.
The final score is capped between −100 and +100.
---
# Multi-Timeframe Weighting
Bias Matrix Pro X supports up to six customizable timeframes.
Default configuration:
* 5-minute: weight 1.0
* 15-minute: weight 1.5
* 1-hour: weight 2.0
* 4-hour: weight 2.5
* Daily: weight 3.0
* Weekly: weight 3.5
Higher timeframes receive more influence by default because they generally represent broader and more persistent market structure.
The aggregate score is calculated as a weighted average:
**Aggregate Score = Sum of timeframe score × timeframe weight ÷ total valid weight**
This prevents a short-term timeframe from automatically carrying the same influence as a daily or weekly timeframe.
All timeframe values and weights can be customized.
A weight of zero effectively removes that timeframe from the aggregate score.
Duplicate timeframes are ignored to prevent accidental double-counting.
---
# Market Regimes
The aggregate score is converted into five possible market regimes.
With the default thresholds:
## Expansion Bull
Displayed when:
**Aggregate score ≥ +55**
This represents strong bullish multi-timeframe alignment.
Typical characteristics may include:
* Bullish EMA structure
* Positive momentum
* Rising EMA slope
* Supportive Supertrend direction
* Stronger ADX conditions
* Agreement across several weighted timeframes
This does not mean price must move upward immediately. It means the broader technical environment strongly favors bullish continuation compared with bearish continuation.
---
## Bullish
Displayed when:
**Aggregate score is between +18 and +54.9**
The market has a bullish directional advantage, but the alignment is less powerful than an Expansion Bull regime.
This condition may appear during:
* Developing bullish trends
* Pullbacks inside larger bullish structures
* Mixed lower-timeframe momentum
* Bullish higher timeframes with temporary short-term weakness
---
## Balanced
Displayed when:
**Aggregate score is between −18 and +18**
Balanced does not necessarily mean that the market is inactive.
It means that the selected timeframes and technical components do not provide a sufficiently strong directional advantage.
Balanced conditions can occur during:
* Consolidation
* Range-bound price action
* Trend transitions
* Conflicting timeframes
* Low-momentum environments
* Pullbacks against a larger trend
Balanced conditions are often where directional systems may experience lower-quality signals.
---
## Bearish
Displayed when:
**Aggregate score is between −18 and −54.9**
The market has a bearish directional advantage, but full bearish expansion is not yet present.
---
## Expansion Bear
Displayed when:
**Aggregate score ≤ −55**
This represents strong bearish multi-timeframe alignment and directional pressure.
---
# How to Read the Dashboard
The dashboard provides one row for every valid selected timeframe.
## TF
Displays the analyzed timeframe.
Examples:
* 5
* 15
* 60
* 240
* D
* W
TradingView timeframe notation is used.
---
## Weight
Shows how much influence the timeframe has on the aggregate score.
A timeframe with a weight of 3.0 contributes three times as much as a timeframe with a weight of 1.0.
The weight affects the final multi-timeframe result, but it does not change the timeframe’s individual score.
---
## Bias
Displays the directional classification of the timeframe.
* **▲ BULLISH:** Score is above the positive bias threshold
* **▼ BEARISH:** Score is below the negative bias threshold
* **◆ NEUTRAL:** Score remains between the two thresholds
The background color provides immediate visual identification:
* Green: bullish
* Red: bearish
* Amber: neutral
---
## Score
Displays the calculated score for that individual timeframe.
The approximate interpretation is:
* +80 to +100: exceptionally strong bullish alignment
* +55 to +79: strong bullish expansion
* +18 to +54: bullish advantage
* −17 to +17: neutral or conflicting
* −18 to −54: bearish advantage
* −55 to −79: strong bearish expansion
* −80 to −100: exceptionally strong bearish alignment
The score should be interpreted as a directional alignment measurement, not as a probability of a winning trade.
For example, a score of +70 does not mean there is a 70% probability that price will rise.
---
## Power
The Power meter visualizes the absolute size of the timeframe score.
Example:
**████████░░**
A fuller meter means the timeframe has a stronger directional score.
The meter measures strength, while its color shows direction:
* Green meter: bullish power
* Red meter: bearish power
* Amber meter: neutral or balanced condition
A score of +70 and a score of −70 display similar meter lengths, but with different directional colors.
---
## RSI
Displays the current RSI value calculated on that timeframe.
This allows the user to see whether the RSI component is:
* Above the bullish threshold
* Below the bearish threshold
* Inside the neutral zone
---
## ADX
Displays the ADX value and a simplified trend-quality classification.
Possible classifications:
* Low
* Medium
* Good
* High
These labels are calculated relative to the selected ADX reference value.
With the default reference of 25:
* Values well below 25 indicate weaker trend quality.
* Values around 25 indicate established directional conditions.
* Values above the reference indicate stronger trend quality.
ADX measures trend strength, not direction.
A high ADX can occur in both bullish and bearish markets.
---
## Alignment
The Alignment column compares several internal directional components.
### Full
Displayed when the following components all agree in the same non-neutral direction:
* EMA structure
* Price location
* EMA slope
* MACD histogram
* Supertrend
Full alignment represents the highest level of internal directional synchronization.
### Partial
Displayed when EMA structure and price location agree, but the remaining components are not fully synchronized.
### Mixed
Displayed when the internal components conflict.
A bullish timeframe with Mixed alignment may still have a positive score, but the move has less internal agreement than a Full bullish timeframe.
---
# Dashboard Summary
The Summary row combines all valid weighted timeframes.
It displays:
* Number of valid timeframes
* Aggregate bullish, bearish, or neutral state
* Aggregate score
* Aggregate Power meter
* Total bullish timeframe weight
* Total bearish timeframe weight
* Total neutral timeframe weight
The Bull W, Bear W, and Neutral W values represent the sum of timeframe weights classified in each category.
Example:
* Bull W: 7.5
* Bear W: 2.0
* Neutral W: 1.0
This provides more context than a simple count because higher-weight timeframes have greater importance.
---
# Dominance
The live regime label displays a Dominance percentage.
Dominance measures the percentage of total valid timeframe weight belonging to the largest bias group:
* Bullish
* Bearish
* Neutral
Example:
If bullish timeframes represent 70% of the total valid weight, Dominance will display approximately 70%.
Dominance is not the same as the aggregate score.
The aggregate score measures the average directional intensity of all timeframes.
Dominance measures how concentrated the timeframe classifications are in one category.
A market can therefore have:
* High bullish dominance but only a moderate bullish score
* Lower dominance but a strong score from a few heavily weighted timeframes
* High neutral dominance during consolidation
---
# Local Market Reading
The Engine section also displays the current chart timeframe separately.
It includes:
* Local bias
* Local score
* Local RSI
* Local ADX
* Local ADX-quality classification
This makes it possible to compare the current execution timeframe with the broader multi-timeframe environment.
Example:
* Aggregate regime: Expansion Bull
* Local timeframe: Neutral
This may indicate that the broader market remains bullish while the execution timeframe is currently consolidating or pulling back.
Another example:
* Aggregate regime: Bearish
* Local timeframe: Bullish
This may represent a short-term countertrend rally against a broader bearish environment.
---
# Chart Visuals
## Trend Ribbon
The chart displays the fast and slow EMAs from the current chart timeframe.
The area between them is filled to create a visual trend ribbon.
The ribbon color is based on the aggregate multi-timeframe regime:
* Green: bullish aggregate environment
* Red: bearish aggregate environment
* Amber: balanced environment
Important distinction:
The EMA values come from the current chart timeframe, while their color reflects the combined multi-timeframe result.
---
## Supertrend Aura
The current chart timeframe’s Supertrend line is displayed as a softer secondary trend layer.
Its color also follows the aggregate market regime.
This creates a visual connection between local price structure and the broader multi-timeframe bias.
---
## Chart Glow
When enabled, the chart background receives a subtle regime color:
* Green glow: bullish
* Red glow: bearish
* Amber glow: balanced
The glow is deliberately transparent so it can provide directional context without hiding price action.
---
## Candle Tint
When enabled, candle colors are tinted according to the aggregate regime.
The tint intensity is influenced by the local timeframe’s score strength.
This creates a combined visual effect:
* Direction comes from the aggregate multi-timeframe bias.
* Tint intensity is influenced by local confidence.
---
## Bias Shift Markers
The indicator marks changes in the aggregate bias classification.
### BIAS+
Appears when the aggregate state changes into bullish territory.
### BIAS−
Appears when the aggregate state changes into bearish territory.
### Neutral Marker
A small amber marker appears when the aggregate state returns to neutral.
These markers identify regime transitions. They are not intended to be used as standalone entry signals.
A bias shift can occur after part of a market move has already developed because the engine requires sufficient technical confirmation.
---
## Live Regime Label
The label near the most recent candle displays:
* Indicator name
* Current market regime
* Aggregate score
* Dominance percentage
This provides a compact real-time overview without requiring the user to inspect the full dashboard.
---
# Dark Mode and Light Mode
Bias Matrix Pro X includes two complete dashboard themes.
## Dark Mode
Designed for dark TradingView charts.
It uses:
* Deep navy backgrounds
* High-contrast text
* Gold title elements
* Soft green, red, amber, and blue status panels
## Light Mode
Designed for white or light TradingView layouts.
It uses:
* Light neutral backgrounds
* Dark readable text
* Softer transparent status colors
* Reduced visual harshness
The selected theme affects the dashboard and live regime label.
Users can also customize:
* Dashboard position
* Dashboard text size
* Dashboard visibility
* Chart glow
* Candle tint
* Trend ribbon
* Live regime label
---
# Confirmed Higher-Timeframe Mode
The setting **Use confirmed higher-TF values only** is enabled by default.
When enabled, higher-timeframe readings use the most recently completed candle from each requested higher timeframe.
This provides stable historical and real-time higher-timeframe values.
Example:
On a 5-minute chart, the 4-hour row will use the last fully completed 4-hour candle rather than the currently developing 4-hour candle.
Advantages:
* More stable multi-timeframe readings
* Reduced higher-timeframe repainting
* More reliable historical comparison
* Better suitability for rule-based filters
Trade-off:
* The higher-timeframe reading updates only after the higher-timeframe candle closes.
* It is intentionally one completed higher-timeframe candle behind the live developing candle.
The current chart timeframe still uses the active chart data and can change until the current chart candle closes.
---
## Unconfirmed Higher-Timeframe Mode
When confirmed higher-timeframe values are disabled, the indicator uses the currently developing higher-timeframe candle.
Advantages:
* Faster response to developing market changes
* Earlier recognition of possible regime shifts
Trade-offs:
* Higher-timeframe values can change before the candle closes.
* Historical readings after a chart reload may differ from what was visible during the live candle.
* Signals are less stable and should be treated as provisional.
For systematic or confirmation-based use, confirmed higher-timeframe mode is generally the more conservative setting.
---
# Lower-Timeframe Protection
The indicator intentionally blocks requested timeframes that are lower than the current chart timeframe.
Example:
* Current chart: 15 minutes
* Requested timeframe: 5 minutes
The 5-minute row will display:
**LTF blocked**
This is intentional.
A simple higher-timeframe request method does not provide a complete and reliable lower-timeframe evaluation when used from a larger chart timeframe.
To analyze the default 5-minute timeframe, the chart should therefore be set to 5 minutes or lower.
Recommended rule:
**Use a chart timeframe that is equal to or lower than the smallest selected dashboard timeframe.**
---
# Suggested Usage
Bias Matrix Pro X is designed primarily as a context and filtering tool.
## Trend-Following Example
A trader may choose to:
* Look for long setups only during Bullish or Expansion Bull regimes.
* Look for short setups only during Bearish or Expansion Bear regimes.
* Reduce activity during Balanced conditions.
* Require the execution timeframe to move back into alignment with the aggregate bias before entering.
---
## Pullback Example
Possible bullish sequence:
1. Aggregate regime is Bullish or Expansion Bull.
2. Higher timeframes remain bullish.
3. Local timeframe becomes Neutral or temporarily Bearish during a pullback.
4. Local momentum begins turning bullish again.
5. The trader applies a separate entry model.
The indicator does not identify the exact pullback entry. It provides the directional environment in which the trader can evaluate the setup.
---
## Breakout Example
Before taking a bullish breakout, a trader may check whether:
* Aggregate score is positive
* Dominance favors bullish timeframes
* Higher-weight timeframes are bullish
* ADX quality is Good or High
* Alignment is Full or Partial
* The local timeframe is not strongly opposing the breakout
---
## Countertrend Warning
If a trader identifies a long setup while the indicator displays:
* Expansion Bear
* Strong negative aggregate score
* High bearish dominance
* Bearish higher-timeframe alignment
The setup is occurring against the broader technical environment.
This does not automatically make the trade invalid, but it identifies the trade as countertrend and potentially higher risk.
---
# Recommended Starting Configuration
For intraday trading, the default configuration provides a broad hierarchy:
* 5-minute: execution context
* 15-minute: short-term structure
* 1-hour: intraday directional structure
* 4-hour: higher-timeframe trend
* Daily: major market regime
* Weekly: long-term context
Users should adjust the selected timeframes and weights to match their trading horizon.
### Scalping Example
* 1-minute chart
* 3-minute
* 5-minute
* 15-minute
* 30-minute
* 1-hour
* 4-hour
Higher weights can be assigned to the 15-minute, 1-hour, and 4-hour timeframes.
### Swing-Trading Example
* 1-hour or 4-hour chart
* 4-hour
* Daily
* Weekly
* Monthly
Lower requested timeframes should not be used below the active chart timeframe.
---
# Important Settings
## Bias Threshold
Controls how much positive or negative score is required before a timeframe is classified as directional.
Default:
* 18
Higher values:
* Produce fewer bullish and bearish classifications
* Increase the neutral range
* Require stronger alignment
Lower values:
* React faster
* Produce more directional classifications
* May create more frequent regime changes
---
## Strong Bias Threshold
Defines when Bullish or Bearish becomes an Expansion regime.
Default:
* 55
This setting affects the regime name and visual classification.
It does not change the basic bullish or bearish threshold.
---
## Component Weights
Every technical component can be weighted independently.
Increasing a component’s weight gives it more influence over each timeframe score.
Examples:
* Increasing EMA Structure favors slower trend confirmation.
* Increasing Price vs Fast EMA makes the system more reactive to local price changes.
* Increasing EMA Slope gives more importance to trend acceleration.
* Increasing RSI emphasizes momentum regime.
* Increasing MACD emphasizes momentum direction.
* Increasing Supertrend emphasizes volatility-adjusted trend direction.
* Increasing Full Alignment Bonus rewards synchronized conditions more strongly.
Weights should be modified carefully.
Extreme weighting can cause one component to dominate the engine and reduce the value of combining several independent measurements.
---
## Timeframe Weights
Timeframe weights determine influence over the final aggregate score.
They do not affect the internal score of the individual timeframe.
A higher weight means the timeframe has greater influence over:
* Aggregate score
* Aggregate bias
* Bullish, bearish, and neutral weight totals
* Dominance
---
# Practical Interpretation Guidelines
## Strongest Bullish Environment
Look for a combination such as:
* Expansion Bull regime
* Positive score above +55
* High bullish dominance
* Higher-weight timeframes bullish
* Good or High ADX quality
* Full alignment on several timeframes
* Local timeframe turning bullish after a pullback
---
## Strongest Bearish Environment
Look for:
* Expansion Bear regime
* Score below −55
* High bearish dominance
* Higher-weight timeframes bearish
* Good or High ADX quality
* Full bearish alignment
* Local timeframe turning bearish after a corrective rally
---
## Caution Environment
Exercise caution when:
* Aggregate regime is Balanced
* Dominance is low
* Higher and lower timeframes conflict
* Most rows display Mixed alignment
* ADX quality is Low
* The aggregate bias changes frequently
* The selected chart timeframe is too high for the configured lower timeframes
---
# Important Limitations
Bias Matrix Pro X is a technical analysis tool, not a complete trading system.
It does not include:
* Automatic entries
* Stop-loss placement
* Take-profit placement
* Position sizing
* Risk management
* Fundamental analysis
* News-event filtering
* Liquidity analysis
* Market-session filtering
* Volume-profile analysis
* Guaranteed non-lagging signals
The indicator combines several lagging and reactive technical measurements.
Because the engine requires confirmation, regime changes may occur after a market move has already started.
Strong bullish conditions can appear close to a temporary top.
Strong bearish conditions can appear close to a temporary bottom.
A high score describes technical alignment, not guaranteed future direction.
The indicator should therefore be combined with:
* A defined entry model
* Clear invalidation logic
* Position sizing
* Maximum-risk rules
* Session awareness
* Economic-news awareness
* Independent testing
---
# Repainting and Real-Time Behavior
With confirmed higher-timeframe mode enabled:
* Completed higher-timeframe readings remain stable.
* Historical higher-timeframe values are based on completed candles.
* The current chart timeframe continues to update while its active candle is open.
* A local score or aggregate score may still change before the current chart candle closes.
With confirmed higher-timeframe mode disabled:
* Developing higher-timeframe values can change during the active higher-timeframe candle.
* Bias states and chart visuals may update before candle confirmation.
* Historical behavior after reloading the chart may differ from what was observed intrabar.
Users who require stable confirmation should evaluate signals after the chart candle closes and keep confirmed higher-timeframe mode enabled.
---
# Final Notes
Bias Matrix Pro X was created to provide a structured visual answer to three questions:
1. **What is the directional condition of each important timeframe?**
2. **How strong and internally aligned is that condition?**
3. **What is the combined weighted market regime?**
The indicator is intentionally information-rich, but the main reading remains simple:
* Green favors bullish conditions.
* Red favors bearish conditions.
* Amber represents balance or conflict.
* Higher absolute scores represent stronger directional alignment.
* Higher dominance represents broader agreement between the selected timeframes.
* Full alignment represents stronger internal synchronization.
* ADX indicates the quality of the directional environment.
Use the indicator as a market-context framework, not as a standalone promise of future performance.
---
## Disclaimer
This indicator is provided for educational and informational purposes only.
It does not constitute financial advice, investment advice, or a recommendation to buy or sell any financial instrument.
Past performance and historical technical alignment do not guarantee future results.
Trading involves substantial risk, including the possible loss of capital. Every user is responsible for conducting independent research, testing the indicator on the relevant market and timeframe, and applying appropriate risk management.
Indikator
