Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.JesseNinjaTrader Customer Service
Comment
-
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
-
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
-
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 carnitron, Today, 08:42 PM
|
0 responses
4 views
0 likes
|
Last Post
by carnitron
Today, 08:42 PM
|
||
Started by strategist007, Today, 07:51 PM
|
0 responses
6 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,969 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
5 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
||
Started by rhyminkevin, Today, 04:58 PM
|
4 responses
58 views
0 likes
|
Last Post
by dp8282
Today, 06:13 PM
|
Comment