We recommend:

  1. Home
  2. Scripts
  3. Set orders breakeven – scripts to transfer all open orders into breakeven

Set orders breakeven – scripts to transfer all open orders into breakeven

Scripts for transferring all open orders to breakeven

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.

Script settings:

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.

[download url=”http://www.davinci-fx.com/wp-content/uploads/2021/01/DaVinci-Set-orders-breakeven-script.rar” title=”Download for free”]

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed