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 jackiegils, Today, 11:05 PM
|
0 responses
5 views
0 likes
|
Last Post
by jackiegils
Today, 11:05 PM
|
||
Started by cre8able, Yesterday, 09:15 PM
|
2 responses
17 views
0 likes
|
Last Post
by cre8able
Today, 10:36 PM
|
||
Started by Trader146, Today, 09:17 PM
|
0 responses
9 views
0 likes
|
Last Post
by Trader146
Today, 09:17 PM
|
||
Started by ttrader23, 05-08-2024, 09:04 AM
|
9 responses
43 views
0 likes
|
Last Post
by ttrader23
Today, 08:29 PM
|
||
Started by ZeroKuhl, Yesterday, 04:31 PM
|
8 responses
46 views
0 likes
|
Last Post
by ZeroKuhl
Today, 07:25 PM
|
Comment