• Overview
  • Reviews
  • Comments

Buy and Hold

This is a grid Expert Advisor. It employs an algorithm for calculating the location of potential price reversals. At a new bar, it calculates how many candlesticks have exceeded the previous High, and how many candlesticks have been registered below the previous Low. Then it calculates the ratio between them. If there have been more higher candlesticks, it opens a buy deal. If there have been more candlesticks with a lower low, a sell deal is opened. The High and Low are determined throughout the specified period up to the calculation candlestick.

The orders grid is adaptive, only market orders are used in it. If the price has moved to the opposite side of the open order for a distance equal to OrderOpenStop + OrderOpenStep, the virtual level of opening a new order is set. If the price continues moving in the opposite direction from the open order, the previously set order opening level is trailed after the price. If the price touches or crosses a given level, a deal is opened. This achieves the most profitable price for opening positions in the order grid. The trading lot in the order grid is calculated on the basis of a given lot per 1000 units of the base currency multiplied by a factor or with a given summary lot.

Virtual trailing stop, stop loss and take profit can be set in pips, in the deposit currency or as a percentage of the balance. Depending on the settings, different orders may be opened for diversifying risks. Their closure can be either an oppositely directed or unidirectional basket of orders.

Work timeframe - H1. The minimum deposit per 0.01 starting lot is 1000 units of the base currency.


Most Relevant Parameters

  • Period - the number of candles for analyzing and finding the potential price reversals;
  • Level - the number of candles exceeding high/low in the specified period;
  • Shadow - consider High/Low or only Open/Close prices;
  • LotsFor1000 - initial lot size per 1000 units of base currency.
  • LotMultiplier - lot multiplier for subsequent orders; if 1, does not change;
  • AddLot - additional lot for subsequent orders; if 1, does not change;
  • TradingMethod - trading method:
    • Unidirectional - trading is performed in one direction.
    • Multidirectional - trading can be performed in two directions simultaneously.
  • OrderOpenStop - distance from the last opened order to place the order grid.
  • OrderOpenStep - distance from the current price to set the level for opening a new order in the order grid.
  • LevelsMethod - take profit/stop loss placement method:
    • Unidirectional - separate, for the basket of unidirectional orders.
    • Multidirectional - common, for the basket of oppositely directed orders.
  • LevelsMode - select take profit/stop loss method:
    • Pips - in pips.
    • Money - in the deposit currency.
    • Percent - in balance %.
  • StopLoss - stop loss; not used if -1.
  • TakeProfit - take profit; not used if -1.
  • TrailingMethod - trailing stop operation method:
    • Unidirectional - close the basket of unidirectional orders.
    • Multidirectional - close the basket of oppositely directed orders.
  • TrailingMode - select the trailing stop mode:
    • Pips - in pips.
    • Money - in the deposit currency.
    • Percent - in balance %.
  • TrailingStop - trailing stop distance.
  • TrailingStep - trailing step.
  • MagicNumber - EA ID, if -1 the EA will work with all orders.
  • Comment - comment to trades.
No reviews