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 mic414, Yesterday, 11:52 PM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by fmcap, Yesterday, 10:49 PM
          0 responses
          2 views
          0 likes
          Last Post fmcap
          by fmcap
           
          Started by iradielt, Yesterday, 10:06 PM
          0 responses
          2 views
          0 likes
          Last Post iradielt  
          Started by gbajaj, Yesterday, 03:35 PM
          2 responses
          11 views
          0 likes
          Last Post gbajaj
          by gbajaj
           
          Started by space_trader, Yesterday, 03:19 PM
          2 responses
          8 views
          0 likes
          Last Post space_trader  
          Working...
          X