can anyone fix this...
Unless your storing additional data, why bother
for(pos = OrdersTotal()-1; pos >= 0 ; pos--) if ( OrderSelect(pos, SELECT_BY_POS) // Only my orders w/ && OrderMagicNumber() == magic.number // my magic number, and && OrderSymbol() == Symbol() ){ // period and symbol
will give you currently open tickets.
If your will be storing additional data, keep the data in arrays, array of order numbers, array of data, etc. at end of start you'll loop through the arrays and write the data. At init, read the file in a loop while(!FileIsEnding()){ read into arrays }
Search persistent storeage.
WHRoeder:
Unless your storing additional data, why bother
Thats easially said. I no nothing about arrarys or how to write them properly.
Unless your storing additional data, why bother
will give you currently open tickets.
If your will be storing additional data, keep the data in arrays, array of order numbers, array of data, etc. at end of start you'll loop through the arrays and write the data. At init, read the file in a loop while(!FileIsEnding()){ read into arrays }
Search persistent storeage.

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
Can someone tel me how to properly store a ticket number to a file. The file should be able to store mulitiple tickets numbers at any one giving time.
Can you also show me then how to read the file to see if the ticket number exists in the file.
thanks in advance. Here is what i have. maysomeone will correct for me..