@@ -36,6 +36,7 @@ pip install pyindicators
3636 * [ Williams %R] ( #williams-r )
3737 * [ Average Directional Index (ADX)] ( #average-directional-index-adx )
3838 * [ Stochastic Oscillator (STO)] ( #stochastic-oscillator-sto )
39+ * [ Momentum Confluence] ( #momentum-confluence )
3940* [ Volatility indicators] ( #volatility-indicators )
4041 * [ Bollinger Bands (BB)] ( #bollinger-bands-bb )
4142 * [ Bollinger Bands Overshoot] ( #bollinger-bands-overshoot )
@@ -541,6 +542,78 @@ pd_df.tail(10)
541542
542543![ STO] ( https://github.com/coding-kitties/PyIndicators/blob/main/static/images/indicators/sto.png )
543544
545+ #### Momentum Confluence
546+
547+ Momentum Confluence is a comprehensive multi-component oscillator that combines multiple technical analysis components to provide a powerful trend following and reversal detection system.
548+
549+ ** Components:**
550+ 1 . ** Money Flow** : Measures buying/selling liquidity entering the market (-100 to +100)
551+ 2 . ** Thresholds** : Dynamic levels showing significant buying/selling activity
552+ 3 . ** Overflow** : Detects excess buying/selling that predicts reversals
553+ 4 . ** Trend Wave** : A highly reactive trend-following oscillator (0-100)
554+ 5 . ** Real-Time Divergences** : Price vs oscillator divergence detection
555+ 6 . ** Reversal Signals** : High-frequency (small dots) and strong (arrows) reversal signals
556+ 7 . ** Confluence** : Combined signal strength from all components (-100 to +100)
557+
558+ ``` python
559+ def momentum_confluence (
560+ data : Union[PdDataFrame, PlDataFrame],
561+ money_flow_length : int = 14 ,
562+ trend_wave_length : int = 10 ,
563+ threshold_mult : float = 1.5 ,
564+ overflow_threshold : float = 0.8 ,
565+ divergence_lookback : int = 5 ,
566+ high_column : str = ' High' ,
567+ low_column : str = ' Low' ,
568+ close_column : str = ' Close' ,
569+ volume_column : str = ' Volume' ,
570+ ...
571+ ) -> Union[PdDataFrame, PlDataFrame]:
572+ ```
573+
574+ Example
575+
576+ ``` python
577+ from pyindicators import (
578+ momentum_confluence,
579+ momentum_confluence_signal,
580+ get_momentum_confluence_stats
581+ )
582+
583+ # Calculate Momentum Confluence
584+ df = momentum_confluence(df)
585+
586+ # Generate trading signals
587+ df = momentum_confluence_signal(df)
588+
589+ # Get statistics
590+ stats = get_momentum_confluence_stats(df)
591+ print (f " Strong bullish reversals: { stats[' strong_reversal_bullish_count' ]} " )
592+ print (f " Divergences detected: { stats[' divergence_bullish_count' ]} " )
593+ ```
594+
595+ ** Output Columns:**
596+ - ` money_flow ` : Money flow oscillator (-100 to +100)
597+ - ` mf_upper_threshold ` / ` mf_lower_threshold ` : Dynamic threshold levels
598+ - ` overflow_bullish ` / ` overflow_bearish ` : Excess buying/selling (0 or 1)
599+ - ` trend_wave ` : Trend oscillator (0-100)
600+ - ` trend_wave_signal ` : Trend direction (1=bullish, -1=bearish, 0=neutral)
601+ - ` divergence_bullish ` / ` divergence_bearish ` : Divergence detection (0 or 1)
602+ - ` reversal_bullish ` / ` reversal_bearish ` : High-frequency reversal signals (0 or 1)
603+ - ` reversal_strong_bullish ` / ` reversal_strong_bearish ` : Strong reversal signals (0 or 1)
604+ - ` confluence ` : Combined signal strength (-100 to +100)
605+ - ` mc_trend ` : Overall trend direction (1=bullish, -1=bearish, 0=neutral)
606+
607+ ** Signal Values (from momentum_confluence_signal):**
608+ - ` 2 ` : Strong bullish reversal signal
609+ - ` 1 ` : Bullish confluence
610+ - ` 0 ` : Neutral
611+ - ` -1 ` : Bearish confluence
612+ - ` -2 ` : Strong bearish reversal signal
613+
614+ ![ MOMENTUM_CONFLUENCE] ( https://github.com/coding-kitties/PyIndicators/blob/main/static/images/indicators/momentum_confluence.png )
615+
616+
544617### Volatility indicators
545618
546619Indicators that measure the rate of price movement, regardless of direction. They help to identify
0 commit comments