Script pending orders at a specified time
Trading using pending orders is quite multifaceted; there are simply a huge number of strategies based on them.
At the same time, the standard capabilities of the metatrader trading terminal only allow you to limit the lifetime of a pending order.
But sometimes, on the contrary, it is required that the order begins to act from a certain time, that is, to delay the placement of a pending order.
This is done in order to allow the price to travel a certain distance, after which open a position at a more favorable price.
You can add a new function to the trading terminal by installing scripts for placing pending Forex orders, which will set Buy Stop and Sell Stop on a certain day and at the right time.
After downloading the script, as usual, add it to the Scripts folder of our terminal, reboot the terminal and begin installing it on the chart.
The main settings are located on the “Output Parameters” tab
• The distance from the current price to orders – that is, in fact, the price of orders being triggered.
• Setting level SL – stop loss parameter
• TP setting level – take profit parameter
• Unique order number
• Order volume
• Time of placing orders
After you have set all the necessary parameters and clicked OK, the script will be displayed in the upper left corner of the chart window:
It is indicated when pending orders will be placed and how much time is left before this event.
Simple, and most importantly, a working tool that slightly expands the capabilities of the trading platform.
Download Script for pending orders at a specified time