Help with code please ADX DMI with EMA

Forums ProRealTime English forum ProBuilder support Help with code please ADX DMI with EMA

Viewing 7 posts - 1 through 7 (of 7 total)
  • #23170

    Hello all, only just found this site, have been using PRT for a few years now. Would anyone know how to code ADX/Directional movement but using exponential averages instead of wilders smooth averages. I basically want the directional movement DI+ and Di – with ADX line how it is in PRT now but with exponential averages used instead of wilders. Been struggling to do this for a long time, any help would be greatly appreciated.

     

    Thanks

    #23225

    Please find below a quick fix to get the ADX and Directional Movement Index in the same window, calculated with Exponential Moving Average instead of Wilder’s Average.

    Wilders smoothing formula is almost like EMA, for your information. A bit more smoothed though.

    Here is the code:

     

    #23235

    Thank you very much for your reply, what is the original code for the directional movement indicator in PRT?

     

    Thanks

    #23247

    This one but without any of the ADX formula (lines 24 and 25) and with the Wilders average instructions I commented with //

    #23253

    Thank you for your reply. I’m new to the coding so struggling a bit. I loaded up this code and it has the adx but what i was looking for was for it to look like the one in the screenshot but calculated on the exponential with just DI+, DI- and ADX. I’m probably missing something obvious but thanks again for your reply.

    #23281

    Oh ok, so you don’t need DMI but only DI+ and DI-, so please find below the modified code:

     

    #23704

    Thank you very much for this.

Viewing 7 posts - 1 through 7 (of 7 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login