MA Confluence Engine [Viprasol]MA Confluence Engine — 15-MA Consensus Ribbon
═══════════════════════════════════════════════════════════
ONE CROSSOVER IS AN OPINION. FIFTEEN MAs AGREEING IS A TREND.
═══════════════════════════════════════════════════════════
A single moving-average crossover whipsaws constantly — two lines tangle in chop and
fire signal after signal that goes nowhere. MA Confluence Engine replaces that one
fragile opinion with the agreement of a 15-MA ribbon. It only signals when most of the
ribbon agrees on direction, stands aside when the ribbon squeezes together (a
compressed ribbon IS chop), and on every signal it draws a complete trade plan:
Entry, TP1, TP2, TP3 and Stop Loss.
═══════════════════════════════════════════════════════════
HOW THE CONSENSUS WORKS
═══════════════════════════════════════════════════════════
The engine builds a ribbon of 15 moving averages, spaced from a fast base length
upward (e.g. 10, 18, 26 … 122). Every bar it measures two things across all 15:
• How many is price trading ABOVE?
• How many are SLOPING UP?
These combine into a single CONSENSUS SCORE from 0 to 100:
100% = price above all 15 MAs AND all 15 rising (a fully stacked uptrend)
0% = price below all 15 AND all 15 falling (a fully stacked downtrend)
50% = mixed — the ribbon disagrees
A long signal fires only when consensus rises through your bullish threshold
(default 75%), a short when it falls through the bearish threshold (default 25%).
Half-hearted moves where the ribbon disagrees never trigger.
═══════════════════════════════════════════════════════════
THE TRADE PLAN — DRAWN ON THE LAST SIGNAL
═══════════════════════════════════════════════════════════
The moment a signal fires, the engine projects five levels forward and labels each
with its price:
• ENTRY — at the signal close
• STOP LOSS — your risk distance away (ATR or %); this distance defines 1R
• TP1 / TP2 / TP3 — at your chosen R-multiples of that risk (default 1R / 2R / 3R)
Only the most recent signal's plan is shown, so the chart stays clean. The dashboard
mirrors the exact prices, and every alert carries the full plan (Entry/SL/TP1/TP2/TP3)
so it's ready for journaling or automation.
═══════════════════════════════════════════════════════════
THE RIBBON IS ITS OWN CHOP FILTER
═══════════════════════════════════════════════════════════
When a market chops, moving averages of every length collapse onto each other — the
ribbon goes flat and thin. The engine measures RIBBON WIDTH (the spread of the 15 MAs,
normalized by ATR) and skips signals whenever the ribbon is compressed below your
threshold. A second Kaufman Efficiency-Ratio gate confirms price is actually trending.
Filtered crosses are drawn faintly (✕) and counted, so you SEE what was avoided.
═══════════════════════════════════════════════════════════
21 VERIFIED, LICENSE-CLEAN MOVING AVERAGES
═══════════════════════════════════════════════════════════
Build the ribbon from any one of:
SMA, EMA, WMA, RMA, VWMA, DEMA, TEMA, HMA, ALMA, T3, McGinley, ZLEMA, KAMA, FRAMA,
VIDYA, SuperSmoother, Gaussian, Laguerre, Kalman, LSMA, Median.
Each is implemented from its published formula and credited to its author. Jurik's JMA
is deliberately excluded — it is a proprietary, trademarked product whose every
open-source "version" is an unlicensed reverse-engineering.
═══════════════════════════════════════════════════════════
DASHBOARD
═══════════════════════════════════════════════════════════
• Live consensus score, with price-above and sloping-up counts (x of 15)
• Ribbon width + chop state, trend-regime efficiency reading
• Last signal direction and the full Entry / TP1 / TP2 / TP3 / SL prices
• Whipsaws filtered
═══════════════════════════════════════════════════════════
FEATURES
═══════════════════════════════════════════════════════════
• 15-MA ribbon colored by consensus (red → green) or simple bull/bear, with fill
• Entry/TP1/TP2/TP3/SL level lines + labels on the latest signal
• Choppy-regime background shading + faint markers on filtered crosses
• Direction filter (Both / Longs / Shorts)
• Stop in ATR or %, take-profits as R-multiples
• Alerts for long, short, and chop — signal alerts include the full trade plan
• Full MA sub-parameter control (ALMA, T3, KAMA, Gaussian, Laguerre, Kalman, VIDYA, McGinley)
═══════════════════════════════════════════════════════════
HOW TO USE
═══════════════════════════════════════════════════════════
1. Choose an MA type, base length, and spacing for the ribbon.
2. Wait for a signal — it only fires when the ribbon fans out and aligns (consensus
through your threshold) in a trending regime.
3. Use the drawn Entry / SL / TP1 / TP2 / TP3 as your trade plan; scale out at the TPs.
4. Raise the consensus thresholds and ribbon-width minimum to make signals stricter
(fewer, cleaner) — the whipsaw-filtered count shows the filter working.
═══════════════════════════════════════════════════════════
HONEST LIMITATIONS — PLEASE READ
═══════════════════════════════════════════════════════════
• Signals are evaluated on bar close; act on confirmed bars to avoid intrabar flicker.
• A consensus system enters LATER than a single fast crossover — it trades fewer,
higher-quality moves and will sit out fast reversals. That trade-off is the point.
• The TP/SL levels are a risk framework, not a prediction — markets do not owe you 3R.
• Volume MAs (VWMA) and the regime math need reliable data; some synthetic forex/CFD
feeds are less meaningful.
• This is a decision-support tool, not financial advice. Trade at your own risk.
═══════════════════════════════════════════════════════════
CREDITS & ORIGINALITY
═══════════════════════════════════════════════════════════
MA methods credited to their authors: Wilder (RMA), Mulloy (DEMA/TEMA), Hull (HMA),
Legoux & Kouzis-Loukas (ALMA), Tillson (T3), McGinley, Kaufman (KAMA/Efficiency Ratio),
Ehlers (ZLEMA, SuperSmoother, Gaussian, Laguerre, FRAMA), Chande (VIDYA), Kálmán
(Kalman). All formulas are public-domain / published methods. Every line of Pine — the
MA dispatcher, the 15-MA consensus engine, the ribbon chop filter, the trade-plan
projection, and the visualization — is original Viprasol work written from the
published formulas. No third-party Pine code is reused; no proprietary algorithms included.
Indicator

