Problem calling a series data point

Good morning,

Looking for market timing systems, and trying to replicate this system below. The quarterly series seems to be working correctly, but the ETF screen doesn’t seem to call the correct number from the series. As a result, the system is constantly in IEF. Any idea what is wrong here in the code



?

Thank you,

Shawn

https://imarketsignals.com/2015/avoiding-stock-market-crashes-with-the-hi-lo-index-of-the-sp500/

GetSeries(...) yields a representation of the ID of the aggregate series. You may use Close(0, GetSeries(...)) to pull the latest value.

1 Like

Thank you for that. I am able to get the closing value using that change. However, I’m still not able to get the SMA of that data series. The raw data is too erratic to be useful unfortunately. The system doesn’t seem to like this code in either the screen or the series area.


SMA(40,0,CLOSE(0,Getseries(“%Qtr Hi-Lo”))))

Hi Shawn,
The formula for the SMA would be: Sma(40,0,GetSeries(“%Qtr Hi-Lo”))

You can check the SMA values from the Screener against those in the Agg Series chart by adding SMA 40 in the overlays on the Agg Series.

Thank you! This works now