Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Data read error

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

    Data read error

    Good morning,
    in the attached image you see that the code generated a Long on 25/07/2017.
    The code says instead: if (Low [0] <= Darvas1.Lower [1])
    {
    Golong ();
    }
    Am I wrong or is the Darvas indicator?
    Thank you.
    Roberto
    Attached Files

    #2
    Hello Italy,

    Thank you for your note.

    So I can best answer your question, could you please provide more detail on what you're question is exactly?

    Code:
    Am I wrong or is the Darvas indicator?
    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Hi Alan,
      in the code I wrote:
      if [Low [0] <= Darvas1.Lower [1])
      {
      Golong ();
      }
      If you look at the chart, see that there is a Long on November 25th.
      There should not be a Long!!
      Low [0] (11-22-2017) is> at the value of the Darvas indicator (Red line).
      Did you understand what I mean?
      Roberto

      Comment


        #4
        Hello Roberto,

        Yes, I understand.

        I would suggest adding print statements to check the value Darvas1.Lower [1] on the date of the 22nd.

        I may look like,

        Code:
        Print(Time[0].ToString()+ Darvas1.Lower [1].ToString());
        I’ve provided a link to a youtube video which covers an example of using prints to understand behavior:


        I’ve provided a link covering debugging which you may find helpful.
        Debugging: http://ninjatrader.com/support/forum...ead.php?t=3418

        Please let us know if you need further assistance.
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        32 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        127 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        182 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        94 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        138 views
        0 likes
        Last Post cmoran13  
        Working...
        X