The z-score using the following formula below is not matching cefconnect.com since there aren’t enough values to reliably calculate standard deviation:
I think that the problem is that we receive NAV as monthly data. We are unlikely to ever match any external source that uses NAVs updated more often.
Your second try (-1*(NAVDisc-NAVDiscAvg(12,0))/LoopStdDev(“NAVDiscHist(CTR)”,12,0,1)) is as close as I think that we can come. I’d try replacing LoopStdDev with LoopStdDevP, just to be sure that doesn’t help. I don’t really expect it to, because it’s kind of very not correct.
Other than that, sorry, we can’t help you match an external source more closely in general, and in this case I don’t think we have the data to do it anyway.