22.03.2018Futures trading for beginners
SendPendingOrder - Script for MetaTrader 4
TypeScripts PlatformMT4 Version10 Date created27 April 2016 Date updated19 August 2017
Formatmq4 Size21.2Kb Downloads256 Rating
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.