WilderAverage Calculation

Forums ProRealTime English forum ProBuilder support WilderAverage Calculation

Viewing 10 posts - 1 through 10 (of 10 total)
  • #17320

    Hello,

    i want to rebuild the RSI Indikator of ProRealtime in Java. The ProRealtime Example is very helpful:

    But i dont know how to calculate the wilderAverage. What code/formula belongs to the wilderAverage?

     

    Thank you for help!

    #17321

    Found this formula on Internet :

    EMA formula = price today * K + EMA yesterday * (1-K) where K = 2 / (N+1)

    Wilder EMA formula = price today * K + EMA yesterday (1-K) where K =1/N

    Where N = the number of periods.

    Hope it helps you.

    #17421

    Not really 🙁

    Easy Example with 3 Candles:

    Candle1: Close 4897
    Candle2: Close 4934
    Candle3: Close 4951

    Value for Candle3

    UP = MAX(0, close – close[1]) –> 4951 – 4934 –> 17
    DOWN = MAX(0, close[1] – close) –> 4934 – 4951 –> -17

    upMA = wilderAverage[p](UP) –> wilderAverage[1](17) –> 17
    downMA = wilderAverage[p](DOWN) –> wilderAverage[1](-17) –> 0

    upMA = wilderAverage[p](UP) –> wilderAverage[2](17) –> 20,87160 ???
    downMA = wilderAverage[p](DOWN) –> wilderAverage[2](-17) –> 0,20206 ???

    upMA = wilderAverage[p](UP) –> wilderAverage[3](17) –> 19,65567 ???
    downMA = wilderAverage[p](DOWN) –> wilderAverage[3](-17) –> 0,71841 ???

    I don’t get it…

    The difference of the last two candle’s I have to put in the wilderAverage?

    Maybe I can get the Code from ProRealtime as the RSI Example?

    #17424

    I’m curious, why do you want to rebuild it in Java?

    #17430

    I’m a customer of IG Markets. I trade with the java api from IG Markets. But i get the signals manually from ProRealtime (with IG Data). The IG api has the possibility to get candle Stick data. Therefore i want to automate the generation of signals.

    Thats the reason why i need the correct calculation of RSI from ProRealtime in my java application. Specially the calculation of the wilderaverage…the rest calculation of RSI is easy and clear.

    I hope you understand…if not i have to post it in German.

    #17447

    That’s ok, I finally found the good formula and successfully recoded the same formula as the PRT one, here is the code:

     

    #17498

    I dont get it 🙁

    here is my code to check the wilderAverage (its form the RSI example)

    Your code returns different values. I think the wilderAverage of ProRealtime returns the differents between the close prices, but i dont know how they are calculate…

    Thanks for help!

    #17514

    The code I gave you return exactly the same values as the one of the platform, did you try it at least?

    #17518

    Yes i tried…

    here is my result.

    #164205

    I know it’s a really old post.
    Anyway I’ll add the RSI with wilderAverage recoded here for people who will need that:

    It needs some bars to converge to the PRT RSI indicator.

    1 user thanked author for this post.
Viewing 10 posts - 1 through 10 (of 10 total)

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