New Hedge Mode opens infinity positions

Avatar
  • updated
  • Not a bug

I tried the new hedge mode with some basic test:

1- When the signal is active with (open hedge on) it is open positions.

2-  When enable "Allow hedge only right after main position open" looks like not working.

CP v2.50.6 MT5

Here is the details and a video:

NewHedgeVideo.mp4

NewHedgeSet.set

NewHedgeINI.ini

Avatar
0
Andrey Khatimlianskyi
Quote from aramabdo

AllowHedge_RightAfterMain=true

Of course in the video I set it to true  at (video time 1:29).

Now I've taken all of your views into consideration but still no hedge opens when set to AllowHedge_RightAfterMain=true.

Which result do you want to achieve? When do you want to open hedge?

Try AllowHedge_RightAfterMain=true and AllowHedge_OnNewBarOnly=true, I guess this is what you want.

Avatar
0
aramabdo
Quote from Andrey Khatimlianskyi

Thank you for your bug-report!

But this is not a bug, EA works exactly like you set.

If you want to open trade just after the main trade, set AllowHedge_RightAfterMain=true.

If you want to open only 1 trade per bar, set AllowHedge_OnNewBarOnly=true

If you want to open hedge on every Oscillator overbought event, use Cross In or Cross Out mode (not Inside zone that means permanents signal all time indicator is in zone).

AllowHedge_RightAfterMain=true

Of course in the video I set it to true  at (video time 1:29).

Now I've taken all of your views into consideration but still no hedge opens when set to AllowHedge_RightAfterMain=true.

Avatar
1
Andrey Khatimlianskyi
  • Not a bug

Thank you for your bug-report!

But this is not a bug, EA works exactly like you set.

If you want to open trade just after the main trade, set AllowHedge_RightAfterMain=true.

If you want to open only 1 trade per bar, set AllowHedge_OnNewBarOnly=true

If you want to open hedge on every Oscillator overbought event, use Cross In or Cross Out mode (not Inside zone that means permanents signal all time indicator is in zone).