You're selecting by ticket but using index values.
Learn the basics, read the book.
cryptex:
i wrote this small EA to modify orders. everytime i launch it, the error "invalid ticket for ordermodify" pops up. can someone please guide me where am i going wrong. :( i am really not able to understand how to use the order select function. any insight would be helpful :)
Is i also your ticketnumber...... if you select by ticket
ubzen:
You're selecting by ticket but using index values.
Learn the basics, read the book.
have read it quite a few times. i still dont understand how orderselect function works :(

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 wrote this small EA to modify orders. everytime i launch it, the error "invalid ticket for ordermodify" pops up. can someone please guide me where am i going wrong. :( i am really not able to understand how to use the order select function. any insight would be helpful :)