Trading Engine
EMA Cross Strategy
The trading engine is based on a multi-layer EMA trend continuation strategy designed for strong short-term momentum markets.
The bot continuously monitors all configured trading pairs and searches for high-probability long entry opportunities using EMA structure, breakout confirmation, and volume analysis.
The strategy combines:
- •EMA20 for short-term trend direction
- •EMA50 for mid-term trend confirmation
- •EMA200 for higher timeframe trend filtering
- •Breakout validation
- •Volume spike detection
- •Candle volatility filtering
The system operates on:
- •1-minute candles for entry execution
- •3-minute candles for higher timeframe trend filtering
Main strategy logic:
- 1.EMA200 on the 3-minute timeframe must not show a strong downward slope.
- 2.Price must bounce from EMA20 on the 1-minute timeframe.
- 3.EMA20 must remain above EMA50.
- 4.EMA50 must remain above EMA200.
- 5.EMA20 and EMA50 slopes must remain positive.
- 6.Breakout candle must close above recent highs.
- 7.Volume must exceed average market activity.
- 8.Candle size must remain within acceptable volatility limits.
This creates a filtered momentum-entry system focused on trend continuation rather than reversal trading.

Want to see how these indicators work in reality?
Open the Binance trading terminal and analyze real-time spot market charts.
Analyze Live Charts on BinanceEntry Confirmation Logic
A trade is executed only if all entry conditions pass simultaneously.
1. Higher Timeframe Trend Filter
The bot calculates the EMA200 slope on the 3-minute timeframe.
Condition:
- •EMA200 slope must remain above the configured minimum value.
- •Strong bearish market conditions block new entries.
Purpose:
- •Prevent buying during higher timeframe downtrends.
2. EMA20 Bounce Detection
The system searches for a pullback into EMA20 followed by bullish continuation.
Requirements:
- •Price touches EMA20 within recent candles.
- •Current candle closes back above EMA20.
- •Candle body must not remain fully below EMA20.
Purpose:
- •Detect continuation pullbacks during active uptrends.
3. EMA Distance Validation
The bot validates trend strength using EMA spacing.
Conditions:
- •EMA20 must remain sufficiently above EMA50.
- •EMA50 must remain sufficiently above EMA200.
Purpose:
- •Avoid weak or flat market structures.
4. Breakout Confirmation
The latest candle must break above recent local highs.
Condition:
- •Current close exceeds highs from previous candles.
Purpose:
- •Confirm bullish momentum continuation.
5. Volume Spike Detection
The strategy validates market participation using volume analysis.
Condition:
- •Current volume must exceed rolling average volume multiplied by the configured coefficient.
Purpose:
- •Filter low-liquidity or weak breakout scenarios.
6. Candle Volatility Filter
The bot rejects oversized candles.
Condition:
- •Candle size percentage must remain below configured maximum.
Purpose:
- •Prevent entries after overheated price spikes.
7. EMA Slope Confirmation
The bot verifies positive momentum using EMA20 and EMA50 slopes.
Conditions:
- •EMA20 slope must remain positive.
- •EMA50 slope must remain positive.
Purpose:
- •Ensure short-term and mid-term momentum alignment.
Stop Loss Logic
Every position receives a fixed stop loss immediately after entry execution.
Stop loss calculation:
- •Stop loss price is calculated as a percentage below entry price.
- •Each trading pair has independent stop loss settings.
Purpose:
- •Protect capital during failed breakouts or trend reversals.
The stop loss remains active until:
- •Position closes by stop loss
- •Position closes by take profit
- •Position closes by trailing stop
Take Profit Logic
Each position receives a predefined take profit target immediately after execution.
Take profit calculation:
- •Take profit price is calculated as a percentage above entry price.
- •Each symbol has its own configured target.
Purpose:
- •Lock profits automatically during strong continuation moves.
When price reaches the configured take profit level:
- •The bot immediately executes a market sell order.
Trailing Stop Logic
The trading engine includes a dynamic trailing stop system designed to protect profits during strong market continuation.
Standard Trailing Stop
Trailing stop activates only after a minimum profit threshold is reached.
Activation logic:
- 1.Position reaches configured profit percentage.
- 2.Trailing stop becomes active.
- 3.Stop level follows price upward.
- 4.Stop never moves downward.
Purpose:
- •Allow profitable trades to continue while protecting gains.
Tight Trailing Logic
The bot includes an aggressive protection mode during potential trend weakening.
Tight trailing activates when:
- •Price closes below EMA20
- •EMA50 gets touched
- •Momentum weakens after holding the position
In this mode:
- •Trailing distance becomes significantly tighter.
- •Profits are protected more aggressively.
Purpose:
- •Reduce profit giveback during trend exhaustion.
Risk Management Logic
The trading engine includes multiple layers of automated portfolio protection.
Position Sizing
Each position uses a configurable percentage of total capital.
Features:
- •Dynamic quantity calculation
- •Binance lot size adjustment
- •Automatic exposure control
Purpose:
- •Maintain consistent risk across all positions.
Portfolio Exposure Protection
The bot limits total active exposure across all open trades.
Condition:
- •Total exposure cannot exceed configured portfolio limit.
Purpose:
- •Prevent overleveraging the account.
Consecutive Loss Protection
The bot tracks losing streaks per trading pair.
Condition:
- •Trading is disabled after exceeding maximum consecutive losses.
Purpose:
- •Stop trading during unstable market conditions.
Daily Drawdown Protection
The bot monitors daily losses for:
- •Individual symbols
- •Entire portfolio
When limits are exceeded:
- •Buying becomes automatically disabled.
Purpose:
- •Prevent large daily account losses.
Total Drawdown Protection
The engine tracks cumulative losses across all trading sessions.
Protection applies to:
- •Individual symbols
- •Entire portfolio
When maximum drawdown is reached:
- •Trading is automatically disabled.
Purpose:
- •Long-term capital preservation and survival during unfavorable market conditions.