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 Mizzouman1, Today, 07:35 AM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by RubenCazorla, Today, 09:07 AM
        2 responses
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by i019945nj, 12-14-2023, 06:41 AM
        7 responses
        82 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by timmbbo, 07-05-2023, 10:21 PM
        4 responses
        158 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by tkaboris, Today, 08:01 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X