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!
See more
See less

Partner 728x90

Collapse

NinjaTrader 8.0.23, .Net Framework 4.8 and C# Version

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jeronymite
    replied
    Regardless of how various approaches can make it possible for traders to utilise newer versions of C# or .NET, the fact remains that these are really just workarounds for the lack of updates to these products natively within NinjaTrader 8. Bringing these products up-to-date within NT8 offers their benefits to all users of the product, including the Development Team itself. And because the entire product itself benefits throughout, all users, including those who do not program, win!

    The benefits in performance (noted for .NET 6) are of particular relevance, since there are known performance issues in NT8 that need to be addressed, and these updates may assist in that. Furthermore, with the release of Windows 11, work to qualify NT8 on that product will be required, and it would make sense to also qualify the latest C# and .NET at the same time.

    Ignoring this progress in the products becomes counter-productive after a period ... and anything longer than 12 months falls into that category, I believe.

    Given that NinjaTrader receives "plenty of feedback" on this, surely there is demonstrable demand for the work to be done?!

    Thanks.

    Leave a comment:


  • NinjaTrader_Jim
    replied
    Hello magomimmo,

    Your understanding is correct where you could build a managed DLL and add a reference for that DLL in the NinjaScript editor to use that code. This wouldn't be something we would directly support, but is something to consider trying if compiling in the NinjaScript Editor is not an option. You are welsome to share your experiences here if you think it can help other community members.

    At this time there is not an active development task to upgrade the version of C# used. It is something we receive plenty of feedback on, but it is not something we can share an ETA on when that kind of work will take place.

    Leave a comment:


  • magomimmo
    replied
    Originally posted by NinjaTrader_Jim View Post
    Hello ntbone,

    Thanks for your post.

    Correct, we are still on C# 5 in the NinjaScript Editor. Greater levels of C# can be used in Visual Studio to create managed DLL's and these managed DLL's can be used in NinjaTrader all the same, though. (We would add the dll in bin/Custom, and then add a reference within the NinjaScript Editor to use it.)
    ...
    Hi there, let me see if I understood right:

    By using Visual Studio (or even any other editor/IDE, e.g. Visual Studio Code) I could create dotnet managed DLL in any programming language able to compile down to IL (Intermediate Language), even in F#/Clojure, etc.

    By adding those DLLs to the bin/Custom folder and by adding them as references within NinjaScript Editor, I could use them as they were programmed in C# 5.0.

    If my interpretation is correct, I would say that upgrading NinjaScript to directly support newer C# version, even if very appreciated, it's not such an urgent work to be done. Am I wrong? Instead it would be very impressing to create NinjaTrader as web based dotnet application able to run on any operating system compatible with the newly released dotnet 6.

    Thanks for your answer
    Last edited by magomimmo; 11-22-2021, 07:54 AM.

    Leave a comment:


  • jeronymite
    replied
    With .NET 6 and C# 10 recently released, there is a need to emphasise the importance of NinjaTrader 8 keeping pace with these developments.

    Whilst there are many competing priorities for the Development team, It would serve that team and the user community well if these new releases could be supported as soon as possible.

    Thanks.

    Leave a comment:


  • NinjaTrader_Jim
    replied
    Hello OptionDreamer, your vote has been added.

    Leave a comment:


  • Optiondreamer
    replied
    +1! Would be nice the .Net Framework new features were introduced to NinjaTrader ASAP

    Leave a comment:


  • NinjaTrader_Jim
    replied
    Hello cutzpr,

    I had meant if you needed to incorporate some code that needs to be compiled with a higher level of C# or .NET you could build an external DLL containing that code in Visual Studio, and then add that DLL as a reference in NinjaTrader [along with any needed dependencies] and use code from the DLL within a NinjaScript built in the NinjaScript Editor.

    Leave a comment:


  • fut_practic
    replied
    Originally posted by JakeOfSpades View Post
    Love that everyone is on the same page, having .NET Core 3.1 with NinjaTrader would open a lot of possibilities especially with ML.Net.
    You can use separation for calculation and data sharing. It's not a big problem.

    Leave a comment:


  • cutzpr
    replied
    Confused... Then why is ninjatrader automatically referencing 4.0 framework? I am trying to import a .dll that requires at least 4.7. I remove the old references to 4.0 and add manually the 4.7 but it keeps automatically adding these the older framework.

    Click image for larger version

Name:	4.0.PNG
Views:	237
Size:	9.4 KB
ID:	1165298

    Leave a comment:


  • NinjaTrader_Jim
    replied
    Hello junkone,

    Thanks for your feedback, your vote has been added.

    Upgrading the version of C# used requires updates to the some core components in the platform and updating the compiler used in the NinjaScript Editor. In the meantime, DLL's can be built in Visual Studio and you can use those compiled assemblies with NinjaTrader to take advantage of code written in newer versions of C#.

    We look forward to assisting.

    Leave a comment:


  • junkone
    replied
    add my vote. this thread is very old. I hope these votes matter as the timeline does not match the importance of this.

    Leave a comment:


  • NinjaTrader_Jim
    replied
    Thanks for your feedback tgn55,

    We have added your vote.

    Leave a comment:


  • tgn55
    replied
    Please add my vote...and PLEASE lets go to something more current than C# 6...

    Regards,
    T.

    Leave a comment:


  • NinjaTrader_Jim
    replied
    Thanks for your feedback.

    mattxfreund, your vote has been added.

    Leave a comment:


  • mattxfreund
    replied
    +1, any update on this C#5 is getting pretty old

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by willsims11, Today, 04:58 AM
0 responses
1 view
0 likes
Last Post willsims11  
Started by supremeacvcost, Today, 04:42 AM
0 responses
1 view
0 likes
Last Post supremeacvcost  
Started by supremeacvcost, Today, 04:39 AM
0 responses
1 view
0 likes
Last Post supremeacvcost  
Started by llanqui, 11-29-2022, 07:05 PM
9 responses
51 views
0 likes
Last Post llanqui
by llanqui
 
Started by siroki, Today, 02:20 AM
0 responses
5 views
0 likes
Last Post siroki
by siroki
 
Working...
X