Simple_Grid is the simplest "grid" Expert Advisor. This Expert Advisor sets a grid of pending orders (eitheronly stop oronly limit orders) in both directions from the current price at a distance specified in the input parameters. The Expert Advisor has no Stop Loss. In the period from 23:30 all pending orders that have not been "activated"are deleted, and a new grid of pending orders is set only after 4:00.

In the input parameters of the Expert Advisor there is an opportunity to set:

  1. Pending orders grid step
  2. Distance from the current price to the first grid order
  3. Number of orders in one direction
  4. Select the type of pending orders (eitheronly stop orders oronly limit orders).
  5. Size of expected profit (Take Profit)
  6. Fixed lot size
  7. Magic number of the Expert Advisor

ATTENTION!!! This Expert Advisoris not intended for trading on a real account and making profit!!!! The Expert Advisor was written by me while studying MQL5 programming language, now it is a little stylised (unnecessary comments are removed) and is intended only for placement in CodeBase.