The script for automatically transferring all open orders on the current pair to break-even with a specified indentation in the paragraphs. It is convenient when trading immediately by a group of orders, or a grid of martingale, when you need to close all orders in plus, without waiting for the closure on Take Profit or Stop Loss.
If you open immediately orders to buy and sell with different, not equal lot, this script itself will pick up the necessary level of break-even and will put all orders corresponding to Tyke Profit and Stop Loss.
A simple, but at the same time very powerful tool for working with a lot of orders.
|Indent||The indentation of break-even in the old paragraphs from the opening price of the order is needed to vary the income of your orders. Can only be positive, the script does not transfer breakeven into a negative zone.|
An example of how the script works:
Let’s take an example with several multi-directional trades. We will open one purchase order with a lot of 0.01 and 2 orders for sale with a lot of 0.01 each:
We know that orders do not localize each other, because the total lot in sales is more than in purchases 2 times. We need to close all 3 trades as soon as the break-even level is reached. Manually calculating Take Profit and Stop Loss for each of the open orders is problematic, but this MT4 script can do it without any problems. We will put a retreat from the level of BU in 1 old point to close all orders with a small profit, and that it was not so offensive to cover everything to zero. All deals have been modified:
To buy installed Stop Loss, because the lot of this order is lower than the total lot for sales and it will have to cover at a loss, and for sales put a common Take Profit, for closing in plus. All, now it remains only to wait if the price reaches our goal and closes all three orders in BU.