Rob / Publications
Forum
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) && ((OrderCloseTime() == 0) && (OrderType() == OP_BUY || OrderType() == OP_SELL || OrderType() ==
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