PP Month, problem getting it

Forums ProRealTime English forum ProOrder support PP Month, problem getting it

Viewing 14 posts - 1 through 14 (of 14 total)
  • #148276

    Hello everyone!

     

    I hope you are well.

     

    I am coding a very simple code that sells or buys on the first cross of the Monthly PP. However I am not able to get it right. In the following code I can’t mange to get the correct Monthly PP…

     

    Can someone help…? 🙂

     

    Thanks!

     

     

    #148280

    As English is the language you chose to use, this topic is moved from french proorder forum to english proorder forum, please see rules in yellow box below created in order to make sure the forums remain tidy for everybody’s ease of use, thank you

    #148287

    Sorry, my bad. Thanks Noobywan!

    1 user thanked author for this post.
    #148296

    Make sure line 2 of the indicator reads:

    since you are using MODE 0.

     

    #148485

    Thanks @Robertogozzi. However I can’tfigure out what you mean… If I add it to line 2 it gets me an error…

    #148497

    How do you know the values differ?

    I think because the indicator (by Nicolas) from which you copied the formula plots a different value, doesn’t it?  Well… the predefined mode in that indicator is 1, while your code uses mode 0, change mode in your code or the initial default setting in the indicator.

     

    #148501

    For instance, when I write “graph pp”, in August, the Monthly PP was 12624.33 and the instruction above that I use in the code give me a different value, whatever the mode of calculation… I can’t find the real Monthly PP…

     

    Do you have suggestions?

    #148503

    Here is another version of the code that I tried but no evolution. Still wrong calculation of the monthly PP

     

     

    #148507

    As  asked you before, why do you say it is incorrect?

    What is the correct value (and how is it calculated)?

     

    #148508

    It’s calculated with PRT Monthly PP. I compare what my code tells with the PRT ones

    #148513

    I just found that it calculates it not when we change month exactly. I calculate it about 1 hour after we change month. Do you know why?

    #148519

    OpenMonth (not Month) should be used, replace line 40 with:

     

     

    #148534

    Thanks @Robertogozzi, it helps a bit I think but didn’t solve the problem…

     

    Do you have a Monthly PP code that works for you in 1 minute timeframe ?

     

    Here is a picture of what it gives me and what’s real in PRT…

    #148537

    Your code above works fine, but uou’ll have to OpenMonth throughout your code, not just line 40. And you have to use enough bars (I used 100K 1-minute units).

     

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

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