4/18/2024 0 Comments Squeeze momentum indicator pythonPlot "1SD" = if IsNaN(close) then Double.NaN else 1 ĭef "2SD" = if IsNaN(close) then Double.NaN else 2 ĭef "2.5SD" = if IsNaN(close) then Double.NaN else 2.5 ĪddCloud("2SD", "2.5SD", Color.RED, Color.GREEN) Plot "0" = if IsNaN(close) then Double.NaN else 0 # vwapsd = sqrt(sma(pow(close-mean, 2), pds) )ĭef vwapsd = Sqrt(Average(Power(Close-mean, 2), length)) # mean = sum(volume*close,pds)/sum(volume,pds)ĭef mean = Sum(Volume*Close, length)/Sum(Volume, length) Hope this helps you all in this wild mkt. The TMO from here helps confirm entries on anchor charts, so thanks to BenTen and all you contributors for that and other gifts. Maybe we can keep adding to this thread to find even more ways to improved the use of squeeze setups. At least I got a piece of the Cybertruck rally. I was actually able to use this setup to catch TSLA on a monthly anchor, 3 day micro chart before it broke above the high 300s around Thanksgiving. For example, 3day anchor, 130 minute micro This micro chart is apx 9x smaller time frame than the Anchor chart. I then use Projection Oscillator, with Slim Ribbon, above or below ichimoku clouds on a micro chart to help spot bull or bear flags, with Ease of Movement indicator for confirmation. 618 levels on the Schaff Trend Indicator for entries on Squeezes, and then, like JC, using the Early-in-out indicator for entry confirmation, and exits. In an Anchor chart I recommend using the. I also find the Early-in-out indicator in that pro package worth trying to get on sale at the very least. The Schaff Trend indicator, Free on TOS, pairs very well with Squeeze, and even better with Squeeze pro, as a better alternative to the RAF. Momentum.AssignValueColor( if PosUp then een else if PosDn then Color.dark_green else if NegDn then Color.dark_orange else if NegUp then Color.yellow else Color.YELLOW) Momentum.SetPaintingStrategy(PaintingStrategy.HISTOGRAM) Squeezeline.AssignValueColor(if ExtrSqueeze then Color.RED else if originalSqueeze then Color.YELLOW else if presqueeze then Color.DARK_ORANGE else Color.GRAY) Squeezeline.SetPaintingStrategy(PaintingStrategy.POINTS) Input trueRangeAverageType = AverageType.SIMPLE ĭef shifthigh = factorhigh * MovingAverage(trueRangeAverageType, TrueRange(high, close, low), length) ĭef shiftMid = factormid * MovingAverage(trueRangeAverageType, TrueRange(high, close, low), length) ĭef shiftlow = factorlow * MovingAverage(trueRangeAverageType, TrueRange(high, close, low), length) ĭef average = MovingAverage(averageType, price, length) ĭef UpperBandKCLow = average + shiftlow ĭef LowerBandKCLow = average - shiftlow ĭef UpperBandKCMid = average + shiftMid ĭef LowerBandKCMid = average - shiftMid ĭef UpperBandKCHigh = average + shifthigh ĭef LowerBandKCHigh = average - shifthigh ĭef K = (Highest(high, length) + Lowest(low, length)) /ĭef momo = Inertia(price - K / 2, length) ĭef dn = momo LowerBandKCLow and UpperBandBB LowerBandKCMid and UpperBandBB LowerBandKCHigh and UpperBandBB < UpperBandKCHigh #Assembled by TheBewb using existing Mobius Squeeze Momentum coding and "squeeze" concept made popular by John Carter.ĭef sDev = StDev(data = price, length = length) ĭef MidLineBB = MovingAverage(averageType, data = price, length = length) ĭef LowerBandBB = MidLineBB + Num_Dev_Dn * sDev ĭef UpperBandBB = MidLineBB + Num_Dev_up * sDev
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |