Stocks down 3 days in a row scanner


New member
I want to scan for stocks trending down 3 days in a row in ThinkorSwim. How can I do that? No other condition is needed, just three consecutive closings being less than one another.

Update: I was able to do it. Here is the scanner for anyone who wants it.

# three day down scanner

def IsUp = close > open;
def IsDown = close < open;
def IsDoji = IsDoji();
def avgRange = 0.05 * Average(high - low, 20);
plot PatternPlot =
    IsDown[2] and
    IsDown[1] and
    IsDown[0] and
    close[2] > close[1] and
    close[1] > close[0];


Similar threads