My function prints the order position where i expect it to print the order ticket number. I followed the format from https://docs.mql4.com/trading/orderticket . It appears it should print the ticket number. Can one of my coding heros here please help me understand?
# Property Strict is not in my EA code. is that the problem? I do not see any reason that should affect it.
bool CheckIfExtremeOrderExists ()
int i = OrdersTotal() -1;
Print("Starting CheckIfExtremeOrderExists () function….");
for(; i >=0; i--)
ticketnumber = OrderTicket();
Print("selected ticket number to check if past threshold = " + ticketnumber);
My function prints the order position where i expect it to print the order ticket number. . . .
Thirteen, Yes....... ooh i think i see that IS the ticket number in the tester,...... Thank you! im a new programmer and these little things i run into still.
To add comments, please log in or register