Cipher B+ Divergence EMA Pullback Strategy
Jul 5, 2021

The Cipher B+ Divergence EMA Pullback Strategy indicator is a comprehensive trend-following tool designed to identify entry points during pullbacks within an established trend. It combines exponential moving averages, WaveTrend oscillators, and Money Flow Index (MFI) data to filter signals and provide robust exit management options.
Usage
This script identifies trading opportunities by looking for price action that aligns with a long-term trend while experiencing a short-term retracement.
Long Entry Conditions:
- Trend Filter: Price must be trading above the 150-period EMA (EMA1).
- Pullback: Price must cross above the 50-period EMA (EMA2) after a period of sustained action above it, signaling a completed retracement.
- Momentum & Flow: The WaveTrend (Cipher B) must be below the zero line with a bullish crossover, and the MFI Area must be positive (green).
Short Entry Conditions:
- Trend Filter: Price must be trading below the 150-period EMA (EMA1).
- Pullback: Price must cross below the 50-period EMA (EMA2) after a period of action below it.
- Momentum & Flow: The WaveTrend must be above the zero line with a bearish crossover, and the MFI Area must be negative (red).
Details
The strategy employs a dual-EMA system to define the market regime and specific pullback zones. The 150 EMA acts as the primary trend filter, while the 50 EMA defines the pullback area. To ensure high-quality signals, the script utilizes a WaveTrend oscillator (inspired by Market Cipher B) to capture momentum shifts and an MFI component to confirm that volume flow supports the direction of the trade. Users can choose between two distinct risk management modules: a trailing Lookback-based exit (Highest High/Lowest Low) or a volatility-based ATR exit.
Settings
Indicators
- Channel / Average Length: Adjusts the sensitivity of the WaveTrend oscillator.
- EMA Lengths: Sets the period for the trend filter (EMA1) and the pullback reference (EMA2).
- MFI Period/Multiplier: Configures the Money Flow Index sensitivity and visual area scaling.
Strategy Configuration
- Enable Long/Short: Toggles specific trade directions on or off.
- Exit Type: Choose between "Lowest Low/Highest High" or "ATR" for stop loss and take profit calculation.
- Profit/Stop Factors: Multipliers used to determine the distance of exit targets based on chosen volatility or lookback metrics.
- Lookback Lengths: Defines the window for calculating local price extremes for the High/Low exit method.
FAQ
How do I use the Cipher B+ Divergence EMA Pullback Strategy?
Once added to your chart, ensure the EMA periods match the trend you are analyzing. Look for the arrow signals which appear when trend, pullback, and momentum conditions align simultaneously.
Can I change the risk-to-reward ratio?
Yes, you can adjust the "Profit Factor" and "Stop Factor" in the settings for both the ATR and the High/Low exit methods to suit your personal risk tolerance.
Where can I find this script?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.