I am getting too many alerts and below is a simple test harness to demonstrate this behaviour.
//@version=4
study("Alert Condition Test Harness")