• Overview
  • Reviews
  • Comments (1)

Stochastics and history bars

The Expert Advisor is based on Stochastic and bars history analysis. As a result, trades are performed when a currency pair is in overbought or oversold state, as well as when a pattern appears similar to the one followed by the price rise or fall. Besides, the EA features ADX indicator to avoid trading during extremely low or high volatility periods. It is also possible to set trading start and end time.


Inputs

  • Lots - lot size (if 0, a lot is calculated based on the percentage of account free margin);
  • Percentage of free money - percentage of free margin to open each new trade (applicable when Lots=0);
  • MaxSpread - maximum allowable spread to open trades (for floating-spread symbols, to avoid opening with a large spread);
  • Magic - unique identifier (use different magic numbers if multiple Expert Advisors run in your terminal);
  • StopLoss - Stop Loss order value;
  • TakeProfit - order closing price at a certain profit target;
  • Stop to breakeven after - move stop loss to breakeven after a specified number of points;
  • Profit by stop-loss - profit based on the specified breakeven;
  • EnableAutoClose - enable automated closure of an order at a reverse signal;
  • History - analyzed history period. The greater the parameter value, the more time it takes to test;
  • DelayBetweenAnalysis - delay between bar analyses (recommended - from 1 to 100 depending on History value);
  • MinBarsLength - minimum length of key bars;
  • MinKeyBars - minimum number of key bars followed by rise or fall;
  • Area - range affecting the search for a key bar (the greater the value, the more key bars are found, recommended - from 5 to 30);
  • CountBarsAfter - number of rising or falling bars in history for defining a key bar (recommended - from 1 to 7);
  • CountBarsBefore - number of bars for memorizing a combination before a key bar (recommended - from 1 to 5);
  • SignalStrength - signal strength (recommended - from 1 to 3);
  • StochLowLevel - Stochastic lower level on the current timeframe;
  • StochHighLevel - Stochastic upper level on the current timeframe;
  • PeriodK - calculation period for the K line of Stochastic indicator on the current timeframe;
  • PeriodD - calculation period for the D line of Stochastic indicator on the current timeframe;
  • Slowing - Stochastic slowing on the current timeframe;
  • MethodMA - Stochastic averaging method on the current timeframe;
  • Timeframe2 - select timeframe for the second Stochastic indicator (if the current one is selected, the indicator is not used);
  • Stoch2LowLevel - Stochastic lower level on the second timeframe;
  • Stoch2HighLevel - Stochastic upper level on the second timeframe;
  • PeriodK2 - calculation period for the K line of Stochastic indicator on the second timeframe;
  • PeriodD2 - calculation period for the D line of Stochastic indicator on the second timeframe;
  • Slowing2 - Stochastic slowing on the second timeframe;
  • AdxPeriod - ADX indicator period;
  • MaxAdxLevel - ADX indicator maximum level;
  • MinAdxLevel - ADX indicator minimum level;
  • OnlyEachNewBar - trade only at a new bar. If enabled, the check for signals and market entry are performed only once per bar. This allows for much faster optimization but affects the result;
  • Trading start hour - trading start hour;
  • Trading end hour - trading end hour.

Detailed tests and settings are to be posted in the Comments.

No reviews