Yes i changed it, thanks a lotkvak wrote: Wed Mar 02, 2022 11:48 pm You may change colors in menu.Every lines,colors are editable.....
Re: MT4 Indicator requests and ideas
15031- These users thanked the author 2banglak1993 for the post:
- kvak
Yes i changed it, thanks a lotkvak wrote: Wed Mar 02, 2022 11:48 pm You may change colors in menu.Every lines,colors are editable.....
Looks like both are Atr's of RMA, any chance you could post the code.constbln wrote: Thu Mar 03, 2022 1:25 am Hello Im looking for an ATR Crossover indicator. Unfortunately when I plot 2 Atr´s on my mt4 the scale is not fixed; so the crossovers vary when I zoom in/out.
Can one of the coders on forexstation help me out?
thanks in advance
I attached a picture from tradingview
mrtools wrote: Thu Mar 03, 2022 4:33 am Looks like both are Atr's of RMA, any chance you could post the code.
Code: Select all
adx indicator
indicator(title="Average True Range", shorttitle="ATR", overlay=false, timeframe="", timeframe_gaps=true)
length = input.int(title="Length", defval=14, minval=1)
smoothing = input.string(title="Smoothing", defval="RMA", options=["RMA", "SMA", "EMA", "WMA"])
ma_function(source, length) =>
switch smoothing
"RMA" => ta.rma(source, length)
"SMA" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
=> ta.wma(source, length)
plot(ma_function(ta.tr(true), length), title = "ATR", color=color.new(#B71C1C, 0))
any update on this!!
Users browsing this forum: DotNetDotCom [Bot], IBM oBot [Bot], Majestic-12 [Bot], Proximic [Bot], Sogou [Bot] and 109 guests