Connect zigzag segment to the previous low

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #99277 quote
    MerryArter
    Participant
    New

    Hi everyone !

    I’ve create a code which can detect the lows (on the screenshot they are represating by the arrows).

    zz = zigzag[2](low)
    creux = zz[0]>zz[1]and zz[1]<zz[2]
    b=zz[1]
    
    
    if creux then
    oldbar=barindex-1
    DRAWARROWUP(oldbar, b-0.1)
    DRAWSEGMENT(oldbar, b, oldbar[1], b[1])
    endif
     
    return
    

     

    Now I’m trying to connect the last low to his previous one by a segment but as you can see it does no’t work :/ ! So i’ve made a mistake in the code but i can’t find where is the mistake …

    Thanks for your help guy’s ! 🙂

    Graphique.jpg Graphique.jpg
    #99295 quote
    robertogozzi
    Moderator
    Master

    There you go:

    zz = zigzag[2](low)
    creux = zz[0]>zz[1]and zz[1]<zz[2]
    b=zz[1]
    if creux then
       oldbar=barindex-1
       DRAWARROWUP(oldbar, b-0.1)
       Price = low[1]
       DRAWSEGMENT(oldbar, b, oldbar[1], Price[1])
    endif
    return
    x-16.jpg x-16.jpg
    #99326 quote
    GraHal
    Participant
    Master

    I added to here

    Snippet Link Library

    gerritk thanked this post
    #99328 quote
    GraHal
    Participant
    Master

    Could this way of using zigzag be used to plot Elliott Waves?

    #99329 quote
    robertogozzi
    Moderator
    Master

    For sure, Elliott Waves are just segments. You only need to know where to start and where to end plotting one!

    #99351 quote
    MerryArter
    Participant
    New

    Thank you so much ! 🙂

    #99393 quote
    Lighthouse
    Participant
    Master

    Could this way of using zigzag be used to plot Elliott Waves?

    If you are interested in Elliott Waves follow this blog http://studyofcycles.blogspot.com/

    Automatic plotting of Elliott Waves is meaningless 😉

    GraHal thanked this post
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Connect zigzag segment to the previous low


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
MerryArter @merryarter Participant
Summary

This topic contains 6 replies,
has 4 voices, and was last updated by Lighthouse
6 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/23/2019
Status: Active
Attachments: 2 files
Logo Logo
Loading...