I'am a beginner in programming ea's. I start with strategy which open few pending order but after while are too much not actually pendings orders. For now I using a scripts like :
for(int i=OrdersTotal()-1; i>=0; i--)
if (JustCurrentSymbol && Symbol()!=OrderSymbol()) continue;
if(cmd!=OP_BUY && cmd!=OP_SELL && OrderOpenTime()+timeElapsed<=TimeCurrent())
if(result!=TRUE) Print("LastError = ", GetLastError());
but this scripts delete only newest order and hold the most older. How to change this code that before OrderDelete put a FIFO rules?
Thanks for help!
Forum on trading, automated trading systems and testing trading strategies
Please use the SRC button when you post code. Thank you.
This time, I edited it for you.