tDefaultColor(color.red) ĭef highSqueeze = BolKelDelta_High 0) or (LongShortDefinition = LongShortDefinition.HistRisingFalling and oscillator > oscillator) or (LongShortDefinition = LongShortDefinition.HistRisingFromBelowFallingFromAbove and oscillator > oscillator and oscillator 0 )) then high+signalOffset else double.nan SignalMidShort.SetPaintingStrategy(paintingStrategy.ARROW_Down) Momentum.AssignValueColor( if PosUp then Color.cyAN else if PosDn then Color.blue else if NegDn then Color.red else if NegUp then Color.yellow else Color.Def midSqueeze = BolKelDelta_Mid 0) or (LongShortDefinition = LongShortDefinition.HistRisingFalling and oscillator > oscillator) or (LongShortDefinition = LongShortDefinition.HistRisingFromBelowFallingFromAbove and oscillator > oscillator and oscillator 0 )) then high+signalOffset else double.nan Momentum.AssignValueColor( if PosUp then Color.cyAN else if PosDn then Color.blue else if NegDn then Color.red else if NegUp then Color.yellow else Color.YELLOW) Momentum.SetPaintingStrategy(PaintingStrategy.HISTOGRAM) SqueezelineES.SetDefaultColor(Color.ORANGE) SqueezelineES.SetPaintingStrategy(PaintingStrategy.POINTS) Plot squeezelineES = if conditionES then 0 else double.NaN SqueezelineOS.SetDefaultColor(Color.RED) SqueezelineOS.SetPaintingStrategy(PaintingStrategy.POINTS) Plot squeezelineOS = if conditionOS then 0 else double.NaN SqueezelinePS.SetDefaultColor(Color.BLACK) SqueezelinePS.SetPaintingStrategy(PaintingStrategy.POINTS) Plot squeezelinePS = if conditionPS then 0 else double.NaN SqueezelineF.SetDefaultColor(Color.GREEN) SqueezelineF.SetPaintingStrategy(PaintingStrategy.POINTS) Plot squeezelineF = if conditionF then 0 else double.NaN 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 ATR1 #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 I am 100% self taught with coding so I may have gone about it the hard way so anyone that actually knows what they are doing don't bash me too hard LOL. Even though its coded for the squeeze signal to be points, you have to go to the indicator settings and change the 4 squeeze signals to "points" instead of "lines" and then you are good to go. I got the Squeeze Pro (original code by Mobius and TheBewb) to plot the squeeze signals in the correct color on TOS mobile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |