BuyStop and SellStop Buttons
BuyStop and SellStop Buttons opens any combination of Buy Stop and Sell Stop pending orders and closes all existing pending orders.
If boolSL = true, then the EA will add a Stop Loss value to all pending orders.
If boolTP = true, then the EA will add a Take Profit value to all pending orders.
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 the current currency) can be deleted.
- BuyStopP; if true, then Buy Stop orders can be opened.
- SellStopP; if true, then Sell Stop orders can be opened.
- boolTP; if true, then Take Profit will be placed for each position.
- boolSL; if true, then Stop Loss will be placed for each position.
- Lotsize; initial lot size.
- GridStep; number of points between all pending orders.
- You have to allow automated trading on the Expert Advisors tab (Tools->Options).