HI Man. Can you share the ready aim fire code you found? I was also curious about this... ThanksHi guys I'm new to this site and I actually use the TTM Squeeze pro along with adding the code into my watch list. I've been trading for almost a year and I use TOS. I've learned a lot but still have a lot to learn! This is the code to my squeeze I've added to my watchlist that I found on the internet (thank you) BUT my question is can someone edit my code to allow the gold/orange color to show up on stronger/tighter squeezes? You know more similar to the TTM Squeeze pro. By seeing a gold dot in your watchlist if you are a squeeze trader I feel like it would really grab your attention. Also this squeeze watchlist code even offers the output of the letter "B" in the box for buy which is really cool but would it be possible to edit the code slightly to make it give slightly less "B" signals? Basically it would be nice if the code would only produce Bs if its like guaranteed to take off you know? Of course nothing is 100% accurate.
Code:# 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 # - modify colors and content to indicate whether a stock is in the "buy zone" - between 8 & 21 EMA # - add small "fudge factor" to relax buy zone a bit def sqz = !TTM_Squeeze().SqueezeAlert; def direction = TTM_Squeeze()>TTM_Squeeze()[1]; def count = if sqz and !sqz[1] then 1 else count[1]+1; def isFired = if !sqz and sqz[1] then 1 else 0; def firedCount = if isFired then 1 else firedCount[1]+1; def firedDirection = if isFired then direction else firedDirection[1]; def sumIsFired = sum(isFired,5); def isFiredDir = sumIsFired && firedDirection; # look for close buy zone def ema8 = reference movAvgExponential(length=8); def ema21 = reference movAvgExponential(length=21); def currPrice = close(); def highVal = Max(ema8, ema21); def lowVal = Min(ema8, ema21); def inBuyZone = currPrice >= lowVal && currPrice <= highVal; def sqzBuy = sqz && inBuyZone; def sqzNoBuy = sqz && !inBuyZone; addLabel(yes, Concat(if sqzBuy then "B " else "", if sqz then "" + count else if sumIsFired then “” + firedCount + if firedDirection then ” L” else ” S” else “ ”), if sqzBuy then color.white else color.black); AssignBackgroundColor(if sqzNoBuy then CreateColor(170, 6, 0) else if sqzBuy then color.red else if sumIsFired then CreateColor(28, 105, 3) else color.black);
Last edited by a moderator: