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

Criteria for allowing custom indicators to work in the Strategy Builder

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

    Criteria for allowing custom indicators to work in the Strategy Builder

    I've built several indicators that work fine on charts, but will not show up in the list of indicators as a condition in the Strategy Builder.

    They all have plots; anywhere from 4 to 10 different plots, added with the AddPlot method.

    They also have only normal properties. Nothing dynamic. But they have a lot of properties, over 100 in some cases. Are there properties for types that will cause the indicator to be rejected?

    What could be preventing these indicators from being available in the Strategy Builder?
    daqu40
    NinjaTrader Ecosystem Vendor - QTradez

    #2
    Hello daqu40,

    Thank you for your post.

    For your custom indicator, in the scope of the class, have you set the property to return the plot series Values[plot index] with a public variable?

    Are you setting the plot values in OnBarUpdate()?

    Please see this forum post this discusses how to expose custom indicator values in the Strategy Builder:

    https://forum.ninjatrader.com/forum/...64#post1182264

    Please let me know if you have any other questions.
    Gaby V.NinjaTrader Customer Service

    Comment


      #3
      Yes, each plot is updated by a method call from OnBarBarUpdate or OnMarketData in State.Realtime. Prior to Realtime, these are updated by a batch process called in State.Transition.

      Due to the complex property management we have a version of the indicator that was simplified to use only the bar necessary configuration items for use with BloodHound. The indicator and its plots are visible in BloodHound, but Strategy Analyzer is not happy with it.
      daqu40
      NinjaTrader Ecosystem Vendor - QTradez

      Comment


        #4
        Hello daqu40,

        Would you be able to send us a reduced sample script to test to scriptingsupport[AT]ninjatrader.com? The sample script should still include the calls to AddPlot(), the properties for the plots, and simplified logic to assign values to the plots.

        In the subject of the email please reference the case number 04174006.

        Thank you in advance.
        Gaby V.NinjaTrader Customer Service

        Comment


          #5
          This will take some time. I'm not authorized to share this code in any form. I will see if I can build something similar with the AddPlot calls and upates to those plots in a similar architecture.
          daqu40
          NinjaTrader Ecosystem Vendor - QTradez

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Segwin, 05-07-2018, 02:15 PM
          14 responses
          1,788 views
          0 likes
          Last Post aligator  
          Started by Jimmyk, 01-26-2018, 05:19 AM
          6 responses
          837 views
          0 likes
          Last Post emuns
          by emuns
           
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,293 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          12 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          11 responses
          62 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X