Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////
- // 5 EMA lines as per Hbthegreat EMA Cross strategy
- ////////////////////////////////////////////////////////////
- study(title="5EMA", shorttitle="5EMA", overlay = true )
- Length1 = input(9, minval=1)
- Length2 = input(13, minval=1)
- Length3 = input(21, minval=1)
- Length4 = input(55, minval=1)
- Length5 = input(100, minval=1)
- xPrice = close
- xEMA1 = ema(xPrice, Length1)
- xEMA2 = ema(xPrice, Length2)
- xEMA3 = ema(xPrice, Length3)
- xEMA4 = ema(xPrice, Length4)
- xEMA5 = ema(xPrice, Length5)
- plot(xEMA1, color=blue, title="5EMA 9")
- plot(xEMA2, color=purple, title="5EMA 13")
- plot(xEMA3, color=orange, title="5EMA 21")
- plot(xEMA4, color=yellow, title="5EMA 55")
- plot(xEMA5, color=white, title="5EMA 100")
Add Comment
Please, Sign In to add comment