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 GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,227 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        7 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        440 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        12 views
        0 likes
        Last Post FAQtrader  
        Working...
        X