5 Minute EMA Intraday

5 Minute EMA Intraday is an EMA-pullback strategy for five-minute candles. It combines EMA 10/21, a slower trend SMA, measured trend angle, ADX strength, and recent support or resistance.
It is the EMA Intraday configuration of the same fire-zone method used by 5 Minute Intraday, with its own EMI_ controls and independent strategy state.
warning
EMI_STOP_ENABLED is the exposed switch that activates the planned protective stop. Keep it disabled only if you deliberately want targets and profitable technical exits to manage the position without a loss exit.
Fire-zone entry
EMI_FAST_EMA_LENGTH and EMI_PULLBACK_EMA_LENGTH create the pullback zone. A long needs the fast EMA above the pullback EMA, price above EMI_TREND_SMA_LENGTH, and a candle that reaches the zone without closing materially below it.
EMI_PULLBACK_PROXIMITY_PIPS adds tolerance in pip mode. Percentage mode uses a small proportional allowance instead.
The strategy holds one position and does not average down.
Trend angle
The trend SMA’s movement across EMI_ANGLE_LOOKBACK is converted to pips per candle and smoothed with EMI_ANGLE_EMA_LENGTH.
Most pairs require the smoothed angle above EMI_ANGLE_THRESHOLD; EUR/JPY uses EMI_EURJPY_ANGLE_THRESHOLD. Values close to zero define the no-trade zone.
Enable EMI_USE_STRONG_ANGLE_FILTER to additionally require the raw angle above EMI_STRONG_ANGLE_THRESHOLD.
Angle calculations depend on pip size. EMI_PIP_SIZE set to 0 automatically uses 0.01 for JPY pairs and 0.0001 otherwise.
ADX and structure
ADX from EMI_ADX_LENGTH must reach EMI_MIN_ADX. Enable EMI_REQUIRE_ADX_RISING to require its LSMA-smoothed value, using EMI_ADX_LSMA_LENGTH, to be flat or rising.
With EMI_REQUIRE_SR_FILTER enabled, recent support and resistance over EMI_SR_LOOKBACK reject entries that are already breaking structure.
ADX measures strength; EMA order and angle provide direction.
Spread controls
Entries must pass EMI_MAX_SPREAD_PCT, optional EMI_MAX_SPREAD_ABSOLUTE, and optional EMI_MAX_SPREAD_PIPS. The pip ceiling uses the same pip-size rules as the angle and distance settings.
Target, stop, and exits
The target uses EMI_TARGET_PIPS in pip mode or EMI_TARGET_PCT otherwise, with a floor for fees and EMI_MIN_NET_GAIN_PCT.
Enable EMI_STOP_ENABLED to execute the planned stop. Its candidates are the configured EMI_STOP_PIPS or EMI_STOP_PCT, the bottom of the EMA zone, and recent support; the closest valid level below entry is used.
Profitable technical exits are controlled by:
EMI_EXIT_ON_OPPOSITE_SIGNALfor a full mirrored short setup;EMI_EXIT_ON_NO_TRADE_ZONEwhen smoothed angle returns to neutral;EMI_EXIT_ON_EMA_FLIPwhen fast EMA falls below pullback EMA.
Good market conditions
This strategy suits liquid five-minute markets with stable spreads, a positive trend-SMA angle, adequate ADX, and controlled pullbacks into EMA 10/21 that hold recent support.
Avoid flat angle conditions, weak ADX, sudden support breaks, and erratic candles that cut repeatedly through both EMAs.
Creating the strategy
Create a spot strategy and choose 5 Minute EMA Intraday for both methods. Begin with backtesting or paper trading at five minutes.
Confirm pip size and spread limits first. Then test angle, ADX, and structural filters separately. Decide explicitly whether EMI_STOP_ENABLED should be on; do not infer protection from the stop-distance fields alone.
Strategy settings
Trading and safeguards
| Setting | Description |
|---|---|
BUY_ENABLED | Enables entries. |
SELL_ENABLED | Enables exits. |
PERIOD | Candle period; default five minutes. |
TRADING_LIMIT | Compatibility fallback only. It is ignored while the strategy-specific trading limit contains a positive value. Configure the strategy-specific setting for normal use. For USDT-BTC, this value is in USDT. |
EMI_TRADING_LIMIT | For USDT-BTC, the amount of USDT used for an entry. |
FUNDS_RESERVE | For USDT-BTC, the amount of USDT the bot must leave unused. |
KEEP_QUOTE | For USDT-BTC, the amount of BTC the strategy must not sell. |
MIN_VOLUME_TO_BUY | General minimum buy value. For USDT-BTC, this value is in USDT. |
MIN_VOLUME_TO_SELL | General minimum sell value. For USDT-BTC, this value is in USDT. |
EMI_MIN_ORDER_VALUE | Strategy minimum entry value. For USDT-BTC, this value is in USDT. |
EMI_MIN_SELL_VALUE | Strategy minimum exit value. For USDT-BTC, this value is in USDT. |
GAIN | General gain fallback retained in configuration. |
EMI_COOLDOWN_MS | Delay between live actions. |
EMI_MAX_SPREAD_PCT | Relative spread ceiling. |
EMI_MAX_SPREAD_ABSOLUTE | Optional absolute spread ceiling; 0 disables it. For USDT-BTC, this value is in USDT. |
EMI_MAX_SPREAD_PIPS | Optional pip spread ceiling. |
EMI_NEWS_BLOCK | Manually blocks entries. |
EMI_NEWS_BLOCK_UNTIL | Blocks entries until the configured time. |
Fire zone and angle
| Setting | Description |
|---|---|
EMI_FAST_EMA_LENGTH | Fast fire-zone EMA length. |
EMI_PULLBACK_EMA_LENGTH | Slower fire-zone EMA length. |
EMI_TREND_SMA_LENGTH | Broader trend SMA length. |
EMI_ANGLE_EMA_LENGTH | Smoothing length for trend angle. |
EMI_ANGLE_LOOKBACK | Candles over which raw angle is measured. |
EMI_ANGLE_THRESHOLD | Smoothed angle threshold for most pairs. |
EMI_EURJPY_ANGLE_THRESHOLD | EUR/JPY-specific threshold. |
EMI_STRONG_ANGLE_THRESHOLD | Raw-angle threshold for strong mode. |
EMI_USE_STRONG_ANGLE_FILTER | Enables the raw strong-angle requirement. |
EMI_PULLBACK_PROXIMITY_PIPS | Fire-zone tolerance in pip mode. |
Strength and structure
| Setting | Description |
|---|---|
EMI_ADX_LENGTH | ADX length. |
EMI_ADX_LSMA_LENGTH | Smoothing length used for ADX direction. |
EMI_MIN_ADX | Minimum trend-strength reading. |
EMI_REQUIRE_ADX_RISING | Requires smoothed ADX not to be falling. |
EMI_SR_LOOKBACK | Candles used for recent support and resistance. |
EMI_REQUIRE_SR_FILTER | Rejects entries that violate recent structure. |
Target, stop, and exits
| Setting | Description |
|---|---|
EMI_USE_PIPS | Selects pip distances. |
EMI_PIP_SIZE | Pip value; 0 selects the pair-aware default. For USDT-BTC, this value is in USDT. |
EMI_TARGET_PIPS | Target in pip mode. |
EMI_STOP_PIPS | Stop-distance candidate in pip mode. |
EMI_TARGET_PCT | Target in percentage mode. |
EMI_MIN_NET_GAIN_PCT | Intended gain beyond fee break-even. |
EMI_STOP_ENABLED | Activates the planned protective stop. |
EMI_STOP_PCT | Stop-distance candidate in percentage mode. |
EMI_EXIT_ON_OPPOSITE_SIGNAL | Enables profitable exit on mirrored setup. |
EMI_EXIT_ON_NO_TRADE_ZONE | Enables profitable exit in neutral angle. |
EMI_EXIT_ON_EMA_FLIP | Enables profitable exit on bearish EMA order. |
Backtesting
| Setting | Description |
|---|---|
BF_SINCE | Backtest start. |
BF_UNTIL | Backtest end. |
DEEP_TESTING | Enables deeper backtesting. |
Practical tuning directions
Confirm EMI_PIP_SIZE before adjusting angle, spread, proximity, target, or stop values because all of them share that scale.
For fewer but stronger setups, enable strong-angle and rising-ADX filters. For more setups, loosen one filter at a time so its effect remains measurable.
Important limitations
- Five-minute signals are sensitive to spread and execution delay.
- ADX gives strength, not direction.
- Percentage mode does not use the pip proximity value.
- EUR/JPY alone uses the special angle threshold.
- Technical exits wait for break-even.
- News blocking is manual.
5 Minute EMA Intraday is a pullback method, not a breakout chase. The best entries return to the EMA zone while the broader slope and strength remain intact.