EMA Trading Guide
Last updated: July 22, 2026
The EMA (3 Lines) is a quantitative technical analysis tool. Exponential Moving Average (EMA) - Overlay indicator Renders on main price chart Wiki compliance:
What does the indicator show?
- Market Structure & Momentum: Visualizes prevailing trend directions and key reversal zones.
- BUY / SELL Signals: Highlights confirmed entry and exit opportunities based on quantitative rules.
- Dynamic Boundaries: Provides adaptive levels for managing trade risk and reward expectations.
Key Settings
- EMA 1 Period (
period1): Controls the calculation period and sensitivity for market detection. - EMA 2 Period (
period2): Controls the calculation period and sensitivity for market detection. - EMA 3 Period (
period3): Controls the calculation period and sensitivity for market detection. - EMA 1 (
ema1): Controls the calculation period and sensitivity for market detection. - EMA 2 (
ema2): Controls the calculation period and sensitivity for market detection. - EMA 3 (
ema3): Controls the calculation period and sensitivity for market detection. - Price vs EMA1 (
price_vs_ema1): Controls the calculation period and sensitivity for market detection. - Price vs EMA2 (
price_vs_ema2): Controls the calculation period and sensitivity for market detection. - Price vs EMA3 (
price_vs_ema3): Controls the calculation period and sensitivity for market detection. - EMA1 crosses EMA2 (
ema1_cross_ema2): Controls the calculation period and sensitivity for market detection. - EMA1 crosses EMA3 (
ema1_cross_ema3): Controls the calculation period and sensitivity for market detection. - EMA2 crosses EMA3 (
ema2_cross_ema3): Controls the calculation period and sensitivity for market detection. - Distance to EMA1 (%) (
distance_to_ema1): Controls the calculation period and sensitivity for market detection. - Distance to EMA2 (%) (
distance_to_ema2): Controls the calculation period and sensitivity for market detection. - EMAs in Bullish Order (
ema_bullish_order): Controls the calculation period and sensitivity for market detection. - EMAs in Bearish Order (
ema_bearish_order): Controls the calculation period and sensitivity for market detection.
How to use Strategy Parameters (Condition Source)
Within the Strategy Tester module, this indicator can be used both as a direct signal source and as a market-state filter.
1. Signal Events
buySignal- Fires when a bullish market condition is confirmed.sellSignal- Fires when a bearish market condition is confirmed.signalDir- Outputs1for bullish,-1for bearish, and0when neutral.
2. Filters and Trade Levels
period1- EMA 1 Period value used for structural qualification or thresholds.period2- EMA 2 Period value used for structural qualification or thresholds.period3- EMA 3 Period value used for structural qualification or thresholds.ema1- EMA 1 value used for structural qualification or thresholds.ema2- EMA 2 value used for structural qualification or thresholds.ema3- EMA 3 value used for structural qualification or thresholds.price_vs_ema1- Price vs EMA1 value used for structural qualification or thresholds.price_vs_ema2- Price vs EMA2 value used for structural qualification or thresholds.price_vs_ema3- Price vs EMA3 value used for structural qualification or thresholds.ema1_cross_ema2- EMA1 crosses EMA2 value used for structural qualification or thresholds.ema1_cross_ema3- EMA1 crosses EMA3 value used for structural qualification or thresholds.ema2_cross_ema3- EMA2 crosses EMA3 value used for structural qualification or thresholds.distance_to_ema1- Distance to EMA1 (%) value used for structural qualification or thresholds.distance_to_ema2- Distance to EMA2 (%) value used for structural qualification or thresholds.ema_bullish_order- EMAs in Bullish Order value used for structural qualification or thresholds.ema_bearish_order- EMAs in Bearish Order value used for structural qualification or thresholds.
Strategy Example: Enter Long when buySignal is true and trendFilter == 1, ensuring trades align with dominant momentum.