I'm trying to make this work in MarketAnalyzer.
I want to get the value of the 200sma 30 days ago.
This won't calculate (just get all zeros):
DfmLkBktoMA200.Set((SMA(Close, 200)[0] - SMA(Close, 200) [30]) / Close[0] * 100);
But this does (so I think that says the problem is not somewhere else):
DfmLkBktoMA200.Set((SMA(Close, 200)[0] - 1) / Close[0] * 100);
Even when I put it in its own indicator it only displays zeros in Market Analyzer:
Plot0.Set(SMA(Close, 200) [30]);
Thanks
Comment