• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Print number of arguments

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

    Print number of arguments

    Where I can find the methods of Print() ??

    Can I use multiple parameters to Print()?

    For example I want to Print an array and text;

    int[] mumbers={2,3};

    Print(" The numbers are {0} & {1} ",numbers[0], numbers[1]);

    I have tried this code and its not working.

    Someone could help me?

    Thank you

    Luis

    #2
    Hello Luis,

    Thank you for your post.

    You can information on Print() at the following link: http://www.ninjatrader.com/support/h.../nt7/print.htm

    For the Print() here we would use the following:
    Code:
    Print(" The numbers are {0} & {1} " + numbers[0] + numbers[1]);
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by BelikeWater View Post
      Where I can find the methods of Print() ??

      Can I use multiple parameters to Print()?

      For example I want to Print an array and text;

      int[] mumbers={2,3};

      Print(" The numbers are {0} & {1} ",numbers[0], numbers[1]);

      I have tried this code and its not working.

      Someone could help me?

      Thank you

      Luis
      You are missing the String.Format directive in that statement.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by darkgreen, Today, 03:35 PM
      0 responses
      7 views
      0 likes
      Last Post darkgreen  
      Started by GTBrooks, Today, 02:44 PM
      3 responses
      14 views
      0 likes
      Last Post GTBrooks  
      Started by GLFX005, Today, 12:22 PM
      4 responses
      41 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by AspenHiker, Today, 08:37 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by MartinT, Yesterday, 01:12 PM
      3 responses
      17 views
      0 likes
      Last Post MartinT
      by MartinT
       
      Working...
      X