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
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).

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
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

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.

I want open hedges by signal when using "Open hedge on" + AllowHedge_RightAfterMain=true

When the AllowHedge_RightAfterMain=false, the "Open hedge on" by signal work, but when it is true it does not open any position.

Those are the screenshots:

Image 4029


Image 4025

In other words:

In those screenshots when I set AllowHedge_RightAfterMain=false, it is open hedge by Cross IN - Stochastic

And when AllowHedge_RightAfterMain=true, no hedge position opens at all.

This is the st an tester ini:

TESTSET.set

tester_ini.ini

Avatar
0
Andrey Khatimlianskyi
Quote from aramabdo

I want open hedges by signal when using "Open hedge on" + AllowHedge_RightAfterMain=true

When the AllowHedge_RightAfterMain=false, the "Open hedge on" by signal work, but when it is true it does not open any position.

Those are the screenshots:

Image 4029


Image 4025

In other words:

In those screenshots when I set AllowHedge_RightAfterMain=false, it is open hedge by Cross IN - Stochastic

And when AllowHedge_RightAfterMain=true, no hedge position opens at all.

This is the st an tester ini:

TESTSET.set

tester_ini.ini

RightAfterMain=true means that hedge can be opened during 60 seconds after main order. If there is no signal for hedge, it will not be opened.

Avatar
0
aramabdo
Quote from Andrey Khatimlianskyi

RightAfterMain=true means that hedge can be opened during 60 seconds after main order. If there is no signal for hedge, it will not be opened.

You mean (during 60 second) it will not open order after 60 second?

Avatar
1
Andrey Khatimlianskyi
Quote from aramabdo

You mean (during 60 second) it will not open order after 60 second?

Exactly. Only Right after the main order, as it said in parameter name.

Avatar
0
aramabdo
Quote from Andrey Khatimlianskyi

Exactly. Only Right after the main order, as it said in parameter name.

I think it should be other option to allow hedge while main series is active all time, not only during 60 second.

Is this possible in currently version?

Avatar
1
Andrey Khatimlianskyi
Quote from aramabdo

I think it should be other option to allow hedge while main series is active all time, not only during 60 second.

Is this possible in currently version?

Use RightAfterMain=false


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

Show me these points on your chart.

Avatar
0
jay hu

aramabdo, any update on this hedge topic?