Night
A night scalping EA that trades only during the Asian session (21:00-06:00 server time) using Stochastic oscillator overbought/oversold signals on the M15 timeframe. It opens buy positions when Stochastic is below the oversold level and sell positions when above the overbought level, with fixed stop loss and take profit, and auto-calculated lot sizing based on free margin.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
Not backtested yet — this EA could not be converted automatically.
Strategy analysis
The core strategy combines session trading with mean reversion, operating only during the Asian session (21:00-06:00 server time) to exploit the typically low volatility environment for scalping. Entry conditions are straightforward: buy when the Stochastic main line falls below 30 (oversold) and sell when it rises above 70 (overbought), with trades only placed when no existing position is held on the symbol. Exit conditions rely solely on fixed stop loss of 40 pips (or 400 points for 5-digit brokers) and take profit of 20 pips, with no trailing stop, partial close, or conditional exit mechanism. Position sizing uses a dynamic formula based on free margin: AccountFreeMargin/100000*10, clamped between 0.1 and 5 lots, with normalization adjusted by lot size tier. Money management adjusts SL/TP for 3/5-digit brokers but lacks spread filtering, maximum drawdown limits, or risk-per-trade percentage controls, making the approach simplistic and potentially dangerous under adverse market conditions.
Strengths
- Night session trading effectively exploits the low volatility characteristic of Asian markets, suitable for scalping
- Automatic 3/5-digit price adjustment ensures compatibility with various brokers
- Position check prevents duplicate entries, avoiding overexposure in the same direction
- Lot size is clamped between 0.1 and 5 lots, preventing excessive leverage
Weaknesses
- No spread filter — low liquidity during night sessions can cause wide spreads, making the small TP insufficient to cover trading costs
- Stop loss exceeds take profit (40:20), giving a risk-reward ratio of only 1:2, requiring over 66% win rate to be profitable
- Only checks Stochastic value level without confirmation signals (crossover, multi-TF confirmation), prone to false signals
- Position sizing based on total free margin rather than risk percentage, potentially leading to overleveraging
- No new bar check means trade conditions are evaluated every tick, potentially generating excessive order attempts
Possible improvements
- Add a spread filter to block trading when spread exceeds a proportion of the take profit, preventing entries during wide spread conditions
- Add Stochastic K/D crossover confirmation instead of relying solely on the main line value, improving signal reliability
- Implement new bar detection to evaluate trade conditions only on M15 bar formation, reducing unnecessary computation and order attempts
- Refactor position sizing to risk-based calculation (e.g., risk no more than 1-2% of account balance per trade)
- Add trailing stop or breakeven mechanism to lock in profits when price moves favorably
Risk assessment
Overall risk: Caution
- Night session low liquidity can cause spreads far exceeding the take profit target, making trading costs prohibitive
- Position sizing based on total free margin without risk percentage control, potentially causing overexposure
- No new bar check means every tick evaluates trade conditions, risking anomalous orders during rapid fluctuations
- Poor risk-reward ratio of 1:2 requires high win rate, casting doubt on long-term profitability
- Hardcoded ORDER_FILLING_FOK may be incompatible with some brokers that do not support this fill type
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
StopLoss | 40 | Stop loss in points |
TakeProfit | 20 | Take profit in points, 0 for trailing stop |
Stoch_OverSold | 30 | Stochastic oversold level |
Stoch_OverBought | 70 | Stochastic overbought level |
Lot | 1 | Trade lot (unused, dynamically calculated) |
EA_Magic | 1072010 | EA magic number |
Similar Session Trading EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.