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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    256 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    166 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    170 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    253 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    203 views
    0 likes
    Last Post CarlTrading  
    Working...
    X