problem listing my orders
for (list=OrdersTotal()-1;list>=0;list--)
like most of the time you are the man of the situation thanks alot :)
here is my problem, I have try to list up my orders for in case my pc shuts down during the night for exemple...
here is what I coded for the listing
tough it dosent seem to operate properly... maybe it's not on init() function I need to set these variables up. anyone haves a clue about it? I hope this is enough info too...
Well, great work! You have helped me to improve my knowledge about this field. Thank you so much for sharing.
__________________
<a href="http://letswatchmovies.org">watch online movies</a>
bool first; init(){ first=true; } start(){ if (first){ first=false; for (list=OrdersTotal()-1;list>0;list--) if ( OrderSelect(list, SELECT_BY_POS) // Only my orders w/ && OrderMagicNumber() == magic.number // my magic number && OrderSymbol() == Symbol() ){ // and my pair. tck = OrderTicket(); ...
- Note the testing of OrderSelect return code.
- You don't need the if(ordersTotal) since the loop will not do anything if there are no open orders.
- I don't know why you need to test the pair and magic numbers. The EA should only be concerned with its own chart and its own orders.
here is my problem, I have try to list up my orders for in case my pc shuts down during the night for exemple...
here is what I coded for the listing
tough it dosent seem to operate properly... maybe it's not on init() function I need to set these variables up. anyone haves a clue about it? I hope this is enough info too...