• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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:
    http://ninjatrader.com/support/forum...splay.php?f=29
    http://ninjatrader.com/support/forum...splay.php?f=37

    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.
    https://www.youtube.com/watch?v=FmBi...56536A44DD7105

    Additionally we have a more advanced video covering the editor here:
    https://www.youtube.com/watch?v=K8v_...56536A44DD7105


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Tradarr, Today, 06:25 PM
    2 responses
    13 views
    0 likes
    Last Post Tradarr
    by Tradarr
     
    Started by cocopod, Today, 04:47 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_JoshG  
    Started by digibob, Today, 02:47 AM
    2 responses
    14 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by mntemel, Today, 03:31 PM
    4 responses
    23 views
    0 likes
    Last Post mntemel
    by mntemel
     
    Started by mrlucky1x, Today, 03:14 PM
    2 responses
    7 views
    0 likes
    Last Post mrlucky1x  
    Working...
    X