Impossible to give you a definitive answer without seeing your script. There are some very clever people on this forum, but no mind readers as far as I know. Having said that, you can clearly see that your script is taking very different trades and therefore something must be significantly different.