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 use int to declare
int Buy_Ticket;
and anything returns not positive, always considered failed. It is because we want to get the ticket number, not bool statement.I use int to declare
and anything returns not positive, always considered failed. It is because we want to get the ticket number, not bool statement.What do you mean by anything returns not positive? The logic behind my original coding with:
was that all successful OrderSend() should return ticket no. > 0, thus bool Buy_Ticket will be true. To my understanding, it's basically the same treatment as:
Is that what you're trying to say?
Yes. That one.
IMO both method stated in my previous post works the same, as supported by my test results here. However I'm still learning to how code better while working on my trading skills.