Donchian

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #77931 quote
    ChrisNYE
    Participant
    Senior

    Hi Guys what is the code for the middle donchian channel line? I know the top and bottom are highest and lowest, but cannot code the middle?

    #77933 quote
    robertogozzi
    Moderator
    Master

    From https://www.prorealcode.com/prorealtime-indicators/donchian/:

    Upper = HIGHEST[a](HIGH[1])
    Lower = LOWEST[a](LOW[1])
    Middle = (Upper + Lower) / 2
     
    RETURN upper AS"uper", lower AS"lower", middle AS"middle"

     

     

    #77936 quote
    ChrisNYE
    Participant
    Senior
    donchianUpperBand=Highest[50](close[1])
    donchianLowerBand=Lowest[50](close[1])
    

    This is what I coded, but can’t get middle to work?

     

    #77939 quote
    Nicolas
    Keymaster
    Master

    Did you try the code from Roberto? It should work.

    Middle of a Donchian channel is the same as Kijun from Ichimoku, FYI.

    #77940 quote
    ChrisNYE
    Participant
    Senior

    Yes, but this code is an itf file which is an indicator. I am trying to code it for my algo trading.

    #77941 quote
    ChrisNYE
    Participant
    Senior

    I see know that it is an indicator I can use it in my code by clicking on it and it will automatically code it for me. THANK YOU

    #77942 quote
    ChrisNYE
    Participant
    Senior

    How do I put this on my price chart rather than a field below the price?

    #77947 quote
    robertogozzi
    Moderator
    Master

    Click on the WRENCH in the upper left corner of your price chart, then click ADD and select the indicator.

    #77998 quote
    ChrisNYE
    Participant
    Senior
    Thank you
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Donchian


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
ChrisNYE @chrisnye Participant
Summary

This topic contains 8 replies,
has 3 voices, and was last updated by ChrisNYE
7 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 08/10/2018
Status: Active
Attachments: No files
Logo Logo
Loading...