If your script does not trade depending on the backtest period, something is wrong with the code, possibly with a static or global variable. For finding out, plot or print the signals and check which one has no valid value.