Pipsing Close on DROP script for MetaTrader 4

The script closes any position using the Drag’n’Drop method,
i.e. the method of “drag the script with the mouse and drop it on the order lines”.

The closing of a position will be performed just at the moment of releasing the script.

Take the script with the mouse and wait for the favorable moment not releasing the button.

The edge of the mouse cursor points the order line with a clearance.

The size of the clearance is specified by the Region parameter.

The script closes all types of orders and deletes the pending orders.

The open orders are closed first, then comes the limits’ turn.

The operation of the script is limited with the predefined region.

The script has two modes:

а) closing only one closest order, the ALL_on_region parameter is set =0;

b) closing of all orders that are within the envelope of the mouse pointer +/- Region.

the ALL_on_region parameter =1;

For the accurate choice of the closest order from many ones the Region should not be wide. It is enough to set it to 10 on the minute charts.

If that value is specified you can close only the positions which lines are visible on the screen.

The script can close all positions if you specify a value that is certainly greater than the trading range,

for example, if Region=3000, then all orders will be closed because

the range of searching the orders is specified as +/-3000 points.

If a DC refuses to close an order the attempts with the new prices will be repeated as much as specified number of repetiotions Repetiotions=6.

For example, if the price is at the distance of the freeze level when a DC refuses to close the order, the new attempt

will be performed with the new price.

If the price is within the freeze level the script doesn’t refuse to close the order for the following reasons: the price at the closing moment + the gap may appear to be within the permitted range.

If the order is already closed by the StopLoss or TakeProfit the attempts are stopped.

You can modify the parameters of the script only via the MetaEditor.

For the sake of clarity the modifiable parameters are marked as external.

Free Download

Pipsing Close on DROP script for MetaTrader 4

MT4 Forex Robot Characteristics

Platform: Metatrader 4

Type: Script

Time frames: any.

How to install Screenshot Script in MetaTrader 4 / MT4:

Copy and paste the Pipsing_CLOSE_on_DROP.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…

Leave a Comment