The script for MT4 platform, which helps to set pending orders. When you run the script on the chart, four lines appeare:
- White - opening price;
- Red - StopLoss level;
- Green - TakeProfit level;
- Yellow - end of the order.
The order type is selected depending on the location of the white and red lines:
- If the white line is higher than the red line and higher than the Bid price, set the BUY STOP order;
- If the white line is below the red line, but above the Bid price, set the SELL LIMIT order;
- If the white line is higher than the red line, but below the Ask price, set the BUY LIMIT order;
- If the white line is below the red line and the Ask price, set the SELL STOP order.
Green and yellow lines are optional.