Indicator Pivot Bug

Forums ProRealTime English forum ProBuilder support Indicator Pivot Bug

Viewing 5 posts - 1 through 5 (of 5 total)
  • #163139
    reb

    Hi

    I am using as part of an indicator the code of Pivot point as below :

     

    I have noticed sometimes differences between the code and my eye. After some reseachs, I have found the reason of those discrepencies: the Pivot point calculation.

    To simplify, the indicator could be :  if close > Pivot, it returns 1 and if close < Pivot, it returns -1

    the black line is the native Pivot from PRT and the purple one the result of the above the code.

    For a reason I don’t understand the Pivot value at the current bar is different. (see pic below)

    This difference disappears if I reload PRT, and it comes back the next bar

    Do you have an idea about this issue ?

    Thanks in advance

    Reb

    #163151

    reb – Topic moved to ProBuilder forum as it is an indicator issue. I have also inserted the code that you posted using the ‘Insert PRT Code’ button. Please ensure that you do the same with all future posts that include code. I have edited your post and inserted the code.

    There have been several posts recently about DCLOSE, DHIGH, DLOW and DOPEN not returning the correct values and whilst we wait for PRT to provide a fix it is best to use MTF to return the daily time frame high, low, open and close values rather than use DCLOSE, DHIGH, DLOW and DOPEN.

    #163155
    reb

    ok thanks Vonasi for your answer

    #163156
    reb

    Here is the new code

     

    #163167

    @reb

    Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.

    Thank you 🙂

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

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