Zaktualizowano

[blackcat] L2 Momentum Line Convergence Divergence (MLCD)

7 614
Level: 2

Background

Momentum indicators are technical analysis tools that can be used to determine the strength or weakness of the stock price. Momentum measures the speed at which stock prices rise or fall. Common momentum indicators are the relative strength index (RSI) and the moving average of convergence divergence (MACD).


Function

[blackcat] L2 Momentum Line Convergence Divergence (MLCD) is one of my innovative indicator which is to differeniate with average of convergence divergence (MACD). So, I named it as Momentum Line Convergence Divergence (MLCD). In order for everyone to be more familiar with its useage, I inherited the traditional MACD expression method, and added golden cross (yellow cross) and dead cross (fuchsia cross) prompts, as well as bottom divergence (lime cross) and top divergence (red cross) prompts.

Key Signal

mtm --> momentum fast line
mtmaux --> momentum slow line
mtmgx --> momentum gold cross in yellow
mtmdx --> momentum dead cross in fuchsia
mtmbotdiverg --> momentum bottom divergence alert in lime cross
mtmtopdiverg --> momentum top divergence alert in red cross

Pros and Cons

Pros:

1. very stable for market price change and trend following
2. visual bottom and top divergence alerts are provided

Cons:

To be found yet

Remarks

Blackcat1402 brand MLCD indicator

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.
Informacje o Wersji
OVERVIEW
The [blackcat] L2 Momentum Line Convergence Divergence (MLCD) indicator provides traders with a comprehensive view of market momentum through convergence and divergence signals, aiding in identifying potential buying and selling opportunities.

FEATURES

Calculates and plots primary and auxiliary momentum lines.
Highlights gold crosses (buy signals) and dead crosses (sell signals).
Identifies bottom and top divergences using momentum lines.
Displays a momentum histogram indicating growth trends.
Provides visual cues with labels for confirmed trades.
HOW TO USE

Add Indicator: Open TradingView chart, click on 'Indicators' tab, search for '[blackcat] L2 Momentum Line Convergence Divergence', and add it to your chart.
Analyze Signals:
Look for [yellow]gold crosses[/yellow] where the momentum line rises above the auxiliary line; consider this a buy signal.
Watch for [fuchsia]dead crosses[/fuchsia] when the momentum line falls below the auxiliary line; treat this as a sell signal.
Monitor [lime]bottom divergences[/lime], which may indicate price weakness despite rising momentum, signaling possible buy points.
Be cautious of [red]top divergences[/red], suggesting overbought conditions even though momentum is decreasing, pointing towards potential sell entries.
Review Histogram: Use the momentum histogram for insights into recent trend strength and direction:
Positive columns suggest increasing bullish momentum.
Negative columns imply growing bearish pressure.
LIMITATIONS

The script assumes standard candlestick data availability.
Performance might vary across different asset classes or timeframes.
Historical accuracy does not guarantee future results.
NOTES

Customize colors and other settings directly within the script editor if desired.
Regularly review strategy performance against actual trade outcomes for best use.
THANKS
Special thanks to the Pine Script community for their guidance and inspiration.
Informacje o Wersji
█ OVERVIEW

blackcat L2 Momentum Line Convergence Divergence (MLCD) V2 is a momentum oscillator plotting a dual-line momentum system with a four-color histogram, detecting gold crosses, dead crosses, and momentum divergences.
V2 adds a cross-confirmation signal filter with an optional zero-line gate to cut whipsaw signals, plus position-state governance, ATR-based TP/SL levels, six alert channels, and a state dashboard — the original MLCD math is untouched.

█ CONCEPTS

The momentum line is a weighted average of typical price (close+low+high)/3 over fast and slow windows, compared against an EMA-smoothed aux line.
• Convergence: crosses between the two lines mark momentum shifts (gold/dead cross)
• Divergence: at each cross, price and momentum are compared with the previous same-type cross — lower price low with higher momentum low = bullish, and vice versa
• Histogram: twice the line distance, colored by direction and expansion, MACD-style
• Signal Filter (default on): a cross must hold N bars — optionally passing a zero-line gate — before any signal, label, or alert fires; one-bar whipsaw crosses never trigger
• Governance (optional): position state machine (-1/0/+1) with same-bar exit priority and cooldown suppresses whipsaw clusters

█ INPUTS

• Fast WMA Length 5, Slow WMA Length 13, WMA Weight 1, Aux EMA Length 5, Oscillator Multiplier 10 (V1 defaults preserved)
• Enable Cross Confirmation Filter (default on)
• Cross Confirmation Bars: bars the cross must hold before firing (default 2; 1 = raw cross, up to 10)
• Zero-Line Mode: Off / With Trend (gold cross only above zero, dead cross only below — strongest reduction) / Counter Trend (gold cross only below zero) (default Off)
• Enable State-Machine Governance (default off), Cooldown Bars (default 3)
• Show TP/SL Levels, ATR Length 14, Stop Loss 2.0 xATR, Take Profit 3.0 xATR
• Show Signal Labels / State Background / Dashboard Table (all on)

█ SIGNALS

• BUY GC (green label): gold cross confirmed — potential long entry
• BUY BD (green label + lime cross): bottom divergence at the cross — stronger long
• SELL DC (red label): dead cross confirmed — potential short entry
• SELL TD (red label + red cross): top divergence at the crossunder — stronger short
• XL / XS (orange X): governed exits; faint green/red background: governed long/short state
• Histogram: red = positive expanding, blue = positive contracting, lime = negative contracting, yellow = negative expanding
• Red / teal stepped lines: ATR stop loss / take profit from the governed entry

█ IMPLEMENTATION NOTES

Built on ta.crossover, ta.crossunder, ta.barssince, ta.ema and ta.atr. Divergence anchors use ta.barssince shifted one bar back so the anchor is the previous same-type cross. All ta.* calls run unconditionally on every bar (v6 short-circuit safe). No request.security() — no multi-timeframe repaint surface. Alerts evaluate on confirmed bars via alert.freq_once_per_bar_close.

█ LIMITATIONS

• With filtering on, signals confirm N bars after the cross — later entries in exchange for far fewer false triggers; divergence flags are re-anchored to the confirmation bar
• TP/SL lines are reference plots from confirmed entries, not live exchange orders; with governance off they stay inactive by design
• As with all oscillators, signals degrade in strong one-directional drifts

═════════════════════════════════════════════════════════════════════════
For questions or feedback, use the comments section below. Use and modify freely — attribution appreciated.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.