Reply

Limit number of orders per symbol to 4

4 replies

force199

Subscriber, bbp_participant, community, 11 replies.

Visit profile

9 years ago #113079

Hi,

 

My EA creates pending orders on the 1 hour chart which is valid for several hours, waiting for it to trigger.

 

However, during volatile market conditions when price is close to the pending order price several orders are opened, sometimes one every minute which is mad.

 

I want to limit the number of orders opened per symbol per day to 4 trades maximum.

 

But there doesn’t seem to be a way of doing this.

 

Is there some way around this problem?

 

Order opened this bar or order opened this hour is not really flexible enough for what I am wanting, I simply want a maximum of 4 trades from each pending order created (using stop order valid for 10 bars).

 

 

0

fxnoob

Subscriber, bbp_participant, community, 4 replies.

Visit profile

9 years ago #128232

hello may u use “order opend today”  or set a variable like ” orders open” from 0 up to 4. and then check them at the open like : if ( all the other stuff  )is true AND “orders open” <= 4 THEN set pendingorder 

 

thats the way i would do 😀 hope u can understand … 

 

good luck 

 

EDIT : may u use if bar is open. THEN every hour only one pending get set.

0

force199

Subscriber, bbp_participant, community, 11 replies.

Visit profile

9 years ago #128233

Thanks for the response, Orders Open Today doesn’t allow you to select a symbol or magic number so it would calculate using every chart that was open rather than the chart of a specific symbol.

 

A crude way I am testing out at the moment is to use “Sum of Closed P/L” in pips. And inputting an approximate expected number of pip losses. This is not ideal but may suffice my needs for the moment.

 

Lets see if anyone comes up with a better idea. I would think a number of trades option would be easy to include in to the software.

0

Mark Fric

Administrator, sq-ultimate, 2 replies.

Visit profile

9 years ago #128253

thanks for suggestion, you are right, it is not difficult to add it there. We’ll add it to the new version.

Mark
StrategyQuant architect

0

force199

Subscriber, bbp_participant, community, 11 replies.

Visit profile

9 years ago #128401

Thanks Mark, I look forward to it.

0

Viewing 4 replies - 1 through 4 (of 4 total)