Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

building my own Donchian

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

    building my own Donchian

    Could someone tell me method to build my own Donchian indicator? Essentially, there is a data stream that consists the trade prices (e.g. trade[0], trade[1], trade[2], and so on upto trade[n]). My period is j where j < n.

    For example - n = 7, j = 3

    Period - 2
    trade[0] = 100.01
    trade[0] = 100.03
    trade[0] = 100.05

    Period - 1
    trade[0] = 100.02
    trade[0] = 100.07
    trade[0] = 100.04

    Period - 0
    trade[0] = 100.05

    Thanks

    #2
    Hello NaviSharma,

    Thank you for your post and welcome to the forums!

    Could you please elaborate more on what you are looking to do?

    If you just looking to see how the Donchian is done within NinjaTrader you can peek at the code by going to Tools -> Edit NinjaScript -> Indicator... -> Donchian Channel
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    83 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    45 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    65 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    57 views
    0 likes
    Last Post CarlTrading  
    Working...
    X