@haikel You can just check previous candle level is <> recent, quite rudimentary but could work if fits your requirements, if you check the distance on different MA's then when there close range is likely unless it is crossing or changing. In HERE is something I was doing recently, there should be enough to find all you need.