This completed pending order grid system opens any combination of pending orders (Buy Stop, Sell Stop, Buy Limit and Sell Limit) and closes all existing pending orders.
You will be able to move the script according to the schedule. It will pick up the initial price for the first position in the grid from the point where you leave it. Usually such a point is located in the area of support/resistance lines.
Before placing pending orders, the input parameters window opens, in which they can be edited:
- DeleteAllPendings – if true, all pending orders (for the current currency) are deleted. (Pending orders will not be created!);
- Order_Type – selection of the desired type of pending orders (Buy Stop, Sell Stop, Buy Limit or Sell Limit);
- InitLotSize – the size of the initial lot;
- LotCoeff – with a value of 1, all pending orders will have the same lot size;
- NumOfOrders – the number of pending orders to be placed on the chart;
- If DeleteAllPendings=true, the script will be able to delete existing pending orders only for the current currency pair.
- It is necessary to allow automatic trading in the “Expert Advisors” tab (Tools->Options).
- Move the script to the acceptable area of the initial price to open the first position in the grid on the chart. If an incorrect price is entered or it is too close to the current price, a comment appears in the upper left corner of the chart: “Startingprice is not correct” (“Incorrect starting price”).