Marking of redrawing indicators

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #204954 quote
    marlow2017
    Participant
    Average

    I understand that the ZigZag indicator redraws, however I wonder if it might still be useful in situations where there is support/resistance (such as a downtrend channel) when one is expecting a turning point near a certain level.

    In order to examine this it would be useful to mark the points where the ZigZag turned and then corrected continuing as before.

    Is it possible that someone could show the code to do this please, if possible?

    It then might also be useful code for users to adapt and apply to other such redrawing indicators.

    #204997 quote
    Nicolas
    Keymaster
    Master

    where the ZigZag turned and then corrected continuing as before

    It could be done only during live data stream, not in history with the zigzag instruction.

    Let’s try with this code:

    zz = ZigZagPoint[10](close)
    
    if zz<>$zz[0] then 
     $zz[0]=zz
    endif 
    
    return $zz[0]

    In yellow zigzag real time (code started running on the vertical line), and white line is the zigzag indicator that repaint.

    marlow2017 thanked this post
    #205021 quote
    marlow2017
    Participant
    Average

    The white line does show where the ZigZag will end on that candle’s close, but not where it has changed direction (upward versus downward slope, with corrections).

    I was hoping that the program might allow a current value could be noted on the chart with a mark at the end of that timeframe, and then not move – even if the indicator’s mathematics altered the position on another day. This might then be of some help with any other indicators that redraw.

    It does look as though I will need to limit this to a few instruments and draw in by hand, but thank you for trying Nicolas. Much appreciated.

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

Marking of redrawing indicators


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
marlow2017 @marlow2017 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by marlow2017
3 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 11/28/2022
Status: Active
Attachments: 1 files
Logo Logo
Loading...