Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

question on using Donchain Channel in indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    question on using Donchain Channel in indicator

    I am considering using the mean value of the donchain channel as a value in an indicator. For example, if I use the value of an SMA, it's called SMA. What are the components of the Donchain Channel called in ninja script? It looks like the Mean line calculation is the 'value' of the Donchain, and the upper and lower lines are just derivitives (even though they are the drivers of the mean). Am I making sense here??

    I'll be more specific: if I want to track the cross of an MA vs. the Donchain Channel mean, how do I call the Donchain mean in a ninja script?

    #2
    Hi Bill, you could simply call the basic indicator overload without specifying a plot to use -



    double donchianMean = DonchianChannel(20)[0];

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X