Hi,
I was going through some old release notes and discovered a new function called ANGLEDIFF was introduced in version 2.1 but I can’t find anything on how it might be used.
Just a brief description of what it does would be great
Thanks
Kim
Hi,
I was going through some old release notes and discovered a new function called ANGLEDIFF was introduced in version 2.1 but I can’t find anything on how it might be used.
Just a brief description of what it does would be great
Thanks
Kim
Hi Kim,
We’ll get a KB article for that, but it was originally designed for clients with the astro tool module to normalise the longitudinal angle between two planets…
However, it can be used to compare the angle between any values, such as the 50 and 200 moving averages - although I’m not sure how useful that would be… DIFFPCT() might be better!
M1=MA(BARS=50, CALC=Close);
M2=MA(BARS=200, CALC=Close);
ANGLEDIFF(M1,M2)
For those interested in the astro usage, here’s the angular difference between Mars & Jupiter normalised to +/- 180° in a Show View (requires astro tool module):
P1=PVAL(PLANET=[Mars], VALUE=Longitude);
P2=PVAL(PLANET=[Jupiter], VALUE=Longitude);
ANGLEDIFF(P1,P2, NORMALISE=True)