Hey everyone,
I have an EA that manages hidden breakeven orders when a trade is profitable by just one pip (or less). It doesn't actually place sl orders, just watches the trade for you and closes the trade at your pre determined internal breakeven level (one pip above entry). It is useful if you need an instant breakeven stop. It saves me from losing money because most new trades climb above breakeven before suddenly reversing direction and turning negative.
The ea already has a break even function. ie, once the trade is profitable by a pre-determined amount (one pip or less) the ea will move its hidden stop loss to break even so we are not risking anything on the trade any more.
I noticed a problem with the expert adviser 1.9 when opening two or more trades of the same currency. As soon as you open the second trade (which is negative due to opening spread) the ea just manages the first trade and instantly closes the second one which is negative and below the breakeven level of the first trade due to spread. By mistakenly applying the breakeven of the first trade to the second trade, the ea prevents me from opening more than one order per currency at the same time.
I was wondering if anybody who has some mt4 programing skills could make a modification to the ea so it separately manages multiple orders of the same currency with one pip breakeven stop without affecting the other orders.
Here is the EA.
The settings I am focused on are (5 digit broker):
First_Stop_Target: 10
First_Stop: 5
This is telling the EA to set internal breakeven stop to 5 (half of one pip) when price reaches 10 (one pip of profit).
Cheers,
wheelbarrow
I have an EA that manages hidden breakeven orders when a trade is profitable by just one pip (or less). It doesn't actually place sl orders, just watches the trade for you and closes the trade at your pre determined internal breakeven level (one pip above entry). It is useful if you need an instant breakeven stop. It saves me from losing money because most new trades climb above breakeven before suddenly reversing direction and turning negative.
The ea already has a break even function. ie, once the trade is profitable by a pre-determined amount (one pip or less) the ea will move its hidden stop loss to break even so we are not risking anything on the trade any more.
I noticed a problem with the expert adviser 1.9 when opening two or more trades of the same currency. As soon as you open the second trade (which is negative due to opening spread) the ea just manages the first trade and instantly closes the second one which is negative and below the breakeven level of the first trade due to spread. By mistakenly applying the breakeven of the first trade to the second trade, the ea prevents me from opening more than one order per currency at the same time.
I was wondering if anybody who has some mt4 programing skills could make a modification to the ea so it separately manages multiple orders of the same currency with one pip breakeven stop without affecting the other orders.
Here is the EA.
The settings I am focused on are (5 digit broker):
First_Stop_Target: 10
First_Stop: 5
This is telling the EA to set internal breakeven stop to 5 (half of one pip) when price reaches 10 (one pip of profit).
Cheers,
wheelbarrow
Attached File(s)
MTP_1.9.mq4
12 KB
|
959 downloads