Page 43 of 56

Re: ADX DMI Indicators for MT4

Posted: Sat Oct 02, 2021 10:08 pm
by Jimmy
kmck5147 wrote: Sat Oct 02, 2021 6:07 pm Here is the code.
Fixed post - wrapped code with CODE function.

Please everyone, when posting any code on this site, can we all remember to use the "Code" function in your post so it can be read easily?

If you're unsure on how to, please see below.

Just highlight your code and press the CODE button 👇

Re: ADX DMI Indicators for MT4

Posted: Fri Oct 22, 2021 12:47 am
by 太虚一毫
DSL DMI oscillator (vidya) 1.01, DSL DMI oscillator 2 Both oscillators are good. Expect teacher kvak to choose one at random and add a button. Boundless merit!

Re: ADX DMI Indicators for MT4

Posted: Fri Oct 22, 2021 3:36 am
by mrtools
kmck5147 wrote: Sat Oct 02, 2021 6:07 pm Here is the code.

Code: Select all

//@version=3
study("Average Directional Index w/ DI", shorttitle="ADX+DI")
adxlen = input(14, title="ADX Smoothing")
dilen = input(14, title="DI Length")
th = input(title="threshold", type=integer, defval=20)
dirmov(len) =>
	up = change(high)
	down = -change(low)
	plusDM = na(up) ? na : (up > down and up > 0 ? up : 0)
    minusDM = na(down) ? na : (down > up and down > 0 ? down : 0)
	truerange = rma(tr, len)
	
	plus = fixnan(100 * rma(plusDM, len) / truerange)
	minus = fixnan(100 * rma(minusDM, len) / truerange)

	[plus, minus]

adx(dilen, adxlen) =>
	[plus, minus] = dirmov(dilen)
	sum = plus + minus
	adx = 100 * rma(abs(plus - minus) / (sum == 0 ? 1 : sum), adxlen)

	
[plus, minus] = dirmov(dilen)
sig = adx(dilen, adxlen)


plot(plus, color = green, title="plusDI")
plot(minus, color = red, title="minusDI")
plot(sig, color=white, title="ADX")
hline(th, color=white, linestyle=dashed)
Might check Wilders dmi pretty sure that's the same.

Re: ADX DMI Indicators for MT4

Posted: Fri Oct 22, 2021 4:24 am
by Borshchov A.N.
太虚一毫 wrote: Tue Aug 24, 2021 2:13 pm Perfect! Thanks!
take a screenshot in flet ... let's see how ideal it is

Re: ADX DMI Indicators for MT4

Posted: Fri Oct 22, 2021 8:51 am
by kvak
太虚一毫 wrote: Fri Oct 22, 2021 12:47 am DSL DMI oscillator (vidya) 1.01, DSL DMI oscillator 2 Both oscillators are good. Expect teacher kvak to choose one at random and add a button. Boundless merit!
Hi, try it.
Update it with autohigher timeframe.

Re: ADX DMI Indicators for MT4

Posted: Sat Oct 30, 2021 3:55 am
by mrtools
losajoca wrote: Sat Oct 30, 2021 2:24 am Could be added color to the ADX line (on wilders dmi book), based on slope change?
Thanks.
Grateful.
Try.

Re: ADX DMI Indicators for MT4

Posted: Mon Nov 01, 2021 9:57 pm
by Jimmy
losajoca wrote: Sat Oct 30, 2021 2:24 am Could be added color to the ADX line (on wilders dmi book), based on slope change?
mrtools wrote: Sat Oct 30, 2021 3:55 am Try.
I know this isn't what you're looking for but just posting Mrtools's Wilders Super Smoother DMI Book in case you'd like to try this indicator with your system. I wonder if it may work a bit better? :)

Re: ADX DMI Indicators for MT4

Posted: Sat Nov 13, 2021 9:35 pm
by Reverent
talaate wrote: Sat Mar 11, 2017 4:06 am Hi mladen
Is it possible to create mq4 version
Regards
Please you forgot to create the MT4 version of this indicator. Awaiting your response, please thank you...

Re: ADX DMI Indicators for MT4

Posted: Sun Nov 14, 2021 1:24 pm
by mrtools
Reverent wrote: Sat Nov 13, 2021 9:35 pm Please you forgot to create the MT4 version of this indicator. Awaiting your response, please thank you...
Can't tell what indicator that is, could you please send the link or the mt5 version you want converted?

Re: ADX DMI Indicators for MT4

Posted: Sun Nov 14, 2021 2:25 pm
by talaate
mrtools wrote: Sun Nov 14, 2021 1:24 pm Can't tell what indicator that is, could you please send the link or the mt5 version you want converted?
I think this one:
This was requested since 2017