Duo ADX

Duo ADX

Here is a variation of my favorite indicator.
code based on Gabri ADX:

  • the regular ADX (smoothed)
  • A non smoothed ADX (ie almost no lag): the idea is to use it as a cycle oscillator to confirm the strength of the trend when the regular ADX and the non smoothed ADX goes the same way (ie cycle convergence).
  • The non smoothed ADX is faster than the regular ADX : it will show each change in the strength way before the regular ADX.
  • OB and OS level of the non smoothed ADX can also be useful…

 

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. IV Mcm • 05/10/2019 #

    I’ve always wondered how to make the ADX faster, thank you!

  2. Vinks_o_7 • 05/10/2019 #

    You welcome !

  3. Vinks_o_7 • 05/10/2019 #

    Another variation that may be more accurate : we calculate the average of normalized DI’s instead of normalizing the average…

    period=14
    mm=3
    //computation of Directional Movement indicators
    up=high-high[1]
    dw=low[1]-low
    if up>dw and up>=0 then
    plusdm=up/tr(close)
    else
    plusdm=0
    endif
    if dw>up and dw>=0 then
    mindm=dw/tr(close)
    else
    mindm=0
    endif

    //computation of DI
    dip=100*average[period,MM](plusdm)
    dim=100*average[period,MM](mindm)
    //computation of smoothed ADX & non smoothed ADX
    mioADXn=100*average[period,MM](abs(dip-dim)/(dip+dim))
    mioADXnonSmoothed=100*(abs(dip-dim)/(dip+dim))

    //return of data
    return mioadxn as “ADX Normal”,20 as “20”,mioADXnonSmoothed as “ADX Fast”,0 as “Zero reversal”,50 as “50 Reversal”

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
P. Marlowe Quite an impressive work, Iván. Extremely useful and accurate. Congratulations. Keep it up¡
lkiklkik i love it !!! thanks.
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Iván
3 months ago
Nicolas
1 year ago
f1_maik Ein sehr schöner Indikator, vielen Dank. Wenn ich den Indikator importiere und starte hat d...
Nicolas das ist in der Tat normal, Sie müssen die Auf- und Abwärtsfarbe direkt im Parameterfenster d...
FXtonio Bonjour Nicolas, merci pour cette merveille, je l'utilise en compl2ment du "magical buy sell...
JohnScher Postscript: It's running in the live right now. One position after the other is opened. ...
ullle73 nice!! how's it been since your last post on going live? :)
thomas2004ch Hi, Is this strategy suitable for daily SPY? Regards
AndPar Buongiorno Nicolas, vorrei provare questo indicatore, ma quando lo inserisco in PRT mi vengo...
Nicolas Basta aggiungerlo al prezzo https://www.prorealcode.com/blog/video-tutorials/how-to-add-an-i...
Aragorna hello Nicolas, this indicator works with the last Beta version of PRT? Ive seen tha many in...
wally Hola soy nuevo en el mudo robots. Alguien seria tan amable de poner el archivo itf.file ya q...
Darren Nash I found this works well on the DOW
thomas2004ch Hi John, Is your strategy suitable for daily SPY? Regards
KAMJKAZE thanks, really interesting!
2c95 thanks, why do U prefer average than lowest ? to close under average does'nt mean another...
Stenozar Hi Sever, how can I visualize the coloured areas?
Sever Hi Stenozar, You need to add the color zones yourself , just go to Add Color Zone To set ...
Nicolas change the last line with: return v coloured(r,g,b) style(line,2), v+band coloured(168,168,1...
Paolo.B Thanks ... works as i wanted.
Kanamax Bonjour Nicolas, comme Paolo.B je souhaiterais utiliser cette indicateur au sein d'un code. ...
Boris Hi IVMcm, thanks for your amazing work. I have tested all of your indicators and use some of...
IV Mcm With pleasure and thanks!
ashiash how to use this indicator can i use tradingview platform
zilliq Thanks @Nicolas. I tried to use it as Trend in a proorder system, but don't know why, it doe...
Suzu Yuk He is right. MT and mavgMT are not defined and causing errors.....
Maxime Baudin Super travail !
Yanic c'est top j'adore
Maxime Baudin Merci l'ami, passe une bonne semaine
IV Mcm Merci de même ;)
Nicolas C'est dans ce sujet: https://www.prorealcode.com/topic/trendline-une-approche-du-trading/ M...
Pensera Bonjour Nicolas, comment est-il possible de backtester cet indicateur? cela fait une erreu...
Nicolas Oui bien sûr, il doit y avoir pas mal de sujets dans le forum à ce propos.
Manu L. Bonjour Nicolas, j'ai créé un screener avec l'aide à la prog en TF weekly mais je voudrai...
wtangsiri C'est exactement le même signal que donne le croisement et le décroisement de deux EMA (7 et...
PHAN100 bonjour, j'ai un bug sur le programme recopié prorealtime me dit qu'il y a un problème à ...
IV Mcm Vous devez faire un clic droit sur le prix > propriété > ajouter indicateur Si vous...
punch1 Fonctionne pas chez moi il s'affiche rien pourtant j'ai bien fait le clic droit sur le prix ...
punch1 Je peux te faire un screen d'ecran si tu as un email :)

Top