Complete Pending Orders Grid System
Complete Pending Orders Grid System opens any combinations of Buy Stop, Sell Stop, Buy Limit and Sell Limit pending orders and closes all existing pending orders. You just need to drop this script on the chart of a desired currency pair.
Before placing all pending orders, the input window is opened allowing you to modify all input parameters:
- DeleteAllPendings – if true, then all pending orders (for current currency) will be deleted.
- BuyStop – if true, BuyStop order is opened.
- SellStop – if true, SellStop order is opened.
- BuyLimit – if true, BuyLimit order is opened.
- SellLimit – if true, SellLimit order is opened.
- InitLot – initial lot.
- LotCoeff – if 1, all pending orders will have the same lot size.
- InitStep – difference between two consecutive orders in points.
- StepCoeff – step coefficient.
- NumOfOrders – number of orders.
- Slippage – allowed slippage.
- MagicNum – magic number.
- If DeleteAllPendings=true, the script will be able to delete existing pending orders for the current currency pair only.
- You have to allow automated trading on the "Expert Advisors" tab (Tools->Options).