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

Setting up a stand alone Visual Studio Indicator project

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

    Setting up a stand alone Visual Studio Indicator project

    I am trying to set up a stand alone Visual Studio indicator project based on the sample AddOn project.

    I update the solution by removing the add-on project XAML and CS, and added my new indicator class file. It is based on code from the NinjaScript Editor.

    I can build the solution and it copies the DLL to NinjaTrader, but after restarting NinjaTrader, I do not see my indicator in the list of Indicators for my chart.

    When I go to Tools -> "Remove NinjaScript Assembly...", I see my indicator listed.

    What changes do I need to make to the sample Add On project to develop an Indicator?

    #2
    Hello mattbsea,

    Thanks for your post and welcome to the Forums.

    What sample AddOn project are you specifically referring to?

    Is this the AddOn Framework sample from the help guide page linked below?

    AddOn Development Overview: https://ninjatrader.com/support/help...t_overview.htm

    Or, is this an AddOn sample you found on a forum thread? If so, please share a link to the forum thread where you found the AddOn so we may see which one you are referring to.

    To clarify, are you trying to create a new custom NinjaScript Indicator?

    If you are trying to create a new custom NinjaScript Indicator, this could be done in the NinjaScript Editor window by selecting the '+' tab in the NinjaScript Editor and selecting New Indicator from the list. You would then program logic into the indicator file. The indicator file would then appear in the Indicators window.

    If not, please provide us with a brief description of what exactly you are trying to accomplish so we may accurately assist.

    We look forward to assisting further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hi Brandon,

      My ultimate goal is to develop the indicator in Visual Studio, separate from the NinjaTrader.Custom solution (the one that opens in visual studio from the ninja script editor). That is, in a stand-alone visual studio project.

      I ended up finding a solution:

      1. In visual studio, create a class library and use .NET Core - any version
      2. Edit the solution file as XML and change the TargetFramework to net48
      3. Add references to NinjaTrader

      Seems to be working so far.

      Thanks,
      Matt

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ETFVoyageur, Today, 02:15 AM
      0 responses
      5 views
      0 likes
      Last Post ETFVoyageur  
      Started by Board game geek, Today, 01:34 AM
      0 responses
      5 views
      0 likes
      Last Post Board game geek  
      Started by morrnel, 05-12-2024, 06:07 PM
      3 responses
      39 views
      0 likes
      Last Post wzgy0920  
      Started by FishTrade, Yesterday, 11:11 PM
      0 responses
      7 views
      0 likes
      Last Post FishTrade  
      Started by Austiner87, Yesterday, 03:42 PM
      1 response
      22 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X