Trying to add a closed profit percentage function, but it appears not to work when testing. Line 78 bool hasProfit() is the section in question. Any guidance would be appreciated.
Couldn't seem to post code using SRC, so file attached.
if(OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES))
totalProfit += OrderProfit();
Please enable the necessary setting in your browser, otherwise you will not be able to log in.