![]() ![]() Momentum indicators work by mathematically calculating the rate of change of a currency pair price and thus can measure how weak or strong a market trend is. You need a momentum indicator that would notify you whenever there is a change in the price of an asset you intend to trade. You cannot accurately predict asset momentum (a change in an asset price) just by studying charts and analyzing different graphs. It helps traders to determine how fast or slow the price of an asset is fluctuating. Momentum describes the rate of change of a currency pair in real-time. And therefore, using the Squeeze Momentum Indicator will help. As a forex trader, if you can predict the rate of change of an asset price (asset momentum), you’d know precisely when to enter or exit a trade position. 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.Welcome to our best forex indicator blog! The forex market is rewarding with the use of technical indicators and forex signals. 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.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 |