Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | EA Stochastic

Idea by: Sergey.

MQL5 code by: Vladimir Karputov.

The EA trades based on indicator Stochastic. Take Profit and Stop Loss levels can be disabled (the value "0" is set in properties). The size of a position can be set manually (the EA will trade with a permanent lot size), or the lot size can be calculated automatically (as the risk percentage per trade).

Input parameters

  • Stop Loss - Stop Loss;
  • Take Profit - Take Profit;
  • Trailing Stop - trailing;
  • Trailing Step - trailing step;
  • Lots - position size is permanent, "Risk" must be equal to zero;
  • Risk - position size is calculated automatically in risk percents per trade, and "Lots" must be equal to zero;
  • Stochastic: K-period - K-period (number of bars for calculations);
  • Stochastic: D-period - D-period (initial smoothing period);
  • Stochastic: final smoothing - final smoothing;
  • Stochastic: type of smoothing - smoothing type;
  • Stochastic: stochastic calculation method - type of prices;
  • Stochastic signal (level UP) - (upper) signal line of stochastic;
  • Stochastic signal (level DOWN) - (lower) signal line of stochastic;
  • Compared bar - number of the bar, which the zeroth bar is compared to;
  • magic number - unique identifier for the EA.

Example of EA launch on EURUSD,M15:

MetaTrader Experts, Indicators, Scripts and Libraries

20881

Best MetaTrader Indicators + Profitable Expert Advisors