Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Assembly Information

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

    Assembly Information

    Hi,

    Is it possible to print any information about the assembly that is executing from within the strategy itself?

    I am working with someone on a strategy and I would like to print the assembly version from within OnStartUp to guarantee we are looking at the same version.

    Thanks in advance

    Scott

    #2
    Hi Scott, perhap I'm not following but if you're working on the same strategy / code - why don't you include a header in the CS with the needed versioning / changes info? This makes it also handy tracking changes being doing done by the involved parties.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Bertrand,

      Thanks for the reply; I am doing that but what I would like to do is have the information print to Output with something that gets what is actually being executed.

      I am working with some remote traders that are not programmers and who do not get the source. When they have issues, I would like to be able to see their Output to make sure we are absolutely working with the same version.

      The equivalent of this but returning the strategy assembly information, not NinjaTraders

      Print("Strategy Version - " + this.GetType().Assembly.GetName().Version.ToString ());

      Thanks
      Scott

      Comment


        #4
        I see Scott, thanks for the clarification - unfortunately I'm not aware of a way to access it programmatically. I believe you could just add code yourself to raise a log event with the version you designate in a variable for example.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Thank you, that will work. I appreciate your help.

          Scott

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cupir2, Today, 07:44 PM
          0 responses
          3 views
          0 likes
          Last Post cupir2
          by cupir2
           
          Started by reynoldsn, Today, 07:23 AM
          6 responses
          19 views
          1 like
          Last Post reynoldsn  
          Started by reynoldsn, Today, 07:26 PM
          0 responses
          4 views
          0 likes
          Last Post reynoldsn  
          Started by ETFVoyageur, 05-07-2024, 07:05 PM
          12 responses
          78 views
          0 likes
          Last Post bltdavid  
          Started by Haiasi, 04-25-2024, 06:53 PM
          5 responses
          76 views
          0 likes
          Last Post alancurry  
          Working...
          X