ZacParticipant
Average
Hi,
I would like to express the distance between a short-term MA and long-term MA as a number of ATR multiples. I have made a start below. I would really appreciate some help in refining things further.
1/ It would be great to have the stocks displayed in descending order (so the stocks where the gap is the biggest ATR multiple is shown first)
2/ I would like to see the ATR multiple if possible
3/ It is probably wise to also add a volume filter (I can probably tackle that bit but just thought of it as I was typing)
I’ve had a good look around to see if there is any code to repurpose. I can’t seem to find something applicable. Does anyone have any ideas/suggestions?
Thanks in advance, Zac.
// Number of ATR multiples to cover distance between 10MA and 250MA
TIMEFRAME (DAILY)
ATR = AverageTrueRange [20] (close)
MA10 = Average [10] (close)
MA250 = Average [250] (close)
DIST = ABS (MA10-MA250)
SCREENER [DIST / ATR]
I would like to see the ATR multiple if possible
Write it as indicator then use that as criteria
ZacParticipant
Average
Thanks.
Could I easily get from that to a shortlist of the most extended stocks? That’s the primary purpose.
Just use your condition as the criteria to sort the results:
SCREENER (DIST / ATR)
This way, the screener will display all the shares of the list since there is no condition and sorted by “dist / atr” value.