Connect 3 lows

Viewing 2 posts - 1 through 2 (of 2 total)
  • #101553

    Hi guy’s !

    I’m able to connect with a segment 2 lows between them by zigzag. Here’s the code :

     

    But now I search to connect 3 lows together with a segment (by zigzag). So if the segment between the lows 1 and 2 and the segment between the lows 2 and 3 have pretty much the same angle then we draw a line connecting the 3 lows.

    How can I do this check ? :/

    #101573

    Without data arrays, a rough idea is to measure the rate of change (slope) between 2 lows (divide the price distance by the bars quantity between them). If the next slope is in the same range of value (to be defined), then the 2 extreme lows should be aligned.

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

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