Activate and deactivate the execution of a robot as needed by acting on the VPS


I bought an excellent mt4 expert, it works very well in the moments in which the trend is not very directional but when there are certain periods with very strong trand in a certain and constant direction it must be stopped otherwise it goes into OTM.
I would like to know if there is a way to stop the VPS using a 1/0 command or true / false generated with a expert that I wrote and which measures the duration and intensity of the trend produced in the form of a .txt file.
The idea is to stop the VPS in the OTM periods and restart it automatically when the trend returns to the statistical values considered normal.
Thanks to those who explain to me how I can do it