Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tags

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

    Tags

    Hi,

    I came across this type of tag in a code for indicators:-

    Code:
    
    DrawLine( String.Format("TDSTLineSolid{0}", setupCompletedBar), tdst.CurrentBar-setupCompletedBar, tdstLine, 0, tdstLine, setupColor, DashStyle.Solid, 2 );
    
    or

    Code:
    
    publicstring NameIndex 
    { 
    get { return String.Format( "{0}{1}", Name, setupIndex ); } 
    }
    
    Could you please tell me what is the significance of the "numbers" in the braces {} and the purpose it serves in a tag?

    Thanks in advance!

    #2
    Kay, best would be to check into docs for the C# String Formatting, paramters in those braces would be used for alignment and general formatting options - http://blog.stevex.net/string-formatting-in-csharp/
    BertrandNinjaTrader Customer Service

    Comment


      #3
      will do bertrand. thx

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Renejm, Today, 06:17 AM
      0 responses
      3 views
      0 likes
      Last Post Renejm
      by Renejm
       
      Started by kazisl, Yesterday, 06:41 PM
      2 responses
      10 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by impactX, 05-04-2021, 01:07 AM
      2 responses
      11 views
      0 likes
      Last Post NinjaTrader_Melissa  
      Started by op1031, Yesterday, 05:51 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by aaadetos, 05-04-2021, 09:28 AM
      3 responses
      14 views
      0 likes
      Last Post NinjaTrader_Heath  
      Working...
      X