In my experience bots do the same on backtest as they do live, the only way this changes is when your broker is committing the action diffract to backtest. So to fix this you will need to investigate where the discrepancy lies.
Following link have all the details. As your input will handle it all provided you have selected the favorable timeframe, actually you won't need to worry about that.
Hello,
here is one possibility. Completed bull candle bodies and bear candle bodies above the SMA 90 are counted. For verification, the counter values are written to the log during visualization.
You could so if "this" happens set a flag so "that" happens... probably easier to use the on trade tab... trade closed check why... do "that"... if you say what you want to happen I will tell you the blocks to use.
try saving the SL price under opening the trade, then in a condition check if SL price is (different) != to the variable price, pass once and send the notification, reset the pass once block when trade closes.