lostcoastsurf
Member
I was seeking to use a filter in a scan for stocks with high volatility and came across a scan with the following code:
But I'm not sure what this line would filter. Is the statement true if the volatility for the last 6 bars is less than 1/2 the volatility of the last 100 bars? Am I reading it right?
Code:
def lowVol = (VolatilityStdDev(6) / VolatilityStdDev(100)) < 0.5;
But I'm not sure what this line would filter. Is the statement true if the volatility for the last 6 bars is less than 1/2 the volatility of the last 100 bars? Am I reading it right?