Hi, Hanan, there are many events that will stop your cBot, open cTrader Algo, start the cBot and look in the cBot log; this will tell you which setting stopped the robot. Additionally, if you require further assistance, please share your settings here as an uploaded cbotset file.
https://clickalgo.com/smart-grid-index