1.replace by opposite position
2.stop loss
My question is why a long position can earn money when it stop loss? (Stop loss is entryprice - X pips )
So i check the EasyLanguage code and run in multichart, it has no chance to close the long position at that price.
I think there is a bug existed in backtest engine, please refer the attached file
SQX close the trade at the same bar but multichart not