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
-
Yes. In fact, it does not even have to be in C# if you use extern declarations and stdcall just like any other unmanaged 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.
Leave a comment:
-
Hello t00ts,
I've added your vote to SFT-3124. Thank you for your vote.
- Likes 1
Leave a 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!
Leave a comment:
-
Hello thehammer,
I've added your vote to SFT-3124.
Thank you for your vote!
Leave a comment:
-
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.
Leave a comment:
-
That 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.
Leave a comment:
-
I am just using VS as an editor for NinjaTrader. I think the compiles are done in the NT application. I am running NT 8.1.1.7 right now. I do not run a project in VS. The VS I have is just plain vanilla and I call it with the icon in the NT Editor.
Leave a comment:
-
My 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
Leave a comment:
-
Do you have Visual C#.NET installed and not just C# Tools? The screenshot makes it look like you're trying to use the C++ compiler, though maybe it doesn't show everything because it's cut off.
Leave a comment:
-
I start VS with the icon on the NT Editor. I assume I would get a message if my system was not set up correctly for my system. I attached a clip of the Visual Studio about screen.
This happens to me only occasionally, typically when I google for hints, and then I try it and receive a notice something like, this feature required .NET 7 or such. I learn quickly not to try that again. I am OLD (key word) and haven't done much programming for several decades so a lot of what i used to do, does not work in current Object Oriented languages.
.
Leave a comment:
-
Hello JGRtrader,
If you are trying to use VS to make something for NinjaTrader you need to select the correct type of project, if you see that it is using a newer version of .net you have selected the wrong type of project. To make a library for NinjaTrader 8 you need to select the following in visual studios new project wizard:
Language: C#
Platform: Windows
Type: Library
Scroll down the list to find Class Library (.net framework), it should say C# Windows Library below it. There are other Class Library projects in the list for other versions of .net like .net core and standard which will not work with NinjaTrader. Pay careful attention you are selecting the one with (.NET Framework) in the title.
Leave a comment:
-
Add my vote too. VS keeps telling me I need .NET 7 for what t code.
Leave a comment:
-
Please add my vote as well… this has kept countless clients from moving to NT and I hope this multi year, much requested feature (more compatibility issue) gets addressed. Honestly it kind of kills my belief in the voting system as I have never seen an issue with so many votes.
Thanks!
Chad
Leave a comment:
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by usazencort, Today, 01:16 AM
|
0 responses
1 view
0 likes
|
Last Post
by usazencort
Today, 01:16 AM
|
||
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
603 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
22 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
21 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
230 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
Leave a comment: