Help with counting orders

 

hi

I need help with a little bit of coding

I wish to count the orders opened and closed WITHIN a given time frame.

for example the orders opened and closed in a 24 hr period using a 1 hour chart

help appreciated

 
Sammasati wrote >>

hi

I need help with a little bit of coding

I wish to count the orders opened and closed WITHIN a given time frame.

for example the orders opened and closed in a 24 hr period using a 1 hour chart

help appreciated

You need to loop for the orders with OrderSelect(i, SELECT_BY_POS, MODE_TRADES); and also with OrderSelect(i, SELECT_BY_POS, MODE_HISTORY);

Once you selectet the Order you can Compare the order Opentime or Order Closetime with your 24 hours.

Look in the https://docs.mql4.com//

 

can you help a bit more?

not logic but coding?

 
EADeveloper wrote >>

You need to loop for the orders with OrderSelect(i, SELECT_BY_POS, MODE_TRADES); and also with OrderSelect(i, SELECT_BY_POS, MODE_HISTORY);

Once you selectet the Order you can Compare the order Opentime or Order Closetime with your 24 hours.

Look in the https://docs.mql4.com//

I guess no help uhhh

any way Its bee solved

thanks

Reason: