0% found this document useful (0 votes)
39 views1 page

Ema Riboon

EMA RIBBON SIMPLE PINE SCRIPT CODE

Uploaded by

vishalvagadia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

Ema Riboon

EMA RIBBON SIMPLE PINE SCRIPT CODE

Uploaded by

vishalvagadia
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

//@version=5

indicator("Moving Average Ribbon", shorttitle="MA Ribbon", overlay=true,


timeframe="", timeframe_gaps=true)

ma(source, length, type) =>


type == "SMA" ? ta.sma(source, length) :
type == "EMA" ? ta.ema(source, length) :
type == "SMMA (RMA)" ? ta.rma(source, length) :
type == "WMA" ? ta.wma(source, length) :
type == "VWMA" ? ta.vwma(source, length) :
na

show_ma1 = input(true , "MA №1", inline="MA #1", display = display.data_window)


ma1_type = input.string("SMA" , "" , inline="MA #1", options=["SMA", "EMA",
"SMMA (RMA)", "WMA", "VWMA"])
ma1_source = input(close , "" , inline="MA #1", display = display.data_window)
ma1_length = input.int(20 , "" , inline="MA #1", minval=1)
ma1_color = input(#f6c309, "" , inline="MA #1", display = display.data_window)
ma1 = ma(ma1_source, ma1_length, ma1_type)
plot(show_ma1 ? ma1 : na, color = ma1_color, title="MA №1")

show_ma2 = input(true , "MA №2", inline="MA #2", display = display.data_window)


ma2_type = input.string("SMA" , "" , inline="MA #2", options=["SMA", "EMA",
"SMMA (RMA)", "WMA", "VWMA"])
ma2_source = input(close , "" , inline="MA #2", display = display.data_window)
ma2_length = input.int(50 , "" , inline="MA #2", minval=1)
ma2_color = input(#fb9800, "" , inline="MA #2", display = display.data_window)
ma2 = ma(ma2_source, ma2_length, ma2_type)
plot(show_ma2 ? ma2 : na, color = ma2_color, title="MA №2")

show_ma3 = input(true , "MA №3", inline="MA #3", display = display.data_window)


ma3_type = input.string("SMA" , "" , inline="MA #3", options=["SMA", "EMA",
"SMMA (RMA)", "WMA", "VWMA"])
ma3_source = input(close , "" , inline="MA #3", display = display.data_window)
ma3_length = input.int(100 , "" , inline="MA #3", minval=1)
ma3_color = input(#fb6500, "" , inline="MA #3", display = display.data_window)
ma3 = ma(ma3_source, ma3_length, ma3_type)
plot(show_ma3 ? ma3 : na, color = ma3_color, title="MA №3")

show_ma4 = input(true , "MA №4", inline="MA #4", display = display.data_window)


ma4_type = input.string("SMA" , "" , inline="MA #4", options=["SMA", "EMA",
"SMMA (RMA)", "WMA", "VWMA"])
ma4_source = input(close , "" , inline="MA #4", display = display.data_window)
ma4_length = input.int(200 , "" , inline="MA #4", minval=1)
ma4_color = input(#f60c0c, "" , inline="MA #4", display = display.data_window)
ma4 = ma(ma4_source, ma4_length, ma4_type)
plot(show_ma4 ? ma4 : na, color = ma4_color, title="MA №4")

You might also like