Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Super EMA MA Combo //
- // 5 EMAs: //
- // 5 SMAs: //
- study(title=" EMA MA Combo ", shorttitle="SP-EMA/MA", overlay = true )
- // EMA input//
- scalpingEMA1 = input(5, minval=1)
- scalpingEMA2 = input(10, minval=1)
- scalpingEMA3 = input(13, minval=1)
- scalpingEMA4 = input(25, minval=1)
- EMA1 = input(21, minval=1)
- EMA2 = input(50, minval=1)
- EMA3 = input(89, minval=1)
- EMA4 = input(200, minval=1)
- EMA5 = input(377, minval=1)
- // MA input//
- SMA1 = input(10, minval=1)
- SMA2 = input(30, minval=1)
- SMA3 = input(50, minval=1)
- SMA4 = input(200, minval=1)
- SMA5 = input(377, minval=1)
- xPrice = close
- // EMA //
- xscEMA1 = ema(xPrice, scalpingEMA1)
- xscEMA2 = ema(xPrice, scalpingEMA2)
- xscEMA3 = ema(xPrice, scalpingEMA3)
- xscEMA4 = ema(xPrice, scalpingEMA4)
- xEMA1 = ema(xPrice, EMA1)
- xEMA2 = ema(xPrice, EMA2)
- xEMA3 = ema(xPrice, EMA3)
- xEMA4 = ema(xPrice, EMA4)
- xEMA5 = ema(xPrice, EMA5)
- // MA //
- xSMA1 = sma(xPrice, SMA1)
- xSMA2 = sma(xPrice, SMA2)
- xSMA3 = sma(xPrice, SMA3)
- xSMA4 = sma(xPrice, SMA4)
- xSMA5 = sma(xPrice, SMA5)
- // EMA plot//
- plot(xscEMA1, linewidth=2, color=yellow, title="scalping EMA 1")
- plot(xscEMA2, linewidth=2, color=lime, title="scalping EMA 2")
- plot(xscEMA3, linewidth=2, color=aqua, title="scalping EMA 3")
- plot(xscEMA4, linewidth=2, color=purple, title="scalping EMA 4")
- plot(xEMA1, linewidth=2, color=yellow, title="EMA 1")
- plot(xEMA2, linewidth=2, color=lime, title="EMA 2")
- plot(xEMA3, linewidth=2, color=aqua, title="EMA 3")
- plot(xEMA4, linewidth=2, color=purple, title="EMA 4")
- plot(xEMA5, linewidth=2, color=yellow, title="EMA 5")
- // MA plot//
- plot(xSMA1, linewidth=2, color=blue, title="MA 1")
- plot(xSMA2, linewidth=2, color=red, title="MA 2")
- plot(xSMA3, linewidth=2, color=red, title="MA 3")
- plot(xSMA4, linewidth=2, color=red, title="MA 4")
- plot(xSMA5, linewidth=2, color=red, title="MA 5")
Advertisement
Add Comment
Please, Sign In to add comment