This expert deals on stock CFDs. It will be necessary to add an external variable (expressed in minutes). We look if the conditions were respected there x minutes, if the conditions were not respected then we do not pass the order. If the conditions were respected then we pass the order. I have a WORD document with a screenshot and an explanation of an example.
I would be able to add a second condition on the same job (always a variable in minutes) according to the results that I will have with this new condition