Güncellendi

[blackcat] L1 GMMA Long Entry

10 429
Level: 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

[blackcat] 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.
Sürüm Notları
OVERVIEW

The [blackcat] L1 GMMA script provides buy/sell signals using dual-timeframe GMMA clusters (short/mid-term + long-term EMAs). It analyzes price relationships between multiple exponential moving averages combined with volume criteria for decision-making.
FEATURES

Dual timeframe analysis:

Short/Mid-Term Cluster: EMA(3), EMA(5), EMA(8), EMA(10), EMA(12), EMA(15)
Long-Term Cluster: EMA(30), EMA(35), EMA(40), EMA(45), EMA(50), EMA(60)
Dynamic line coloring:

Yellow → upward movement
Maroon/red → downward movement
Multi-condition entries/exits:

Volume filter (≥120% average)
Price breakout conditions
Cross-over/cross-under detection between key EMAs
Visual indicators:

Green "BUY" labels below bars for entry confirmation
Red "SELL" labels above bars for exit triggers
HOW TO USE

Apply to any financial instrument chart
Observe EMA cluster formations:
Buy signal when short-term EMAS show sustained upward momentum while surpassing long-term EMAS
Sell signal when reversal patterns form across EMAS
LIMITATIONS

Requires at least 60 candles for full initialization
Market volatility may cause false signals during sideways trends
Timeframe sensitivity requires manual parameter adjustment
NOTES

Optimal performance observed on daily/hourly charts
Adjust volume thresholds (currently set at ±20%) via a3/a3_sell parameters
Combine with trend confirmations from larger EMAs (e.g., EMA60)
Sürüm Notları
█ OVERVIEW

L3 Price Positioning Index is an overlay indicator that maps price position inside a Fibonacci-based channel and paints trend state directly on the chart.
It combines a highest/lowest price positioning channel with EMA trend candles, momentum state coloring, a status dashboard, and bar-close alerts.

█ CONCEPTS

This indicator identifies overbought and oversold positioning using a rolling highest/lowest channel (default 120 bars) divided by Fibonacci-style ratios (0.191 / 0.5 / 0.809).

Key principles:
• Price position inside the channel reveals exhaustion and support zones.
• A fast EMA of hlc3 and its smoothing outline trend support (navy) and trend resistance (maroon).
• A short-term momentum engine classifies each bar into bullish or bearish states and colors it accordingly.

█ HOW TO USE

1 — Add the script to an overlay chart; channel levels, trend candles, and state candles appear immediately with default settings.
2 — Adjust the channel length and level ratios in "Channel Settings" to fit the volatility of your market.
3 — Read bar colors for momentum state, and watch the dashboard table (top right) for trend state, channel position percentage, and current zone.

Input Parameters
• Lookback Length (n1): channel lookback in bars, default 120.
• Anchor Offset (m1): offset for anchoring the most recent valid extreme, default 1.
• Overbought / Middle / Oversold Level Ratio: channel height ratios for the three levels, defaults 0.191 / 0.5 / 0.809.
• Trend EMA Length / EMA Smoothing Length: trend candle engine, defaults 6 / 5.
• Average Close EMA Length / State SMA Length: short-term momentum engine, defaults 2 / 3.
• Reversal SMA Length: SMA length used by the bullish reversal condition, default 13.
• Visualization toggles: channel levels, trend candles, state candles, reversal/rebound labels, trend background, dashboard table.

█ FEATURES

• Fully configurable channel levels with per-level ratios.
• Six built-in alert channels via alertcondition (pump, dump, reversal, rebound, and both channel breakouts), designed for bar-close evaluation.
• Edge-detected reversal/rebound labels to avoid repeated signals while a state persists.
• Optional trend background shading and a real-time status dashboard.
• Independent visibility toggles so every visual layer can be turned off without removing the script.

█ SIGNALS

Visual Elements
• Navy candles: trend support — fast EMA at or above its smoothing.
• Maroon candles: trend resistance — fast EMA below its smoothing.
• Green candles (Bullish Pump): momentum up bar confirmed while price holds above the momentum baseline.
• Red candles (Bearish Dump): momentum down bar in a bearish context.
• Yellow candles and "Reversal" label (Bullish Reversal): close reclaims the reversal SMA over the open.
• Blue candles and "Rebound" label (Bearish Rebound): up bar within a downtrend context — potential weak bounce.
• Fuchsia candles (Bullish Retrace): down bar inside an otherwise bullish context.

█ IMPLEMENTATION NOTES

Open-source implementation built on ta.highest, ta.lowest, ta.ema, and ta.sma.
All built-in moving averages are called unconditionally on every bar at global scope, so short-circuit evaluation cannot corrupt their internal history.
Channel breakouts use ta.crossover/ta.crossunder on the level series; alertconditions are evaluated at bar close and do not repaint.
No request.security calls are used, so there is no higher-timeframe repaint surface.

█ LIMITATIONS

• Channel levels are unavailable (na) for the first bars where the lookback window is not yet filled.
• State candle colors are momentum descriptions, not standalone trade signals — always confirm with structure and risk management.
• Defaults suit most liquid markets; extremely volatile or illiquid symbols may require retuning n1 and the level ratios.

█ NOTES

• V2 upgrade of the original L3 Price Positioning Index: configurable ratios, alert system, signal labels, dashboard, and background states added; core positioning algorithm unchanged.
• For questions or feedback, use the comments section below.
• Feel free to use and modify — attribution appreciated.

