Forex Robot building is a hobby - an extension of a wider programming hobby but with Forex Robot coding, one that could, if I can find the right strategy, pay for itself one day.
Rob
Added topic OrdersTotal()
I see this code offered to those wanting a count of their Open and Pending orders int num-0;    for(i=OrdersTotal()-1;i>=0;i--)      {       if ((OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==true) &&
Rob
Added topic But will it live up to it in forward testing ?
Taken 2 years and probably about a thousand + different strategies and literally millions and millions of back testing / optimising runs but finally I may have found it :) backtest.png  results uploaded 
Rob
Registered at MQL5.community