Luvaha / Publications
Forum
Test is really slow
Hello, After I added this code my backtest got REALLY slow to the point where it crashes after a few months... Any ideas on how to fix this. void CloseAllTrades() { for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i++) { int ticket = PositionGetTicket (i); trade.PositionClose(ticket);