[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 524

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
Sorry if I'm being obtuse, I'm back with my...
You have already been told ten times that there is no order with the number OrdersTotal(), but each time you come up with the same errors. Replace it with
for ( i=OrdersTotal()-1;i>=0;i--)
Thanks, in general, but that's not the point. See, I also put minus one in the orderselect, it still counts orders from zero. In fact, thank you very much for explaining to me in this thread that orders are counted from zero.
Thanks, in general, but that's not the point. I put minus one in the orderselect, but it still counts orders from zero. In fact, thank you very much for explaining to me in this thread that orders are counted from zero.
1. try to put into words what you are doing here
2. I would like each command to be written as a separate line, I do not want to scroll the screen and a half.
Yes, yes, of course. In that line, I just clear all the orders cleanly. All of them.
In general, as soon as I find at least one order closed at Take Profit, I immediately remove all orders. The orders are found very well reporting to the Alert log ("found MODE_HISTORY");
I can not delete them correctly!
Then pasledny cycle, it deletes all pending and all the orders, logging Alert ("pasledny cycle",i), and then do not decides! It won't delete it, motherfucker!
In the above line, I just clear all orders cleanly.All-in-all.
This is what you want to do =)
Actually there is a wild mix of delete + close orders without any check of their types and price at which they are supposed to do so
Yes, let them delete everything and close it down straight away!
It's quite possible to get banned from trading because of frequent requests
Why don't you want to do it right away?
Yes, I inserted functions OrderTicket( ), OrderLots( ), OrderClosePrice( ), and they, of course, correctly determine the ticket number, number of lots, closing price.