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
logic:
ticketnumber of open trade = number of all orders in trading history +1
But you are absolutely right. using loop makes way more sense.
Just use condition and loop. No need to use While.
ticketnumber of open trade = number of all orders in trading history +1
No offense here but the logic fails miserably. You need to think again why.
I have used this sample in MQl4 Book: https://book.mql4.com/samples/expert
It is in pre: MT4 Build 600 code however the structure/process/Logic is still useful.
Not sure if it helps you or not ,