Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
NinjaTrader 8.0.23, .Net Framework 4.8 and C# Version
Collapse
X
-
Hello JGRtrader,
If you are opening the VS project using the button that will open the NinjaTrader custom project which uses 4.8 code, if you are trying to use C# code from a newer version of C# you would need to find an alternate way to do that task instead of using that code. If you try to use features from a newer C# version then visual studio will let you know you need to use a newer version because it knows about those type of items as part of its design. NinjaScript code needs to be 4.8 or less compliant code to compile. That applies to both the NinjaScript editor or when you edit in visual studio by using the VS toolbar button.
If the code you are trying to use is something you found online you may need to search for other samples of that concept and try those instead. You can include ".net framework" as part of your search to get more relevant samples for C# 4.8 code.
Comment
-
Would it be possible for you to give a quick outline on how I could go about this? Could you share some insights/resources/guidelines on project setup and workflow?Originally posted by BartMan View PostMy team is placing most code in an add-on. The addon can use the latest C# version/features. It is more advanced but it is possible to
Much appreciated.
--
P.S. Please add my vote for SFT-3124!
Comment
-
Is it possible to have a DLL that uses version C# 7.0 and .NET Core and reference this as an external DLL?Originally posted by QuantKey_Bruce View PostThat is true - you also could make an external DLL and code it however you want - it doesn't even have to be in C#.NET - and then just write wrapper code in the supported framework. That has some overhead but opens up a whole world for how you do the rest of the project.
Comment
-
I do not have a public sample. I will consider making one once current code projects are stable enough. I have a full time job and am working ninja 20-40 hours per week.Originally posted by t00ts View Post
Would it be possible for you to give a quick outline on how I could go about this? Could you share some insights/resources/guidelines on project setup and workflow?
Much appreciated.
--
P.S. Please add my vote for SFT-3124!
- Likes 1
Comment
-
It's insane that 3 years later, this is still an open issue, and votes are being counted. C# 5 came out in 2012! You would think that NinjaTrader is run by a government agency with how stuck in the past the technology is.
In any case, please add my vote to SFT-3124.
I think it would be great for someone to publish a tutorial or fork-able template repo to create an add-on. For the cause...
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
548 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
549 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment