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 The_Sec, Today, 02:29 PM
    0 responses
    1 view
    0 likes
    Last Post The_Sec
    by The_Sec
     
    Started by tsantospinto, 04-12-2024, 07:04 PM
    4 responses
    62 views
    0 likes
    Last Post aligator  
    Started by michi08, 10-05-2018, 09:31 AM
    3 responses
    740 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by sightcareclickhere, Today, 01:55 PM
    0 responses
    1 view
    0 likes
    Last Post sightcareclickhere  
    Started by Mindset, 05-06-2023, 09:03 PM
    9 responses
    259 views
    0 likes
    Last Post ender_wiggum  
    Working...
    X