lpomrs.blogg.se

Squeeze indicator thinkorswim
Squeeze indicator thinkorswim










squeeze indicator thinkorswim squeeze indicator thinkorswim squeeze indicator thinkorswim

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












Squeeze indicator thinkorswim