villabydesign.blogg.se

200 ema thinkorswim
200 ema thinkorswim











200 ema thinkorswim

If((D3 > D4 and D4 > D2 and D2 > D1) or (D4 > D2 and D2 > D3 and D3 > D1) or If((D1 > D3 and D3 > D4 and D4 > D2) or ( D1 > D4 and D4 > D2 and D2 > D3) or

200 ema thinkorswim

If((D1 > D2 and D2 > D4 and D4 > D3) or (D1 > D3 and D3 > D2 and D2 > D4) or Input averageType = AverageType.Exponential ĭef D1 = MovingAverage(AveragetYPE,Price,3) ĭef D2 = MovingAverage(AverageType,price,6) ĭef D3 = MovingAverage(AverageType,price,9) ĭef D4 = MovingAverage(AverageType,price,12) ĭef W1 = MovingAverage(AveragetYPE,Price,15) ĭef W2 = MovingAverage(AverageType,price,30) ĭef W3 = MovingAverage(AverageType,price,45) ĭef W4 = MovingAverage(AverageType,price,60) ĭef DCondition1 = If(D1 > D2 and D2 > D3 and D3 > D4, 5, #Created by rad14733 for ĭef stackedUp = MovAvgExponential("length" = 8)."AvgExp" is greater than MovAvgExponential("length" = 21)."AvgExp"Īnd MovAvgExponential("length" = 21)."AvgExp" is greater than MovAvgExponential("length" = 34)."AvgExp"Īnd MovAvgExponential("length" = 34)."AvgExp" is greater than MovAvgExponential("length" = 55)."AvgExp"Īnd MovAvgExponential("length" = 55)."AvgExp" is greater than MovAvgExponential("length" = 89)."AvgExp" ĭef stackedDn = MovAvgExponential("length" = 8)."AvgExp is less than MovAvgExponential("length" = 21)."AvgExp"Īnd MovAvgExponential("length" = 21)."AvgExp" is less than MovAvgExponential("length" = 34)."AvgExp"Īnd MovAvgExponential("length" = 34)."AvgExp" is less than MovAvgExponential("length" = 55)."AvgExp"Īnd MovAvgExponential("length" = 55)."AvgExp" is less than MovAvgExponential("length" = 89)."AvgExp" ĭef state = if stackedUp then 1 else if stackedDn then -1 else 0 ĪddLabel(yes, state, if stackedUp then Color.DARK_GREEN else if stackedDn then Color.DARK_RED else Color.DARK_GRAY) ĪssignBackgroundColor(if stackedUp then Color.DARK_GREEN else if stackedDn then Color.DARK_RED else Color.DARK_GRAY) ĭef stackedDn = MovAvgExponential("length" = 8)."AvgExp" is less than MovAvgExponential("length" = 21)."AvgExp"ĪddLabel(yes, "EMA Stacks", if stackedUp then Color.GREEN else Color.RED) ĭefineGlobalColor("Neutral", Color.Yellow) ĭefineGlobalColor("arrow Buy", Color.Cyan) ĭefineGlobalColor("arrow Sell", Color.Orange) #Used to indicate that 8, 21, 34, 55, 89 EMA's are ALL stacked trend-wise













200 ema thinkorswim