you have to loop through all the closed orders and check each for its symbol and close time...take the one that matches Symbol() and has the latest close time.
Maybe someone can post the code to do this. It should be included natively in the MQL4.
Actaully, there are a lot of functions that are useful and not included in MQL4. Perhaps someone can create a "standard library" for mql4. I know there is stdlib.mq4, but perhaps someone can head-up making this library contain actually useful functions.
Maybe someone can post the code to do this. It should be included natively in the MQL4.
Actaully, there are a lot of functions that are useful and not included in MQL4. Perhaps someone can create a "standard library" for mql4. I know there is stdlib.mq4, but perhaps someone can head-up making this library contain actually useful functions.
Thanks GT very much for your help! I agree that a standard library would be very useful. Especially for those of us amateur coders (like myself).
If only one could buy more than 24 hours in a day.
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
Thanks,
JS