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

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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