• Información general
  • Comentarios
  • Discusión


The strategy is based on my own template, it utilizes the Stochastic indicator. It buys when the lines are below a predetermined level, and the signal line crosses the main one upwards; it sells when the lines are above a predetermined level and the signal line crosses the main downwards. The EA has been adapted for four- and five-digit quotes. VPS server is recommended. Before launching the EA on a real trading account, I recommend checking its parameters in the strategy tester using 99.90% quality quotes at least over the last year. Should you need my help, please PM me.

Parameters of the Expert Advisor:

  • Inp_Kperiod – K line period;
  • Inp_Dperiod – D line period;
  • Inp_Slowing – slowing value;
  • Inp_UpLevel, Inp_DnLevel – upper and lower levels;

The EA Template Advantages

  • You can combine different template possibilities for modifying or expanding a trading strategy;
  • Provides the maximum possible compatible functionality;
  • Intuitive names of input parameters;
  • All functions are easy to optimize.

Template Parameters

  • Inp_StartTime, Inp_EndTime – the EA is allowed top open positions in the specified time interval, not used if set to 00:00;
  • Inp_ReverseTrades – if true, reverse positions will be opened, i.e. sell instead of by and vice versa;
  • Inp_CloseOnSignal – if true, positions will be closed upon opposite signals;
  • Inp_BalanceLots – calculation of lot based on the balance value. Formula – max lot/100*Inp_BalanceLots;
  • Inp_StartLots – initial lot if Inp_BalanceLots = 0;
  • Inp_PercenValues – when true, the values of stop loss, take profit, breakeven and trailing are set in %, otherwise in points;
  • Inp_Slippage – maximum allowable slippage;
  • Inp_CloseAllOrders – close a portfolio of bi-directional orders;
  • Inp_DiffDirections – allow oppositely directed orders;
  • Inp_Multicurrency – take into account all open orders of all symbols when calculating stop loss, take profit, breakeven and trailing stop;
  • Inp_StopLoss – stop loss, not used if 0;
  • Inp_TakeProfit – take profit, not used if 0;
  • Inp_BreakevenStop – the distance that the price should move for the breakeven level, not used if 0;
  • Inp_BreakevenStep – profit in points to protect by breakeven;
  • Inp_TrailingStop – the distance that the price should move for the position trailing, not used if 0;
  • Inp_TrailingStep – profit in points to protect by trailing stop;
  • Inp_MagicNum – magic number. If -1, it works with all orders;
  • Inp_EaComment – comment to trades;
  • Inp_DiffLotsByLock – lock the volume difference of positions of a symbol, not used if 0;
  • Inp_MaxOrdersSeries – maximum number of orders in a series;
  • Inp_MaxLotsSeries – maximum total lot of a series of orders;
  • Inp_MaxOpenLots – the maximum allowable lot of one trade;
  • Inp_SendOrderLevel – distance from the last opened position to allow placement of a pending order;
  • Inp_PlusLot – component of the previous lot for averaging, not used if 0;
  • Inp_PlusRatio – lot multiplier for averaging, a value greater than 1, not used if 0;
  • Inp_LevelAveraging – averaging level setting step, not used if 0;
  • Inp_MinusLot – subtract from the previous lot for additional lot, not used if 0;
  • Inp_MinusRatio – lot decrease ratio for additional lot, a value below 1, not used if 0;
  • Inp_LevelRebuy – step for setting the rebuy level, not used if 0;
  • Inp_PauseMinutes – a pause in minutes between modifications of order opening levels, not used if 0;
  • Inp_Visualization – show the history of trades and the current position of levels on the chart;
  • Inp_ModeWithdrawal – withdrawal mode. The Expert Advisor does not open new trades, it closes positions.
No hay comentarios