EMA Trading Guide
The EMA (3 Lines) is designed to automatically detect short, medium, and long-term trend directions by plotting three independent Exponential Moving Averages on the chart simultaneously. By weighing recent price data more heavily, the EMAs respond quicker to market shifts than standard moving averages, offering traders clear insights into momentum alignment and dynamic support or resistance zones.
What does the indicator show?
- EMA 1 (Fast): Typically tracks immediate, short-term momentum, making it highly reactive to recent candle closures.
- EMA 2 (Medium): Acts as the intermediate baseline, smoothing out minor fluctuations to reveal the core swing trend.
- EMA 3 (Slow): The macro trend tracker. As long as price remains on one side of this line, the long-term trend is considered established.
Key Settings
- EMA 1 Period: The lookback length for the fastest moving average.
- EMA 2 Period: The lookback length for the intermediate moving average.
- EMA 3 Period: The lookback length for the slowest, trend-defining moving average.
How to use Strategy Parameters (Condition Source)
Within the Strategy Tester module, you can leverage the data from this indicator to create powerful logical conditions for trade entries and exits.
1. Price vs EMA Comparisons
Evaluate how current trading prices interact with the moving average bands.
price_vs_ema1— Allows you to check if the price crosses, touches, or rests above/below the fast EMA.price_vs_ema2— Allows you to check price interaction with the medium EMA.price_vs_ema3— Allows you to check price interaction against the slow, macro-trend EMA.distance_to_ema1— Calculates exactly how far extended the current price is away from the fast EMA in percentages.distance_to_ema2— Calculates the percentage deviation from the medium EMA.
2. Moving Average Crosses & Organization
Detect structural shifts and momentum crossovers.
ema1_cross_ema2— Detects Golden (Bullish) or Death (Bearish) crossovers between the fast and medium lines.ema1_cross_ema3— Detects powerful trend confirmations when short-term momentum breaches macro boundaries.ema2_cross_ema3— Identifies deep trend shifts driven by medium-term market exhaustion or acceleration.ema_bullish_order— A continuous state flag reading true only when the EMAs are perfectly stacked (Fast > Medium > Slow).ema_bearish_order— A continuous state flag reading true only when the EMAs are perfectly inverted (Fast < Medium < Slow).
Strategy Example: If you are looking to enter a Long position based on robust trend confirmation, you could add conditions: ema_bullish_order == true and price_vs_ema1 crosses_above. This ensures you buy pullbacks only when the entire market structure is heavily bullish.