Good day,
I am trying to code an indicator that will take support and resistance into account. I am struggling with the minimum distance from support or resistance part. Let’s say the support or resistance will be given by the 30 SMA and 100 SMA. The indicator should only draw instruction if the support or resistance ( 30 and 100 averages) is further away than 10 points from the current candle’s open price. Is there a way to do this and always get a positive value in points?
I hope I made enough sense in my question.
Thank you,
Kind Regards