Hi,
There was no exit on signal event triggered on 31st May 2022. In fact, additional purchase of Bajaj Auto was done on 31st May 2022. So from 17th May to 31st May 2022, strategy bought 32 units.
On 3rd June the exit signal (close < ema(close, timeperiod=50))was triggered and strategy sold entire 32 units. You can verify that as on 30th May (when signal for 31st May was generated), Bajaj Auto did not qualify for exit. But on 2nd June, close went below ema(50) and hence Bajaj Auto was fully exited on 3rd June?
Let us know if we are missing something in our understanding?