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

Boxes from indicator not appearing on strategy

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

    Boxes from indicator not appearing on strategy

    I have created an indicator which draws boxes on the chart, I would now like to use the indicator in a strategy I am developing, but the drawings do not appear on the chart and neither are they appended to a list I where I stored these.

    #2
    Hello CuchoFef,

    Thanks for your post.

    Are you calling AddChartIndicator() in the strategy to add the indicator to the strategy?

    See this help guide page for more information about adding indicator's to a strategy: https://ninjatrader.com/support/help..._strategie.htm

    AddChartIndicator(): https://ninjatrader.com/support/help...tindicator.htm

    To get information about draw object on the chart you could consider looping through the DrawObjects collection.

    See this help guide page for more information and sample code: https://ninjatrader.com/support/help...rawobjects.htm

    Here is a forum thread discussing this topic which you might find helpful: https://forum.ninjatrader.com/forum/...y-an-indicator
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      I am calling the AddChartIndicator, but the drawings do not show up on the chart

      Comment


        #4
        Your indicator most likely is encountering an exception or otherwise exiting the OnBarUpdate or OnMarketData event where you think they should be added. You will need to add some print statements or examing your trace files in Documents -> NinajTrader 8 -> trace to see what is causing your indicator to exit prematurely when running in a hosted environment.
        Bruce DeVault
        QuantKey Trading Vendor Services
        NinjaTrader Ecosystem Vendor - QuantKey

        Comment


          #5
          Hello CuchoFef,

          Thanks for your notes.

          To clarify, if you apply the indicator to the chart window do you see the draw objects appearing on the chart and the indicator working as expected?

          If you enable the strategy on the chart do you see any error messages appearing in the Log tab of the Control Center? If so, what exactly does the error message report?

          Please share an exported copy of the indicator in question so I may look into this matter further.

          To export the script, go to Tools > Export > NinjaScript AddOn.

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

          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
          13 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          11 responses
          63 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X