Display a signal a day before/on the anterior candle.

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

    Hi everyone !

    I would like to know if it’s possible to display a signal on the anterior candle ? And if it’s possible how can I do that ? 🙂

     

    To illustrate this idea I have this example : I try to detect the bottom of a wave with zigzag. I use this code :

    zz = zigzag[2](low)
    base = zz[0]>zz[1]and zz[1]<zz[2]
    
    return(base)

    So, this code detect the bottom of the wave and display the signal a day after as you can see on the screenshot.

    But I want the signal on the candle of the bottom of the wave (vertical line) :/ !

     

    Thanks for your reply guy’s.

    Capture-2.jpg Capture-2.jpg
    #97863 quote
    Vonasi
    Moderator
    Master

    You will need to draw something at barindex -1.

    zz = zigzag[2](low)
    base = zz[0]>zz[1]and zz[1]<zz[2]
    
    if base then
    drawvline(barindex-1)
    endif
     
    return
    MerryArter thanked this post
    #97864 quote
    MerryArter
    Participant
    New

    Really nice 😀 !

    Thank you !

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

Display a signal a day before/on the anterior candle.


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
MerryArter @merryarter Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by MerryArter
6 years, 9 months ago.

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