Mehrdad Banakar - Multiple RMA channels
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Mehrdadcoin

//@version=5
indicator("RMA channels",overlay=true) 
length1=input(50)
length2=input(100)
length3=input(200)
length4=input(300)
length5=input(400)
length6=input(500)




ma51=ta.rma(high,length1)
y1=plot(ma51,title='highlengh1',color=color.new(color.aqua, 70))

ma511=ta.rma(low,length1)
y2=plot(ma511,title='lowlengh1',color=color.new(color.aqua,70))

fill(y1,y2,color=color.new(color.aqua,70))



ma61=ta.rma(high,length2)
c2=plot(ma61,title='highlengh2',color=color.new(color.white,70))

ma611=ta.rma(low,length2)
c1=plot(ma611,title='lowlengh2',color=color.new(color.white, 70))
fill(c1,c2,color=color.new(color.white,70))



ma71=ta.rma(high,length3)
o1=plot(ma71,title='highlengh3',color=color.new(color.gray,70))

ma711=ta.rma(low,length3)
o2=plot(ma711,title='lowlengh3',color=color.new(color.gray,70))

fill(o1,o2,color=color.new(color.gray,70))

ma81=ta.rma(high,length4)
n2=plot(ma81,title='highlengh4',color=color.new(color.red,70))
ma811=ta.rma(low,length4)
n1=plot(ma811,title='lowlengh4',color=color.new(color.red,70))
fill(n1,n2,color=color.new(color.red,70))



ma91=ta.rma(high,length5)
p1=plot(ma91,title='highlengh5',color=color.new(color.purple,70))
ma911=ta.rma(low,length5)
p2=plot(ma911,title='lowlengh5',color=color.new(color.purple,70))
fill(p1,p2,color=color.new(color.purple,70))

ma101=ta.rma(low,length6)
t1=plot(ma101,title='highlengh6',color=color.new(color.yellow,70))
ma1011=ta.rma(high,length6)
t2=plot(ma1011,title='lowlengh6',color=color.new(color.yellow,70))
fill(t1,t2,color=color.new(color.yellow,70))
