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
aramabdo
Quote from jay hu

Great to hear that it works. Thank you for answering my question.

Welcome 

Avatar
0
jay hu
Quote from aramabdo

Not a BUG

Works correctly as expected

eurusd_mt5_m5_hedge.set

Great to hear that it works. Thank you for answering my question.

Avatar
0
aramabdo
Quote from jay hu

aramabdo, any update on this hedge topic? 

Not a BUG

Works correctly as expected

eurusd_mt5_m5_hedge.set

Avatar
0
jay hu

aramabdo, any update on this hedge topic? 

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

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

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

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