OPEN-SOURCE SCRIPT

RMA Trend

83

indicator("RMA Trend İndikatörü", overlay=true, timeframe="", timeframe_gaps=true)


length = input.int(14, "RMA Periyodu", minval=1)
src = input(close, "Kapanış Kaynağı")

rma_val = ta.rma(src, length)

rma_color = rma_val > rma_val[1] ? color.new(color.lime, 0) : color.new(color.red, 0)

plot(rma_val, title="RMA", color=rma_color, linewidth=3
longSignal = ta.crossover(src, rma_val)
shortSignal = ta.crossunder(src, rma_val)

plotshape(longSignal, title="AL Sinyali", style=shape.triangleup, location=location.belowbar, color=color.new(color.lime, 0), size=size.large, text="AL")
plotshape(shortSignal, title="SAT Sinyali", style=shape.triangledown, location=location.abovebar, color=color.new(color.red, 0), size=size.large, text="SAT")

bgcolor(rma_val > rma_val[1] ? color.new(color.lime, 90) : color.new(color.red, 90))

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.