The strategy doens't give a thing on the rules, it just seem to take entries at will

I have created an indicator using the exact same code than the strategy - only that I have changed Buy/SellShort to Plot. The results are the following: There are a lot more potential signals like you can see in the screenshot below and the one where the strategy enters is not a valid one!
Please advise how I can overcome this strange habit.
Thank you,
Chris