• 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 Mike3238, Today, 07:09 PM
    0 responses
    4 views
    0 likes
    Last Post Mike3238  
    Started by sambo81, Today, 06:57 PM
    0 responses
    7 views
    0 likes
    Last Post sambo81
    by sambo81
     
    Started by erichuff, Today, 04:53 AM
    1 response
    27 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by stevenev1, Today, 01:43 PM
    0 responses
    8 views
    0 likes
    Last Post stevenev1  
    Started by shinuvu, Today, 11:05 AM
    3 responses
    21 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X