PrismPrism : Integrated Trend Flow & Structural Risk Engine**
**Prism ** is a high-precision trend-following system designed to filter market noise and provide institutional-grade trade management. By combining **Guppy Multiple Moving Average (GMMA)** logic with **Dynamic Structural Walls** and an **Automated Entry Advice Engine**, it offers a comprehensive solution for traders who prioritize confluence over guesswork.
### **Core Logic: The Triple-Filter Approach**
Prism PRO doesn't just look at price; it analyzes the "fabric" of the market through three distinct layers:
1. **The Ribbon Stack (Sentiment & Flow):** Utilizing 12 EMA layers, the script identifies when short-term sentiment (the fast group) is perfectly aligned with long-term capital flow (the slow group). Signals only fire when the trend is "stacked" and healthy.
2. **Momentum Confirmation:** A built-in RSI filter ensures that signals are only triggered when momentum is on your side ( NYSE:RSI > 50$ for Longs, NYSE:RSI < 50$ for Shorts), preventing "drift" entries in low-volatility environments.
3. **Structural Wall Confluence:** This is the heart of the system. The script identifies the nearest **Auto-Fibonacci level** and compares it with the **EMA 12**. It selects the strongest level to create a "Structural Wall," which serves as the basis for the **Advised Stop Loss**.
### **Key Features**
* **Dynamic Entry Advice Engine:** The dashboard provides real-time feedback. It labels entries as **IDEAL**, **LATE**, or **OVEREXTENDED** based on the price's deviation from the EMA 12 and the live Reward-to-Risk (R/R) ratio.
* **Frozen State Persistence:** Unlike standard indicators that reset when a trend breaks, Prism PRO "freezes" your trade data (Entry, Stop, Target). If the ribbon stack breaks while you are in a trade, the dashboard keeps showing your last valid levels (marked with an `*`) so you can monitor your exit.
* **Ratchet Trailing Stop:** An ATR-based trailing stop that only moves in a favorable direction, protecting your capital as the trade progresses.
* **Fibo-Compression Alerts:** The dashboard monitors the distance between the current price and major Fibonacci levels. If the price is too close to a major level, it triggers a **⚠️ Warning**, alerting you to potential reversal zones or "compression" before a breakout.
### **The Dashboard Breakdown**
* **System Mode:** Instant visual of current trend bias.
* **Risk Metrics:** Live ATR volatility and percentage-based risk/reward calculations.
* **Final Call:** A "Engine Status" indicator showing the strength of the current flow.
* **Entry Advice:** Direct instructions (e.g., "Wait Pullback" or "Monitor Open Position").
### **How to Use**
1. **The Setup:** Look for a **BUY** or **SELL** label.
2. **The Filter:** Check the **Entry Advice**. If it says "OVEREXTENDED," wait for a pullback to the ribbon.
3. **Risk Management:** Use the **Advised Stop** or the **Trailing Stop** provided on the dashboard to manage your exit.
4. **Targeting:** The script plots a 1:2 R/R target by default, which is automatically cross-referenced with the nearest Fibonacci level for higher probability.
---
Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial or investment advice. Trading financial markets involves significant risk of loss. Past performance is not indicative of future results. Always perform your own due diligence and consult with a professional financial advisor before making any investment decisions. The author assumes no responsibility for any financial losses incurred through the use of this script.
Indicator

