hi,
I tried to write a screener to find stocks which the current high is equal to or very close to 200 simple moving average. but the results are so off:
the attached is screenshot of one of the results that is not matching my code.
thank you
ma= Average[200](close)
c1= ma-high <= ma * 0.95
screener [c1]
JSParticipant
Veteran
Hi Rob,
If you want to use 5% of the MA as the maximum distance between (MA-High) then the code is:
C1 = ma – High <= ma * 0.05
Or better:
C1 = Abs (ma – High) <= ma * 0.05