Pivot Point Hi Low Indicator?

Forums ProRealTime English forum ProBuilder support Pivot Point Hi Low Indicator?

Viewing 15 posts - 1 through 15 (of 15 total)
  • #12382

    Thank you in advance for looking at this post. I have been trying to code an indicator that only shows the last highest high of 7 days and only the lowest low of 7 days with an arrow up or down. The code i have so far is below, but it does not look correct. Can anyone here see what i am doing wrong. Once I get it right, i want to add a moving average to the indicator to return a chart that looks something like:

    https://www.youtube.com/watch?v=kVyMj1zDHCY

    Current Code:

     

    Also attached is a picture of what the chart looks like with this code. HELP!!????

     

    #12390

    So you want to throw arrows on chart when you are breaking the highest high and lowest low of the last 7 periods?

    #12462

    Hi Nicolas,

    I am wanting to identify the highest high of the past 7 days and the lowest low of the past seven days. I then want to apply a line/segment or moving average to  those points as is shown in the youtube link. I also want to create a CMO indicator that is based on the highs and lows of the created indicator. I have tried to code this myself, but lack the coding knowledge to achieve this. The nearest i have been able to achieve is a segment on a the high. Any ideas?

    Regards,

    Travis

    #12466

    The highest high and lowest low of the past 7 days is nothing more than a donchian channel of 7 periods 🙂

    About the CMO indicator, could you please explain me a bit? I prefer words than a youtube video, please.

    #12480
    #12490

    Ok thanks, I coded it. Please find attached the indicators and how it feels on PRT 10.2

    Indicator also added to the Library : http://www.prorealcode.com/prorealtime-indicators/bar-count-reversals-pivot-points-highlow/

    #48008

    thank you for indi.  But why it shows pivots 3 periods forvard ? How can I change it?

    #48019

    Because the detected levels are available 3 bars later 🙂 and also because more than 1 year ago, it was not possible to plot in the past, this is now possible with version 10.3.

     

    #48022

    Thank’s.. How can I change code to plot pivots x periods back ? If I use period 4  , plot pivots 4 periods backward…

    This version is little bit chaotic for me.

    #48029

    You can replace the code of the indicator with this one:

    Now, dots begin to draw at the right bar in the past until a new highest high or lowest low is discovered.

    #48052

    Thank you. Works well. last thing, color is black. how can I change it?

     

    Thank you very much.

    #48082

    Just the RGB color you want for each of the dots code, example (red for lower ones and green for upper ones)

     

    #48087

    Thank you.

    I compre this pivotHiLo with tradingview pivot HiLo.  Is possible add this formula ?    ” //h1 is a pivot of h if it holds for the full length ”

    ” //The length defines how many periods a high or low must hold to be a “relevant pivot”   ”

    Tradingview code

    study(title=”Pivot Points H/L”, shorttitle=”Pivots H/L”, overlay=true)
    len = input(14, minval=1, title=”Length”)
    //The length defines how many periods a high or low must hold to be a “relevant pivot”

    h = highest(len)
    //The highest high over the length
    h1 = dev(h, len) ? na : h
    //h1 is a pivot of h if it holds for the full length
    hpivot = fixnan(h1)
    //creates a series which is equal to the last pivot

    l = lowest(len)
    l1 = dev(l, len) ? na : l
    lpivot = fixnan(l1)
    //repeated for lows

    plot(hpivot, color=blue, linewidth=2, offset= -len+1)
    plot(lpivot, color=purple, linewidth=2, offset= -len+1)
    //plot(h1, color=black, style=circles, linewidth=4, offset= -len+1)
    //plot(l1, color=black, style=circles, linewidth=4, offset= -len+1)

     

    #48088
    #48093

    Ok.  Thank you very much.

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

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