• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Darvas Question

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

    Darvas Question

    I have a question that pertains to a number of indicators but Darvas is a good example of my misunderstanding. Among other things, Darvas returns a bool BuySignal and bool SellSignal. In some of my code I try the following:

    if (Darvas(Close).SellSignal)
    {
    DrawArrowDown( etc.);
    }

    My problem is that I never get any DownArrows on my chart, at least on historical data. I haven't tried it on real time data.
    My DrawArrowDown code statement is OK because if I substitute true in the if statement then I get down arrows.

    I am wondering if I first need to check to see if my Darvas(Close).SellSignal contains a valid value before checking for true/false? If it doesn't contain a valid value then does my indicator throw an exception that prevents it from running properly?

    Darvas().BuySignal returns a bool and not a BoolSeries and I was wondering if that is presenting a problem for me in my understanding since I can't use the [0] to reference the current bar? Thanks in advance for the help in helping me understand.

    #2
    We will look into it. Thanks.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi higler !

      The problem in the Darvas indicator is fixed and the fix will be available with the next update.

      Thanks for reporting,
      Christian
      ChristianSenior Software Developer

      Comment


        #4
        Can you tell me if the problem is in the Ninja Script code? Should it return a BoolSeries instead of a bool or is there something else? This question is just for my own edification because I am trying to understand the programming difference between an indicator returning a bool vs a BoolSeries and how I can use the return values and the useage in historical data vs real time data. Thanks.

        Comment


          #5
          The problem is with the Darvas indicator and not with your code. We will provide a fixed version with next NT update available in a few weeks.
          DierkNinjaTrader Customer Service

          Comment


            #6
            Great, I can see someone else already posted on this. Looking forward to the fix. Thanks!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Sulfred, Today, 12:34 AM
            2 responses
            14 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by CopyPasteGhost, Today, 11:22 AM
            0 responses
            1 view
            0 likes
            Last Post CopyPasteGhost  
            Started by 1001111, Today, 10:23 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_PaulG  
            Started by NinjaCustomer, Today, 11:07 AM
            0 responses
            4 views
            0 likes
            Last Post NinjaCustomer  
            Started by NtFan, Today, 10:47 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X