Variable A = Fixed/static Variable
Variable B = last bar close
If B is above A after 5 seconds, do this.....C
If B is below A after 5 seconds, do this.... D
If C is already done than don't do C again, If D is already done don't do D again..keep checking every 5 seconds if the states are true or false.
Comment