Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 helpwanted, Today, 03:06 AM
    1 response
    11 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    9 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    387 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X