Indicator

GMMA Toolkit [QuantVue]The GMMA Toolkit is designed to leverage the principles of the Guppy Multiple Moving Average (GMMA). This indicator is equipped with multiple features to help traders identify trends, reversals, and periods of market compression.
The Guppy Multiple Moving Average (GMMA) is a technical analysis tool developed by Australian trader and author Daryl Guppy in the late 1990s.
It utilizes two sets of Exponential Moving Averages (EMAs) to capture both short-term and long-term market trends. The short-term EMAs represent the activity of traders, while the long-term EMAs reflect the behavior of investors.
By analyzing the interaction between these two groups of EMAs, traders can identify the strength and direction of trends, as well as potential reversals.
Due to the nature of GMMA, charts can become cluttered with numerous lines, making analysis challenging.
However, this indicator simplifies visualization by using clouds to represent the short-term and long-term EMA groups, determined by filling the area between the maximum and minimum EMAs in each group.
The GMMA Toolkit goes a step further and includes an oscillator that measures the difference between the average short-term and long-term EMAs, providing a clear visual representation of trend strength and direction.
The farther the oscillator is from the 0 level, the stronger the trend. It is plotted on a separate panel with values above zero indicating bullish conditions and values below zero indicating bearish conditions.
The inclusion of the oscillator in the GMMA Toolkit allows traders to identify earlier buy and sell signals based on the GMMA oscillator crossing the zero line compared to traditional crossover methods.
Lastly, the GMMA Toolkit features compression dots that indicate periods of market consolidation.
By measuring the spread between the maximum and minimum EMAs within both short-term and long-term groups, the indicator identifies when these spreads are significantly narrower than average by comparing the current spread to the average spread over a lookback period.
This visual cue helps traders anticipate potential breakout or breakdown scenarios, enhancing their ability to react to imminent trend changes.
By simplifying the visualization of the Guppy Multiple Moving Averages with clouds, providing earlier buy and sell signals through the oscillator, and highlighting periods of market consolidation with compression dots, this toolkit offers traders insightful tools for navigating market trends and potential reversals.
Give this indicator a BOOST and COMMENT your thoughts below!
We hope you enjoy.
Cheers! Indicator

