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 DTSSTS, Today, 11:35 AM
          0 responses
          1 view
          0 likes
          Last Post DTSSTS
          by DTSSTS
           
          Started by op1031, Yesterday, 05:16 PM
          1 response
          8 views
          0 likes
          Last Post NT-Roland  
          Started by sinpeople, Today, 07:20 AM
          1 response
          3 views
          0 likes
          Last Post NT-Roland  
          Started by Frank1000, Today, 03:05 AM
          1 response
          8 views
          0 likes
          Last Post NT-Roland  
          Started by ntdev, Today, 01:14 AM
          4 responses
          16 views
          0 likes
          Last Post ntdev
          by ntdev
           
          Working...
          X