aliassmith wrote:IgazI wrote:Alias,
would you mind taking a look at this indicator and letting me know what you think about the stop loss recommendations?
Code: Select all
//@version=5
indicator("RMA Range", shorttitle = ".7RMA", overlay = false)
rangeLen = input(12, title = "rLen")
relMA = ta.rma(ta.atr(3), rangeLen)[1] * 0.7
mid = (ta.lowest(relMA, rangeLen * 2) + ta.highest(relMA,rangeLen * 2) ) / 2
palette = relMA >= mid ? color.new(color.blue,15) : color.new(color.red,0)
palette2 = relMA >= mid ? color.new(color.red,15) : color.new(color.blue,0)
transpStamp = relMA > mid ? 15 : 0
x = plot(relMA, color = color.new(palette, 20), style = plot.style_line, join = true, linewidth = 1)
y = plot(mid, color = color.new(palette2,90), style = plot.style_line, join = true, offset = 0 )
fill(x,y, color = color.new(palette,65))
I might be doing something wrong. All I see is a window at the bottom with a red and blue wave.
Ok I am a dumbass. I see what it is doing.
I'll put more study into it. So far, the predictions seem fair.





