Automatic closing of all profitable positions

This script allows you to automatically close all profitable positions in your trading terminal, although orders are closed only when a certain level of profit in points is reached.

That is, you can’t just click the mouse and close all profitable trades, it’s essentially a take profit , but only with more options and advanced settings.

It can be used if there is a fast trend in the market and you physically simply do not have time to manage orders

For example, there is an upward trend, we open a buy position, the trend persists, profit continues to grow, then we open another order, and in the script settings we specify profit of 10 points.

As soon as the price reaches the desired value, one order will be closed, followed by another.

RECOMMENDED BROKER
the best choice at the moment

This option is suitable if you are working on a position consolidation strategy.

Setup.

Setting up this script is quite simple and has several parameters:

Positions – close all positions regardless of direction, close only short ones or only long ones.

Allow the advisor to trade – you should check the box here after each order is closed, otherwise the script will not work.

Profit – the amount of profit in points, after which the closing will occur.

setting up a script for closing profitable orders

In general, it is a rather convenient tool, but you need to get used to its operation; when testing in metatrader 4 it worked fine.

Download the script for closing profitable positions.

Joomla templates by a4joomla