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

darvas levels

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

    darvas levels

    Hi,
    Is there a function/script to get prices of historical darvas levels? I can't seee anything other than darvas levels given a bar #.
    thanks,
    David

    #2
    Hello trader3000a,

    Thanks for your post.

    Yes, you can access historical Darvas values.

    You can specify the bars ago value you wish: Darvas().Upper[int barsAgo] Darvas().Lower[int barsAgo]

    Please see the help guide here: https://ninjatrader.com/support/help...tml?darvas.htm

    If this does not answer your question, please feel free to post a screenshot of a chart that illustrates what you are trying to find.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hi Paul, I don't want to guess at where the last unique darvas level might be based on bars. I want to know what the previous unique darvas level was, and the one before that, etc.

      Comment


        #4
        Hello trader3000a,

        Thanks for your reply.

        The Darvas levels can change on a bar by bar basis until some level has been reached and it appears the indicator draws only after a level is confirmed.

        The indicator also exposes a bool called BuySignal and SellSignal that seem to line up when the levels change. I would suggest using those signals as a means to know when the indicator has changed levels. I don't know how many previous levels you are looking to access but each time you get a buy or sell signal you could save the Darvas level at that time.



        Paul H.NinjaTrader Customer Service

        Comment


          #5
          thx Paul, cool idea. i'll check it out

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Today, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Today, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          21 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          10 views
          0 likes
          Last Post cre8able  
          Working...
          X