Hi, thanks I see the issue here, although I am a bit confused how this can happen since the second function will never return 0 (except for massive price gaps, which I don't think I have). Is it more that the function could return 0 in some circumstances?

Additionally, I also see this with DomiantPeriod using some series I have made. These series span the interval [-100,100], and have all values in this range. Using "vars DomPer=series(DominantPeriod(Series_Name,100));" I get a blank graph with -1.

Any thoughts??