RM Moving average
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © ManikandanRajamani

//@version=5
indicator("RM Moving average tester", overlay = true)
ma1 = ta.sma(close, 13)
plot(ma1,"MA1",color.blue)
ma2 = ta.sma(close, 34)
plot(ma2,"MA2",color.red)
if (ta.crossover(ma1 , ma2))
    var label1 = label.new(bar_index, low, text="LONG", style=label.style_arrowup)
    label.set_x(label1, 0)
    label.set_xloc(label1, time, xloc.bar_time)
    label.set_yloc(label1,yloc.belowbar)
    label.set_color(label1, color.green)
    label.set_size(label1, size.normal)


