Script keeps being removed

 
So I am testing a code for sending orders based on two different StDiv BB. When I run the script it doesn't run on some markets. It shows a notification in Journal tab saying that the script has been removed. This happens only when my specific market conditions are met for the entries I've coded. When these conditions haven't been met, my script does exactly what I've coded it to do. I've went over everything in my script and have checked it all separately and everything is working apart from that orders aren't being sent when they should be.  What causes that?
 
Your topic has been moved to the section: Expert Advisors and Automated Trading — Please consider which section is most appropriate — https://www.mql5.com/en/forum/443428#comment_49114884
 

Scripts are only supposed to be executed once. Do you perhaps mean "Expert Advisors" and not "Scripts"?

If you need help with your code issue, you will need to show your code.

Also show the output to the logs, both the Journal and Experts log.