Donchian

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #77931 quote
    ChrisNYEChrisNYE
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    ChrisNYEChrisNYE
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    ChrisNYEChrisNYE
    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
    ChrisNYEChrisNYE
    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
    ChrisNYEChrisNYE
    Participant
    Senior

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

    #77947 quote
    robertogozzirobertogozzi
    Moderator
    Legend

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

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 ChrisNYEChrisNYE
8 years, 1 month ago.

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