Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy version tracking

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

    Strategy version tracking

    Hi, I'm working in a strategy using Visual Studio + NinjaTrader sometimes I found that after building the project on VS and refreshing the strategy on the chart it doesn't load the latest build of the strategy so this introduce confusion and slowdown the backtest because sometimes I'm running a piece of code that don't match with the latest changes, my question is then:
    - Is there a way I can display which version (date, build number, version number) we are running, for example I wanna display the datetime of build of the latest assembly I'm loading on NT?.

    #2
    Hello eramosr21

    Do not build the NinjaTrader Project, instead save (Ctrl + s) the open source file while the NinjaScript Editor is open and this will automatically trigger NinjaScript Editor to compile.

    If you are building a specific dll, you will need to restart NinjaTrader to reload the dll.

    If you are doing testing, test the open source script by saving this and compiling in the NinjaScript Editor only, then reload the running script.

    You can display information on a chart by overriding the DisplayName method.
    https://ninjatrader.com/support/help...isplayname.htm

    Or by drawing with Draw.TextFixed() or Draw.Text().
    https://ninjatrader.com/support/help..._textfixed.htm

    This string you would have to hard code into the script.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks Chelsea,
      I found how to do it after the post, basically you can pull the assembly build date and compare with the system date on your PC and find how much time had pass, you can combine it with the Assembly Version information, to use it you need to add an * as build slot number and the build number would increase every time you build the project. This two pieces of info could be displayed on your Chart for visual reference.

      Thanks for the quick response, have a great day.

      Comment


        #4
        With regard to maintaining version numbers, here's another idea.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        66 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        141 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        76 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        47 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        51 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X