FHist with Index error

I have been using this custom formula in Screener for years. This is part of a larger custom formula that has also been running years without error until the last couple of months. This is the section that is breaking it:

FHist(“Close(0,GetSeries(”$RUA"))/Close(251,GetSeries(“$RUA”))",10)

This error is returned:

ERROR: Could not find series for $RUA

If I run it without FHist it works fine.

Close(0,GetSeries(“$RUA”))/Close(251,GetSeries(“$RUA”))

Has something changed with the use of FHist to not allow indeces?

I have also tried calling RUA via a custom series using benchmark(0); set the benchmark as Russell 3000 and named RUA-0 but then am retuned error:could not find series for $RUA-0

The above is a part of a larger custom formula that has also been running years without error until the last couple of months.

Any help is appreciated…

Follow up: It turns out that the formula calling the series RUA works fine when used longhand in screener. However when tucking it inside FHist it breaks. It also can not run inside a custom formula.

I ran this succesfully in custom formula up to July. Something changed since then? Does it have to do with the new custom series?

Thanks.

Solved temporarily using #Bench in place of GetSeries.

I would still like to knoiw why the GetSeries returns an error when inside a function or custom formula…

You cannot use " inside of " ( or nested ")

It’s a limitation of our syntax. The only thing GetSeries(“$RUA”) does is that it resolves to the internal id of $RUA. You can just use 23493, like this: Close(0,23493)

We’ll add ids that you can use instead of GetSeries(“”), like

#RUA, #RUT, etc

Thank you. Changing to the ID worked. However, the last run of the screen was in July, 2014 and it worked flawlessly using $RUA… I believe custom series was added after that date, which is what I was thinking broke my screen.

Always appreciate the fast response Marco!