You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm trying to run totals on the closed trade history for all orders that opened after a certain datetime.
I thought I would save program cycles by working backwards through the history, starting from the most recent closed trade and going backwards, like this:
The problem is that it seems that the order of the trades in the history is something different than the ticket number or the order open time because I'm breaking out of the for loop before I've analyzed all the trades I want.
Have I made a mistake here or is the only way to do this to cycle through ALL of the trade history?
Thank you very much,
Christian