Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

System.Double[] Instead Of Value

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

    System.Double[] Instead Of Value

    I have run across this before, but cannot remember what the problem is...
    When I output some values from my script for debugging I receive "System.Double[]" Instead of a value. What is that telling me?

    #2
    Please provide exact code snippets of what exactly you are printing. Thank you.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      OK!

      Code:
      Upper[CanNumber] = (SMA(period[CanNumber])[0] + (numStdDev[CanNumber] * StdDev(period[CanNumber])[0]))/Smooth[CanNumber];
      Lower[CanNumber] = (SMA(period[CanNumber])[0] - (numStdDev[CanNumber] * StdDev(period[CanNumber])[0]))/Smooth[CanNumber];
      
      Print(macd +", "+macdAvg+", "+Upper+", "+Lower);
                  }
      "Upper" and "Lower" are returning "System.Double[]"
      Last edited by Sleeping Troll; 03-26-2010, 10:34 AM.

      Comment


        #4
        You likely need to actually print an exact item from that array.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          DOH...(slap) Thx.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by sinpeople, Today, 04:38 AM
          0 responses
          10 views
          0 likes
          Last Post sinpeople  
          Started by Futurestrader00, Yesterday, 06:14 PM
          1 response
          17 views
          0 likes
          Last Post cincai
          by cincai
           
          Started by ballston, Today, 06:32 AM
          0 responses
          4 views
          0 likes
          Last Post ballston  
          Started by Danila, Today, 04:38 AM
          2 responses
          7 views
          0 likes
          Last Post Danila
          by Danila
           
          Started by kiffgj, Today, 04:23 AM
          0 responses
          8 views
          0 likes
          Last Post kiffgj
          by kiffgj
           
          Working...
          X