'ticket' - undeclared identifier

 

in this simple snippet I get the following compilation error:

'ticket' - undeclared identifier

An idea how to resolve?

Improperly formatted code removed by moderator. 

 
Have a look at the documention - there is no field ticket:
 
Gábor Adámy: in this simple snippet I get the following compilation error: 'ticket' - undeclared identifier. An idea how to resolve?

Improperly formatted code removed by moderator. 

Please EDIT your post and use the CODE button (Alt-S) when inserting code.

Code button in editor

Hover your mouse over your post and select "edit" ... 

 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893