for (list=OrdersTotal()-1;list>=0;list--)
like most of the time you are the man of the situation thanks alot :)
liquidd:
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>
I'm not sure that doing that in init is valid. There are some things (history for one) that isn't setup yet during init. You might want
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.
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
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...