Hello
what im trying to do is simply make a traders assistant ea
when its reading open orders its supposed to print the order it found but its not showing anything but a 0 or "" (blank)
Could somebody fix my code?
Perhaps it found an OP_BUY with no Magic Number and no comment ?
Please copy and paste the output from the log file here . . .
Perhaps it found an OP_BUY with no Magic Number and no comment ?
Please copy and paste the output from the log file here . . .
2013.10.02 04:59:48 TradersAssistant USDCHF,M15: Order 0, OrderMagicOrder 0, Comment ~
open order is buy 0.10 usdchf noSL noTP
now i had added
Print("Open Orders: "+ordersopen);
and its not showing any orders of the symbol
2013.10.02 04:59:48 TradersAssistant USDCHF,M15: Order 0, OrderMagicOrder 0, Comment ~
open order is buy 0.10 usdchf noSL noTP
OK, that output is correct . . . OP_BUY is 0, no Magic Number is 0 and no comment is ""
now i had added
Print("Open Orders: "+ordersopen);
and its not showing any orders of the symbol
OK, that output is correct . . . OP_BUY is 0, no Magic Number is 0 and no comment is ""
Added where in the code ? you have to add it at the right place . . . ordersopen isn't a static . . .
after order pooling
see
Perhaps the MagicNumber doesn't match, print the Magic Number that the order has when you have selected it . . .
By the way, you really need to read this: What are Function return values ? How do I use them ?
and this: Loops and Closing or Deleting Orders
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
what im trying to do is simply make a traders assistant ea
when its reading open orders its supposed to print the order it found but its not showing anything but a 0 or "" (blank)
Could somebody fix my code?