I have attached 3 scripts that will help you to modify the price, the Stop Loss and Take Profit of a pending order.
Once you have added a pending order to your chart with a SL and a TP use the following scripts:
- DROP_MOVE_PENDING_PRICE.mq4 : If you want to move the price of your pending order you just need to select this script, point the mouse in the place you want to move your new price level and drop.
- DROP_MOVE_PENDING_SL.mq4 : If you want to move the Stop Loss of your pending order you just need to select this script, point the mouse in the place you want to move your new SL level and drop.
- DROP_MOVE_PENDING_TP.mq4 : If you want to move the Take Profit of your pending order you just need to select this script, point the mouse in the place you want to move your new TP level and drop.
MT4 Forex Script Characteristics
Platform: Metatrader 4
Time frames: any.
How to install Screenshot Script in MetaTrader 4 / MT4:
Copy and paste the DROP_DELETE_PENDING.mql4 into the MQL4 Scripts folder of the Metatrader 4 trading platform.
Restart your MetaTrader 4 application (assuming it’s currently open) … or Launch your MetaTrader 4 application
You can access this folder from the top menu as follows:
File > Open Data Folder > MQL4 > Script (paste here)
On the left hand side, look for the “Navigator” window and under the “Common” tab, look into the “Scripts” section
Locate the indicator which you have just downloaded into the folder stated in Step 1
Drag (Click and drag) the Script onto the chart (when you want the task to be performed)
your task should now be executed…