- 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?.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy version tracking
Collapse
X
-
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?.Tags: None
-
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
-
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
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
55 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment