lightspeed2009
New member
Working with the Squeeze approach.
Would appreciate any help to understand what's going on.
I copied this watchlist:
# Squeeze watchlist column
# Red Background - Squeeze is building in the time period - number indicates how many dots
# w/ white "B" - Squeeze is building, stock is within "buy zone"
# Green Background - Squeeze has fired - number indicates how many dots (up to 5 dots)
# and whether Squeeze fired L(ong) or S(hort)
# Black Background - No Squeeze in play
# Original code by Eric Purdy of Simpler Trading 2017
# Modified code by Rich Stratmann to put in background colors and shorten column values
# Updates by dmccuskey
# - change background colors to aid content scanning
# - add "B" to time frames which are in the Buy Zone - between 8 & 21 EMA
# - change "0" to " " <space> so that the content doesn't show when row is highlighted
#ToS Share Code: http://tos.mx/IPrEhH
changed this script:
AssignBackgroundColor(if sqzNoBuy then color.yellow
else if sqzBuy then color.light_red
else if sumIsFired then color.green
else color.black);
to this:
plot scan = sqzBuy;
With filters for Last Price and Volume, I got a scan result of 40 stocks.
The watchlist is supposed to have a red background if squeeze is building (sqzBuy?); however, none of the 40 stocks have a red background. It shows 22 black, 6 green, and 12 yellow.
I don't understand why results don't match what I would expect.
Thanks in advance for any help.
Would appreciate any help to understand what's going on.
I copied this watchlist:
# Squeeze watchlist column
# Red Background - Squeeze is building in the time period - number indicates how many dots
# w/ white "B" - Squeeze is building, stock is within "buy zone"
# Green Background - Squeeze has fired - number indicates how many dots (up to 5 dots)
# and whether Squeeze fired L(ong) or S(hort)
# Black Background - No Squeeze in play
# Original code by Eric Purdy of Simpler Trading 2017
# Modified code by Rich Stratmann to put in background colors and shorten column values
# Updates by dmccuskey
# - change background colors to aid content scanning
# - add "B" to time frames which are in the Buy Zone - between 8 & 21 EMA
# - change "0" to " " <space> so that the content doesn't show when row is highlighted
#ToS Share Code: http://tos.mx/IPrEhH
changed this script:
AssignBackgroundColor(if sqzNoBuy then color.yellow
else if sqzBuy then color.light_red
else if sumIsFired then color.green
else color.black);
to this:
plot scan = sqzBuy;
With filters for Last Price and Volume, I got a scan result of 40 stocks.
The watchlist is supposed to have a red background if squeeze is building (sqzBuy?); however, none of the 40 stocks have a red background. It shows 22 black, 6 green, and 12 yellow.
I don't understand why results don't match what I would expect.
Thanks in advance for any help.