Skip to content
All library documents

Stochastic Crossover EA with Fixed Stops and Opposite-Signal Exits

Article MQL5 code base

Summary

This MetaTrader expert advisor uses stochastic crossovers for entries: it buys when %K crosses above %D and sells when %K crosses below %D. The stated setup is for an H1 chart, with adjustable stochastic periods and slowing. It assigns each trade a fixed lot size of 0.1 and configurable stop-loss and take-profit distances, currently set to 300 points each. Before entering on an opposing crossover, it closes open positions; it also checks for an existing position in the same direction to avoid duplicate entries.

The description outlines configurable controls and basic trade-management behavior, but supplies no backtest results, performance statistics, or detailed rules for handling execution costs and uncertain fills. It says the EA is provided without a performance guarantee and recommends backtesting and demo-account testing before live use. Fixed lot sizing and fixed point-based exits may not reflect account equity, instrument volatility, or changing market conditions, so the stated settings do not establish suitability for a given trader.

Key ideas

  • The EA enters long or short positions when stochastic %K crosses %D in the corresponding direction.
  • Stochastic periods, stop and target distances, and lot size are configurable.
  • The described setup uses a fixed lot size of 0.1 and 300-point stop and target distances.
  • It closes positions before taking an opposing crossover and avoids duplicate same-direction entries.
  • The document reports no performance evidence and advises testing before live trading.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.