maybe I should have used a different variable name than "trend" but I just wanted to know if the code I posted is correctly calculating rising and declining (upTrend, downTrend) 200 day simple moving average.
Thanks
Is the following code correct for defining a up and down SMA200 trend: ?
if Average(C, 200) > Average(C[1], 200) then
upTrend = True;
if Average(C, 200) <= Average(C[1], 200) then
downTrend = True;
Thanks for any help