Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

creating a c# add-on

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

    creating a c# add-on

    Where can I find information on how to create and integrate a csharp strategy or indicator module into Ninja?

    I am an experience programmer that has some java-based strategies and would like to consider ways to integrate such as through socket I/O (request/response) to supply tick data and get trade triggers from my existing code that I would run in a separate process, or through using csharp to java bridge technique.

    I can create a strategy script but i see i cannot directly edit the CSharp code. I see mention of importing external zipped assemblies and so assume this would be the way to integrate and use System.Net assembly.

    Is there some documentation and examples on how to accomplish this?

    Thanks in advance for any help.

    #2
    Hello,

    Thank you for the question.

    NinjaTrader does use C# as its programming language, and you are free to create C# code and execute it using NinjaTrader.

    The strategy wizard specifically starts in a wizard mode, you may be more comfortable clicking the "Unlock code" button which will bring you to the NInjaScript editor.

    Indicators by default just go directly to the editor.

    There are many samples and a full help reference guide for NinjaScript, the most simple examples are included in the platform, you can view the existing strategies and indicators that come with NinjaTrader by using the "Edit NinjaScript" option.

    You can also locate a lot of information on the forum for other concepts in the following locations:



    If you are already familiar with C#, likely you could get used to NinjaScript very easily and would just need to understand the basic concepts of controlling the platforms actions using NinjaScript. Although this video focuses on the wizard, it is helpful in learning exactly the concept of controlling the platform using a strategy.


    Additionally we have a more advanced video covering the editor here:



    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    561 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    325 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X