═════════════════════════════════════════════════════════════════════════
This indicator is provided for educational purposes and does not constitute financial advice.
Sürüm Notları
█ OVERVIEW

This open-source indicator combines a Guppy Multiple Moving Average (GMMA) ribbon with five long-entry rule sets, symmetric sell signals, a position-state engine, and ATR-based take-profit / stop-loss levels on one clean chart.
It turns the classic blackcat L1 GMMA concept into a complete trading workflow: entry, exit, risk levels, alerts, and an on-chart status dashboard.

█ CONCEPTS

The script plots two GMMA clusters around price — a short/mid-term group (EMA 3, 5, 8, 10, 12, 15) in yellow and a long-term group (EMA 30, 35, 40, 45, 50, 60) in orange — and paints each EMA segment maroon while it slopes down.
Buy and sell rules fire when the clusters compress, expand, or get crossed in characteristic ways; a built-in state engine keeps the signals mutually exclusive and jitter-free.

Key principles:
• Cluster compression: buy setups appear when the short and long groups converge, then price reclaims them with expanding volume
• Momentum burst: a strong gain bar (default > 4.9%) on above-average volume confirms breakouts
• Signal governance: edge triggering, a position state machine, and an adjustable cooldown filter repeated or contradictory signals
• Volatility-based risk: stop-loss and take-profit levels are derived from ATR multiples anchored at the entry bar

█ HOW TO USE

1 — Add the script to a candlestick chart (stocks, crypto, or futures; daily and 4-hour charts are a good starting point).
2 — Tune the Signal Conditions thresholds to your market; the defaults match the original V1 release.
3 — Read labels at bars: green E1—E5 = long entry (rule number shown), red S1—S4 = short/sell signal, orange XL / XS = long/short exit.
4 — Follow the dashed red and teal lines for the active stop-loss and take-profit reference levels.
5 — Create alerts from the Long Entry / Short Entry / Long Exit / Short Exit alert conditions.

Input Parameters
• Volume Ratio vs SMA10: required volume multiple above its 10-bar average for entry rules (default 1.2)
• Breakout Gain: minimum close-to-close gain ratio for the momentum rule (default 1.049)
• Glue Threshold EMA15/60 Dist: compression width for rule E3 / S3 (default 0.01)
• Glue Threshold EMA45/30 Dist: compression width for rule E4 (default 0.011)
• Edge-trigger Signals: fire only on the first bar of a condition (disable to mimic V1 level behavior)
• Same-bar Entry/Exit Exclusivity: exit signals take priority when both fire on one bar
• Cooldown Bars: minimum bars between any two signals (0 disables)
• Enable EMA15 Cross Exit: close crossing the EMA 15 exits the active position
• ATR Length: averaging period for the risk model (default 14)
• Stop Loss (xATR): stop distance in ATR multiples (default 2.0)
• Take Profit (xATR): target distance in ATR multiples (default 3.0)
• Show TP/SL Levels: toggle the risk-level plots
• Show Signal Labels: toggle the E/S/X label system
• Show Legacy plotshape Signals: re-display the original V1 BUY/SELL markers
• Position State Background: light green/red background while long/short
• Show Dashboard: top-right panel with position, entry, ATR, TP/SL, and cooldown countdown

█ FEATURES

• Four dedicated alertcondition channels plus confirmed, once-per-bar-close dynamic alerts
• Rule-numbered labels so you can see exactly which setup triggered
• Position-state engine with edge triggering, mutual exclusion, and cooldown
• ATR-anchored stop-loss and take-profit plots that follow the active trade
• On-chart dashboard and data-window position state
• Full input grouping with min/max/step constraints; every V1 default preserved

█ SIGNALS

Visual Elements
• Green label E1—E5 below a bar: long entry — E1/E2 cluster-cross rules, E3/E4 compression rules, E5 volume-breakout rule
• Red label S1—S4 above a bar: sell/short signal — S1/S2 cluster-cross rules, S3 expansion rule, S4 distribution rule
• Orange cross XL / XS: long or short position exited via the EMA 15 exit
• Red dashed line: stop-loss reference; teal dashed line: take-profit reference
• Background tint: green = long state, red = short state, none = flat

█ IMPLEMENTATION NOTES

Open-source, Pine v6. Built on ta.ema, ta.atr, ta.crossover / ta.crossunder, plotcandle, and label.new with max_labels_count = 500.
No request.security calls are used, so the script has no higher-timeframe repaint surface; all alerts are evaluated on confirmed bars (alert.freq_once_per_bar_close).

█ LIMITATIONS

• Compression rules can produce false starts in prolonged ranging markets; the cooldown filter reduces but does not eliminate them
• The default EMA 15 exit is a trend-following exit and will give back part of open profit by design
• ATR levels are references computed from the signal close, not assured fills — actual executions may differ
• Short/sell signals are provided for completeness; short selling may not be available on all instruments

█ NOTES

• V2 is a direct evolution of the open-source V1: the original GMMA logic and every threshold default are preserved; governance, exits, risk levels, alerts, and labels were added and can each be switched off
• Licensed under the Mozilla Public License 2.0 — feel free to study and modify

═════════════════════════════════════════════════════════════════════════
For questions or feedback, use the comments section below.
Feel free to use and modify — attribution appreciated.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.