Page 1504 of 2170

Re: MT4 Indicator requests and ideas

Posted: Thu Mar 03, 2022 1:25 am
by constbln
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

Re: MT4 Indicator requests and ideas

Posted: Thu Mar 03, 2022 2:27 am
by Lesnichiii
josi wrote: Wed Mar 02, 2022 11:24 pm Really good stuff, thank you, kvak
Image

Image
You can lay out the indicator settings.

Re: MT4 Indicator requests and ideas

Posted: Thu Mar 03, 2022 3:39 am
by Deez

Re: MT4 Indicator requests and ideas

Posted: Thu Mar 03, 2022 4:27 am
by naluvs01
Hi Mr Tools and Coders Respectively,

I found this indicator and would like to know how to increase the length so I can backtest further than 1 month, if possible. Thank you!

Re: MT4 Indicator requests and ideas

Posted: Thu Mar 03, 2022 4:33 am
by mrtools
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
Image
Looks like both are Atr's of RMA, any chance you could post the code.

Re: MT4 Indicator requests and ideas

Posted: Thu Mar 03, 2022 4:41 am
by naluvs01
Hi Mr. Tools and Coders,

This LargeTimeframe indicator is a wonderful tool. However, I would like to know if an option for the candle's shadow (true/false) and a on/off button like the other attached indicator can be added.

The Candle Overlay BT indicator is ok, but it is not in alignment with the period separators on the weekly. And when you use the shift option, the previous candles are out of alignment. Or if the Candle Overlay BT can be fixed, that would be awesome!

Thanks in advance for your consideration!!!!!!

Re: MT4 Indicator requests and ideas

Posted: Thu Mar 03, 2022 5:05 am
by constbln
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))
------------------------------------------------------------------------------------------------
but as you re looking for the rma I think you will find the tradingview code here
https://stackoverflow.com/questions/480 ... internally (I think you understand it better than I do)


--------------------------------------
please let me know if u need anything else

Re: MT4 Indicator requests and ideas

Posted: Thu Mar 03, 2022 12:46 pm
by traderokey
Hi Mrtools,

I like the !!haos cci visual indicator but at the moment the color of the histogram bars is the same above and below the zero line.
To spot trend changes easily, is it possible to add an option where the bars change color when they cross above or below the zero line.

Thanks.


Re: MT4 Indicator requests and ideas

Posted: Thu Mar 03, 2022 1:16 pm
by sal
mrtools wrote: Sat Feb 26, 2022 2:55 pm Not by my computer till Sun. Will work onit then.
any update on this!!

Re: MT4 Indicator requests and ideas

Posted: Thu Mar 03, 2022 1:26 pm
by mrtools
sal wrote: Thu Mar 03, 2022 1:16 pm any update on this!!
Couldnt figure how to do it.