• Overview
  • Reviews
  • Comments

Algo Grid

The strategy is based on my template and on a simple deviation from the opening price. It is believed that the price continues its movement in the directions of the greatest deviation. It buys when the price moves up by the specified number of points from the opening price. It sells when the price moves down by the specified number of points from the opening price. This strategy is recommended for use on the M30-H4 timeframes. The EA has been adapted for four- and five-digit quotes. VPS server is recommended.

Expert Parameters

  • Inp_PriceMoved – up/down deviation from the opening price;

Launching the EA

It is recommended to launch the EA on several adjacent currency pairs with the same magical numbers. For example:

  • or other similar linked pairs.

Inp_Multicurrency – if allowed, the EA works with the same magic number on all symbols it is launched on. When a specified profit, drawdown, breakeven or trailing is reached, all orders in the same direction with the same magic number are closed and the trading is started anew.

Advantages of the EA template

  • It is possible to combine different capabilities of the template to modify or supplement the trading strategy;
  • It has the maximum possible functionality that is compatible;
  • All functionality can be easily optimized.

Template parameters

  • Inp_StartTime, Inp_EndTime – time interval, when opening positions is allowed; if 00:00, then not used;
  • Inp_ReverseTrades – if true, positions are opened inversely; buy instead of sell, sell instead of buy;
  • Inp_CloseOnSignal – if true, positions are closed at the opposite signal;
  • Inp_BalanceLots – calculation of the traded lot based on balance. Formula – maximum lot/100*Inp_BalanceLots;
  • Inp_StartLots – initial lot, if Inp_BalanceLots = 0;
  • Inp_PercenValues – if true, the values of stop loss, take profit, breakeven and trailing stop are set as percentages, otherwise in points;
  • Inp_Slippage – maximum slippage;
  • Inp_CloseAllOrders – close portfolio of bi-directional orders;
  • Inp_DiffDirections – allow bi-directional orders;
  • Inp_Multicurrency – consider all orders opened on all symbols in the calculation of stop loss, take profit, breakeven and trailing stop;
  • Inp_StopLoss – stop loss, 0 - not used;
  • Inp_TakeProfit – take profit, 0 - not used;
  • Inp_BreakevenStop – distance the price should pass to activate the position breakeven, 0 - not used;
  • Inp_BreakevenStep – profit in points to be protected by a breakeven;
  • Inp_TrailingStop – distance the price should pass to activate the position trailing, 0 - not used;
  • Inp_TrailingStep – profit value to protect using trailing stop;
  • Inp_MagicNum – magic number, if -1 the EA works with all orders;
  • Inp_EaComment – comment to trades;
  • Inp_DiffLotsByLock – lock the difference in volumes of positions for symbol, 0 - not used;
  • Inp_MaxOrdersSeries – maximum number of orders in the series;
  • Inp_MaxLotsSeries – maximum cumulative lot size of order series;
  • Inp_MaxOpenLots – maximum lot size for opening a trade;
  • Inp_SendOrderLevel – distance from the last open position to allow placing a level;
  • Inp_PlusLot – term of the previous lot size for averaging, 0 - not used;
  • Inp_PlusRatio – lot increase coefficient for averaging, value greater than 1; 0 - not used;
  • Inp_LevelAveraging – step for setting the averaging level, 0 - not used;
  • Inp_MinusLot – subtract from the previous lot for rebuys, 0 - not used;
  • Inp_MinusRatio – lot decrease coefficient for rebuys, value less than 1, 0 - not used;
  • Inp_LevelRebuy – step for setting the rebuy level, 0 - not used;
  • Inp_PauseMinutes – pause in minutes between the modifications of order opening levels, 0 - not used;
  • Inp_Visualization – display the trades history and the current location of levels on the chart;
  • Inp_ModeWithdrawal – mode of funds withdrawal. The EA does not open new trades, it works for closure.
No reviews