VISUAL LEVELs INDICATOR with Donchian channel

Forums ProRealTime English forum ProBuilder support VISUAL LEVELs INDICATOR with Donchian channel

Tagged: ,

Viewing 15 posts - 1 through 15 (of 28 total)
  • #153891

    Hello,
    I think that a level indicator based on Donchian channels helps to find more easily the levels of slowdowns/reversals.
    Can anyone code an indicator that draws lines that extend the high/low of the Donchian channels please ?
    In my example I have used the Donchian channels over 500 periods and you can see that it adds a very useful visual aid.

    1 user thanked author for this post.
    #156651

    This indicator is a great idea @Soyouzzz1 !

    #156751

    The below code plots the last “maxlines” of the Donchian Channel 500 periods, the same way as described by @Soyouzzz1

     

    3 users thanked author for this post.
    #156810

    Hello @Nicolas, can you send us the indicator in itf, because there is a calculation error when copying and pasting?

    #156853

    I don't think it's related to your copy paste, which instrument and UT I'm going to attempt to reproduce, there are well over 500 units on your chart?

    #156872

    I think it must be some error in the Donchian calculation as I just coded this totally different version and it also has a ‘calculation error’

     

    1 user thanked author for this post.
    #156987

    Thank you for your help @Nicolas and @Vonasi.
    I also had the same problem: the indicator returns an error message.

    According to Vonasi, the problem comes from the Donchian channel calculation performed by PRT.
    So I incorporated the calculation in your 2 indicators, replacing the lines :

    by

     

    DH(Donchian High) and DL(Donchian Low) are variables with default values of 500.

    In Nicholas’ indicator it effectively traces the lines, but in Vonasi’s indicator it did not allow to display them.

     

    To create an indicator with a high probability of reversal, can these 3 points be improved?

    1. Removal of levels when the price has crossed them

    In the picture posted in my first message, I make the lines continue until the prices go through them. Once crossed the levels are no longer relevant and pollute the image by sending lines whose probas of reversing the price are lower than lines that have not been crossed.
    Example in image 1.DL

    To avoid erasing levels that have been briefly crossed, if you can add two filters (modifiable by a variable) to choose to keep :
    -lines that have been crossed by less than 5/10/x points
    and
    -lines whose price remained less than 1/2/x candles beyond .
    Example in image 2.DL

    2. Display of the most relevant levels

    The current indicator takes into account all levels of Donchian.
    But in a trend we can see that a Donchian level is often only a pause level of the trend and this level is quickly broken.

    To avoid displaying levels that are not solid, if you can add two filters (modifiable by a variable) to choose to keep only:
    – levels that have reversed prices for more than 20/50/x candles
    and
    – levels that have reversed prices by more than 20/50/x points (an SMA5 can be used to choose the timing of the beginning and end of the reversals)
    Example in images 3.DL and 4.DL

    3. Display levels in smaller time units

    To trade reversals, traders look for levels/areas on large time units and use setups on small time units to take positions with good timing.

    For this it is important to be able to display the indicator levels on several time units, for example :
    – display the levels detected by the indicator in H4 on 5min.
    – display the levels detected by the indicator in H1 over 1min.

    Not only will this allow discretionary traders to display all important information on the same screen, but it will also allow them to program trading algorithms where everyone can use their own setups to enter and exit positions.

    If we can create this indicator, I will share in the library a reversal algorithm created from it.

    Thank you for your help. 😀

     

    #157609

    Hello   @Nicolas and   @Vonasi ,someone can help me ?

    #157624

    What you are requesting involves a lot of work. I will dig into it but not sure when it will be done.

    #157672

    Here is a first draft that use the highest levels only.

    These are not tested and over complicate the calculation:

    To avoid erasing levels that have been briefly crossed, if you can add two filters (modifiable by a variable) to choose to keep :
    -lines that have been crossed by less than 5/10/x points
    and
    -lines whose price remained less than 1/2/x candles beyond .

     

    1 user thanked author for this post.
    #158002

    Hello @Nicolas, thanks for your help, this is a very good start !

    I tried to change the color of the segment because it almost doesn’t show, but it seems that this is not possible on Prorealtime?

    If the color of the segment is not changeable can we create zones that would start from the top and bottom of the candle wicks that were used to create the Donchian levels?

     

    #158006

    As you can see in my screenshots, these zones often allow you to take trades with a high probability of winning on the first rebounds :

    #158025

    Just add COLOURED(0,0,0) at the end of lines 40 and 42.

    Change the zero values to any combination found here to draw the lines and text in whatever colour you want.

    http://cloford.com/resources/colours/500col.htm

    #158032

    Hello, it doesn’t work with or without the comma.

    #158037

    Because you didn’t spell COLOURED correctly.

    No comma is needed.

    1 user thanked author for this post.
Viewing 15 posts - 1 through 15 (of 28 total)

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