Skip to main content

5 Minute EMA Intraday

5 Minute EMA Intraday strategy behavior

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_SIGNAL for a full mirrored short setup;
  • EMI_EXIT_ON_NO_TRADE_ZONE when smoothed angle returns to neutral;
  • EMI_EXIT_ON_EMA_FLIP when 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

SettingDescription
BUY_ENABLEDEnables entries.
SELL_ENABLEDEnables exits.
PERIODCandle period; default five minutes.
TRADING_LIMITCompatibility 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_LIMITFor USDT-BTC, the amount of USDT used for an entry.
FUNDS_RESERVEFor USDT-BTC, the amount of USDT the bot must leave unused.
KEEP_QUOTEFor USDT-BTC, the amount of BTC the strategy must not sell.
MIN_VOLUME_TO_BUYGeneral minimum buy value. For USDT-BTC, this value is in USDT.
MIN_VOLUME_TO_SELLGeneral minimum sell value. For USDT-BTC, this value is in USDT.
EMI_MIN_ORDER_VALUEStrategy minimum entry value. For USDT-BTC, this value is in USDT.
EMI_MIN_SELL_VALUEStrategy minimum exit value. For USDT-BTC, this value is in USDT.
GAINGeneral gain fallback retained in configuration.
EMI_COOLDOWN_MSDelay between live actions.
EMI_MAX_SPREAD_PCTRelative spread ceiling.
EMI_MAX_SPREAD_ABSOLUTEOptional absolute spread ceiling; 0 disables it. For USDT-BTC, this value is in USDT.
EMI_MAX_SPREAD_PIPSOptional pip spread ceiling.
EMI_NEWS_BLOCKManually blocks entries.
EMI_NEWS_BLOCK_UNTILBlocks entries until the configured time.

Fire zone and angle

SettingDescription
EMI_FAST_EMA_LENGTHFast fire-zone EMA length.
EMI_PULLBACK_EMA_LENGTHSlower fire-zone EMA length.
EMI_TREND_SMA_LENGTHBroader trend SMA length.
EMI_ANGLE_EMA_LENGTHSmoothing length for trend angle.
EMI_ANGLE_LOOKBACKCandles over which raw angle is measured.
EMI_ANGLE_THRESHOLDSmoothed angle threshold for most pairs.
EMI_EURJPY_ANGLE_THRESHOLDEUR/JPY-specific threshold.
EMI_STRONG_ANGLE_THRESHOLDRaw-angle threshold for strong mode.
EMI_USE_STRONG_ANGLE_FILTEREnables the raw strong-angle requirement.
EMI_PULLBACK_PROXIMITY_PIPSFire-zone tolerance in pip mode.

Strength and structure

SettingDescription
EMI_ADX_LENGTHADX length.
EMI_ADX_LSMA_LENGTHSmoothing length used for ADX direction.
EMI_MIN_ADXMinimum trend-strength reading.
EMI_REQUIRE_ADX_RISINGRequires smoothed ADX not to be falling.
EMI_SR_LOOKBACKCandles used for recent support and resistance.
EMI_REQUIRE_SR_FILTERRejects entries that violate recent structure.

Target, stop, and exits

SettingDescription
EMI_USE_PIPSSelects pip distances.
EMI_PIP_SIZEPip value; 0 selects the pair-aware default. For USDT-BTC, this value is in USDT.
EMI_TARGET_PIPSTarget in pip mode.
EMI_STOP_PIPSStop-distance candidate in pip mode.
EMI_TARGET_PCTTarget in percentage mode.
EMI_MIN_NET_GAIN_PCTIntended gain beyond fee break-even.
EMI_STOP_ENABLEDActivates the planned protective stop.
EMI_STOP_PCTStop-distance candidate in percentage mode.
EMI_EXIT_ON_OPPOSITE_SIGNALEnables profitable exit on mirrored setup.
EMI_EXIT_ON_NO_TRADE_ZONEEnables profitable exit in neutral angle.
EMI_EXIT_ON_EMA_FLIPEnables profitable exit on bearish EMA order.

Backtesting

SettingDescription
BF_SINCEBacktest start.
BF_UNTILBacktest end.
DEEP_TESTINGEnables 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.