• 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

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:
        https://www.youtube.com/watch?v=K8v_...tu.be&t=48m45s

        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 SDaCosta30, Today, 04:19 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by memonolog, Today, 02:39 AM
        2 responses
        20 views
        0 likes
        Last Post memonolog  
        Started by memonolog, Today, 07:07 AM
        0 responses
        4 views
        0 likes
        Last Post memonolog  
        Started by juanram, Today, 06:01 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by dastaan, Today, 06:29 AM
        0 responses
        8 views
        0 likes
        Last Post dastaan
        by dastaan
         
        Working...
        X