Experts: Hedge any positions

 

Hedge any positions:

Opening an opposite position when reaching a profit of N pips

Author: Vladimir Karputov

 

Hi Vladimir.

Sorry for the dumb question but do you have this one for MT4?

Warm Regards

Anthony

 
SunnyCoast :

Hi Vladimir.

Sorry for the dumb question but do you have this one for MT4?

Warm Regards

Anthony

I'm sorry you :)

More than seven years ago I gave up writing the code for the old terminal.

 
hi vladimir, i give a try to ur ea im testing it with 0.01 lotsize but it locks at 0.32 lot and do not hedge anymore what should i do
 
Nazli Yildirim :
hi vladimir, i give a try to ur ea im testing it with 0.01 lotsize but it locks at 0.32 lot and do not hedge anymore what should i do

Read the messages in the Journal tab of the terminal.

 
i will check it when im on pc. is it possible to make this ea for making hedge also have profit n points?
 
Nazli Yildirim:
i will check it when im on pc. is it possible to make this ea for making hedge also have profit n points?

No, only: "Opening an opposite position when reaching a profit of N pips"

 
Vladimir Karputov:

No, only: "Opening an opposite position when reaching a profit of N pips"

N means negative right? if not using lot incremental it can be usefull for stop bleeding
 
Nazli Yildirim:
N means negative right? if not using lot incremental it can be usefull for stop bleeding

As soon as a position (opened by another EA or manually) features a loss exceeding or equal to Losing, an opposite position is opened. The volume of the opened position is calculated considering Lot coefficient.

[Deleted]  
Good afternoon my friend...
Firstly I would like to congratulate you for the indicators and Open Source EA that you have made available, they are incredible.
I accessed an EA made by you, and I am using it as a basis for mine, but I have observed "irregular" behaviour and I am not able to correct it ... could you help me?

What happens is that in some situations, he opens a duplicate hedge position, suppose the following;
-I set the distance to 5 pips and a coefficient of 2
-I open a BUY position with lot 0.01
-The price drops and the EA opens a position of 0.02
-The price goes up again and the EA opens two positions of 0.04 (total of 0.08)

I believe this is some kind of delay from the broker or something, but I am not managing to get around this problem, which occurs few times and in some cases only.

Would you help me?
Hedge any positions
Hedge any positions
  • www.mql5.com
The EA tracks all positions regardless of the symbol or magic number. As soon as a position (opened by another EA or manually) features a loss exceeding or equal to Losing , an opposite position is opened. The volume...
 
rmca :
Good afternoon my friend...
Firstly I would like to congratulate you for the indicators and Open Source EA that you have made available, they are incredible.
I accessed an EA made by you, and I am using it as a basis for mine, but I have observed "irregular" behaviour and I am not able to correct it ... could you help me?

What happens is that in some situations, he opens a duplicate hedge position, suppose the following;
-I set the distance to 5 pips and a coefficient of 2
-I open a BUY position with lot 0.01
-The price drops and the EA opens a position of 0.02
-The price goes up again and the EA opens two positions of 0.04 (total of 0.08)

I believe this is some kind of delay from the broker or something, but I am not managing to get around this problem, which occurs few times and in some cases only.

Would you help me?

I don't think anything can be done in this case - it's not a very perfect strategy.