Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Programmatically exposing strategy name for output

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

    Programmatically exposing strategy name for output

    Hi fellas-

    I haven't posted in a while and my skills are a little rusty. I believe I once knew the answer to this, but how can I programmatically expose a strategy's name, for example if I want to create output window and log messages while running multiple strategies?

    Thanks in advance!

    #2
    Hello,

    You can use Print(this.Name); to print the instance of the current strategy running.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Thank you much!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by benmarkal, Yesterday, 12:52 PM
      3 responses
      22 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by helpwanted, Today, 03:06 AM
      1 response
      16 views
      0 likes
      Last Post sarafuenonly123  
      Started by Brevo, Today, 01:45 AM
      0 responses
      11 views
      0 likes
      Last Post Brevo
      by Brevo
       
      Started by aussugardefender, Today, 01:07 AM
      0 responses
      6 views
      0 likes
      Last Post aussugardefender  
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      244 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Working...
      X