@wafa Are you using moving averages? Then you can compare values from candle ID 0 to a specific previous one. Then you can be sure that distance is hit for that period of time.