Ratio Chart with GMMA■About this indicator
This indicator divides the selected stocks by any stocks you specify and plots the result in a new pane.
At the same time, it plots the GMMA against the result of the division.
This allows you to see the relative chart and trend of the selected stock and the arbitrary stock.
Quote Symbol: Specify the denominator of the division. The default is TOPIX. Feel free to change it.
EMA Days: 5 to 30 days are indicated in green, and 75 to 200 days in red. Change the number of days and color freely.
Explanation of Effective Usage
It is recommended to enter an index for stocks specified in the Quote Symbol.
By entering the index, you can check the superiority of the selected issue and the index at a glance.
Example: By dividing AAPL by SP500, you can see on the chart whether AAPL is stronger or weaker relative to SP500.
(Similar concept to the Relative Strength Comparison RSC.)
At the same time, by plotting GMMA, you can confirm the trend of strength or weakness of the selected issue divided by the index. This is useful for swing trading and mid- to long-term trading.
The greater the distance between the short-term and long-term EMAs of the GMMA, the more the selected stocks outperform the index, and when the short-term and long-term EMAs cross, the trend ends and the stock underperforms the index.
■About the Chart
The screen below shows a chart plotted using this indicator.
For comparison with the regular chart, the upper screen shows only the GMMA plotted for the selected stocks.
From the red circle in the lower screen, a trend begins where the selected stocks outperform the index, and the trend ends at the blue circle.
When the trend ends, the selected stocks will underperform the index and it can be determined that it is more efficient to invest in another stock.
■このインジケーターについて
このインジケーターは選択している銘柄を、指定した任意の銘柄で割り算し、その結果を新規ペインにプロットします。
同時に、割り算の結果に対してGMMAをプロットします。
これにより選択した銘柄と、任意の銘柄の相対チャートとトレンドを把握することが出来ます。
Quote Symbol:割り算の分母を指定します。デフォルトはTOPIXです。自由に変更して下さい。
EMA日数:5~30日が緑、75~200日を赤で表記しています。日数と色は自由に変更して下さい。
■有効な使い方の説明
Quote Symbolで指定する銘柄は、指数を入力することを推奨します。
指数を入力することによって、選択した銘柄と指数の優位性を一目で確認出来ます。
例)AAPLをSP500で割ることで、SP500に比べてAAPLが相対的に強いのか、弱いのかをチャートで把握できます。
(相対力比較RSCと似たような考え方です。)
同時にGMMAをプロットすることで、選択した銘柄÷指数の強弱のトレンドを確認できます。これはスイングトレードや中長期トレードに役立ちます。
GMMAの短期EMAと長期EMAの距離が開いていくほど、指数より選択した銘柄がアウトパフォームしていると考えられ、短期EMAと長期EMAが交わるとトレンドは終了し、指数をアンダーパフォームします。
■チャートについて
下の画面がこのインジケーターを使用してプロットしたチャートです。
通常のチャートとの比較のため、上画面には選択した銘柄にGMMAだけをプロットしたものを表示しています。
下の画面の赤い丸から、選択した銘柄が指数をアウトパフォームするトレンドが始まり、青い〇でトレンドは終了します。
トレンドが終了した場合、選択した銘柄は指数をアンダーパフォームするので、別の銘柄に投資する方が効率的と判断できます。
Indicator

Indicator

[blackcat] L2 Guppy Color BandLevel: 2
Background
The Guppy Multiple Moving Average (GMMA) is a technical indicator that identifies changing trends, breakouts, and trading opportunities in the price of an asset by combining two sets of moving averages (MA) with different time periods. There is a short term group of MAs and a long term group of MAs.
Function
This script incoporates GMMA as a mid-term support/resistance levels which can indicates re-entry or entry signal. Short-term fast line and slow line are used to provide short term entries. Above GMMA, one can long and xlong, while under GMMA one can short or xshort.
Key Signal
a1~a7 ---> Guppy color band
fastline --> short term fast line
shortline --> slow term slow line
safeline --> bull bear boundary
Pros and Cons
Pros:
1. easy observe price trend
2. it provides entry signal
3. it provides bull bear boundary
Cons:
Your feedbacks are welcome
Remarks
Courtesy of @LunaOwl " Rainbow Color Gradient" for GMMA color band in this script
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy. Indicator

[blackcat] L1 GMMA Long EntryLevel: 1
Background
The Guppy Multiple Moving Average (GMMA) is a technical indicator that identifies changing trends, breakouts, and trading opportunities in the price of an asset by combining two sets of moving averages (MA) with different time periods. There is a short term group of MAs and a long term group of MAs.
Function
L1 GMMA Long Entry classify short-mid term GMMA cluster and long term GMMA cluster with key Fibnocci numbers. Long entry signal is generated with GMMA cluster relationship.
Key Signal
Long entry 1~6 ---> Long entry signal generated with GMMA cluster relationship.
Pros and Cons
Pros:
1. easy observe price trend
2. it covers short, middle and long term trend analysis
Cons:
1. Only long entry signal is disclosed here
2. No complex trading strategy is used yet
Remarks
NA
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy. Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Guppy MMA 3, 5, 8, 10, 12, 15 and 30, 35, 40, 45, 50, 60Guppy Multiple Moving Average
Short Term EMA 3, 5, 8, 10, 12, 15
Long Term EMA 30, 35, 40, 45, 50, 60
Use for SFTS Class Indicator

Indicator

Indicator

Indicator

Indicator
