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:
        Dive into manipulating C# code from within an unlocked NinjaScript strategy using the NinjaScript Editor.NinjaTrader 7 is an award winning end to end online ...


        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 Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        30 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        943 views
        0 likes
        Last Post spwizard  
        Started by Max238, Today, 01:28 AM
        0 responses
        9 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by rocketman7, Today, 01:00 AM
        0 responses
        4 views
        0 likes
        Last Post rocketman7  
        Started by wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        28 views
        0 likes
        Last Post wzgy0920  
        Working...
        X