Donchian Channel .. without channel displaying on recent candle

Forums ProRealTime English forum ProBuilder support Donchian Channel .. without channel displaying on recent candle

Viewing 11 posts - 1 through 11 (of 11 total)
  • #119525

    Hope somebody can help me

    How can i display a Donchian Channel with xPeriods that do not print channel on the resent candlestick like in attached example file

    How have to change the code?

    #119529

    >> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<
    🙂

    #119531

    Your code is fine, but you cannot use RETURN since it will not allow you to skip the current candle.

    You’ll have to use DRAWSEGMENT, instead, to plot data between the second last candle and the previous candle.

    #119535

    Try this (not tested):

    But you won’t be able to change the style of plotted lines in versions prior to 11.

    #119538

    Thank you very much Robert,

    is it possible to draw lines without brakes (like in “original” Donchain)?

    #119543

    Unfortunately segments are straight llines, so it’s not possible.

    #119545

    Ok, thanks

    Last Question … how can i print price label of the resent segment?

    #119558

    You cannot, since there’s an instruction to allow drawing object only on the last bar, but then you wouldn’t see the previous bars, only the last one drawn. It is useless in your case.

    If we display a price label everytime your chart would become so messy!

    Try this modified version:

     

     

    1 user thanked author for this post.
    #119572

    SUPER Roberto … your last version is exactly what i want to use

     

    Thanks a lot !!

    #119582

    You could create a separate indicator that just draws the text of the value you want on the last bar only then apply it as a separate indicator to the price chart as well as Roberto’s last code.

     

    2 users thanked author for this post.
    #119609

    Super idea !

     

    Done! It works.

     

    Thank you Vonasi

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

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