Setting pending orders with the mouse.
This script allows you to quickly place pending orders in the trader's trading terminal using the mouse. This greatly simplifies the installation process itself, since you can clearly see where the price is currently and can make the necessary adjustments to the process.
The script for setting pending orders is a fairly convenient tool; it allows you to immediately set not only the order itself, but also the parameters for triggering stop loss and take profit orders on the chart of a currency pair.
Download the script for setting pending orders.
In addition, it is possible to set your preferred parameters in advance, after which the installation will be carried out in just a couple of clicks.
Basic script settings.
Selecting positions - in this window you choose to open only long or only short positions, Long - respectively, only buy orders, Short - only sell orders.
If you select Long and Short, two pending orders in different directions will appear on the chart of the currency pair. Lots – the size of planned transactions in lots; it should be taken into account that if you specify two orders at the same time, then the size must also be adjusted.
Stop-loss – here you can set a stop loss order indicator in advance, which will protect your position from complete loss.
Take-profit – the value of the take profit order, which determines the amount of profit upon reaching which the order will be automatically closed.
Slippage – slippage indicator, if you are working according to the option of market execution of orders, is set in points and displays the permissible deviation from the set trigger price.
In addition to the listed settings, there are a number of other indicators, but they do not have such significance when trading, so if desired, their settings can be left at default.
In general, the script for setting pending orders with the mouse worked quite normally in MetaTrader 4, the main thing is to take into account some nuances, for example, when opening a buy position, the stop loss indicator cannot be greater than the order trigger price, otherwise the script will generate an error.