Help with Higher High, lower low price swing Indicator and Segment drawings

Forums ProRealTime English forum ProBuilder support Help with Higher High, lower low price swing Indicator and Segment drawings

Tagged: ,

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

    hi there,

     

    first, i want to thank you all for your inputs and help. Even if i wasn’t a register member yet, you helped me out quite some time. Unfortunately I had to register now, since I can’t figure out a solution to this (easy) issue – might be the time by now or not enough coffee lately.

    I try to come up with an indicator / segment drawing as you can see in the attachment (took the image from ninja trader) with all the segments and captions. Even after checking the forums and the library and even trying to adjust existing things, i just don’t come up with a solution (as i said, might be the time as well).

    Would be amazing if you could help me with links existing solutions i can adjust or with better search terms (yes, i used the search function 🙂 ) or with some parts of the coding. As I said, currently i am dump struck, so I don’t even find the correct entry points to this thing…

    thanks for all your support and have a great week

    best

    Moritz

    #79228

    So, for my perfect understanding, you want the indicator to draw those segments from highest high and lowest low? How are they found? With Fractals? (best and easier solution IMO).

    HL and HH must be consecutive points?

    Fractals ZigZag could be the major part of the solution, looking for consecutive points as patterns could then be done with a loop.

     

    #79244

    Salut Nicolas,

    thanks for your quick reply.

    Sorry for being not 100% precise. After having some more time to think and some coffee, here is more detail what i wanted to do (and the reason/difference why)

    • yes, should be zig zag
    • starting point in the past to today (number of bars as variable)
    • first bar to identify if high or low compared to the following (simple high high, low low comparison). if not identifiable, take next bar (just for the most unlikely event, that the first bar is engulfed by the second)
    • first bar with single identification (high or low) defines the starting of the zigzag (high > high [1] then high = 1 else high = 0 ; low < low [1] then low = 1)
    • then i was considering a loop to go from the past to the present bars, each identify if it is a High or Low compared to the previous (high > high [1] then high = 1 else high = 0 ; low < low [1] then low = 1)
    • the identifier for a switch from zig to zag would be the change from a Bar with  Low=1 and High = 0 to a High=1 and Low=0 and Vize Verza; in case of engulfing the previous turning point makes the final call
    • as last step, drawing the segments and the trendiness and the captures with higher high, higher low, lower high and lower low; always compared to the previous high or low

    difference to fractals (if i am not completely missing something)

    • line would be drawn real time always on latest bar
    • not pre-defined timeframe for double check

    i hope this makes it clear

     

    thanks

    Moritz

     

    PS: but, yes, fractals are easier even if not with the same accuracy; others would say over engineered

     

     

    #80649

    hi there,

    any support on my idea? i got the zig zag but thats it….

    mainly I am currently stuck with an idea how to compare the lows/ highs to previous lows/highs in order to identify higher highs/lower highs and the higher and lower lows – i guess that is a more general question on how to compare results to previous results…

    thanks

    Moritz

    #80673

    This rough code identify HL HH LH LL from zigzag.

    Since the internal instruction of the platform uses only one price value to calculate the zigzag, I used 2 instructions at a time, one to identify the peaks (High) and another one for the troughs (Low). Then, to draw the segments, and as we do it by advancing in the history, to draw a new low, the previous point must be a peak, except that sometimes it is not the case if the price did not go high enough for example to form a peak, so that is why we can see several successive low points (same goes for high points). In this case only the first point is identified.

    To check if a trend is reversed we can start from this first test by checking the last identifications.

     

    #80678

    Salut Nicolas,

    you are a super star. thanks.

    great support – as always – from your side.

    thanks again

    Moritz

    #80714

    At line 22 it should be written LH (since it is a Lower High)

    2 users thanked author for this post.
    #80737

    @Ciccio
    Thanks! 🙂
    I modified the code.

    1 user thanked author for this post.
    #106300

    Hi Nicolas

    this is the exact indicator that I’m looking for. I’m using trading view pine script to plot in your code and it failed and says not working. I’m really new to this thing. Can you help me how to put in this code to trading view ?

    thanks

    kevin

    #106343

    Sorry Kevin but our website is not providing help for tradingview platform. All codes here are usable in the ProRealTime trading plaform: https://trading.prorealtime.com/en/

    Enjoy our free help and hundred of codes by using PRT 😉

    #109623

    Hi Nicolas, what about to outline a ProOrder Strategy based on this indicator? Thank you

    #109627

    Please describe it into a fresh new topic in ProOrder section, to see how I could help coding it. Thank you.

    #162225

    I  found this while looking for a code to mark HH, HL, LL, HL on charts. The code above works well on a daily chart. How can I adjust it to work on any timeframe? Thanks

    #162311

    adapt the percent settings, it is set to 0.5% by default in the first line of the code.

    #179074

    Hi Nicolas,

    Great indicator however when I plot it on an intraday chart, I use 20sec and 1min, initially the indicator plots the swings correctly however as the realtime feed continues the indicator starts to plot the very small swings.  I have no idea why this is occuring.  I’ll post two charts as an example of what is happening.  Unless this code is not capable to run with streaming prices?  If there is a solution to this I have a request for a mod to the indicator however I’ll let you review this first problem/quesion.

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

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