The Expert Advisor sets the specified order grid depending on orderType value:
- 2: BuyLimit
- 3: SellLimit
- 4: BuyStop
- 5: SellStop
- 6: BuyStop - BuyLimit
- 7: SellStop - SellLimit
- 8: BuyStop - SellStop
- 9: BuyLimit - SellLimit
- LotSize - lot size.
- TP - take profit.
- SL - stop loss.
- CountOrders - number of opened orders in each direction.
- MagicNumber - magic number.
- FirstShift - distance from the current price, at which orders are to be placed.
- SecondShift - distance between placed orders.
- RepeatMode - responsible for the re-opening of orders and a shift grid.
The trading robot works with four- and five-digit quotes.