Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

External Visual Studio solution issue

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

    External Visual Studio solution issue

    Hello

    I use an external Visual Studio solution (and VS IDE) for my custom indicator. Indicator's class is derived from NinjaTrader.Gui.NinjaScript.IndicatorRenderBase class.
    So, it's not a partial class.
    The issue is that instance of my indicator can't be created from any other indicator compiled in Ninja IDE.
    But my indicator can be placed an a chart and works perfectly.
    Do you have any solution for this?

    #2
    Hello ren37,

    Your indicators should inherit from Indicator rather that the lower level base classes. To be able to use it normally like the other indicators yours should have the : Indicator as the class inheritance.

    Comment


      #3
      Hello Jesse

      I've used Indicator as the class inheritance.
      The instance is created in on State DataLoaded but it doesn't receive market data - OnBarUpdate() doesn't trigger. And it doesn't go through state changing.
      Note, that my custom indicator is in its own namespace.
      Could you provide an example, please?

      Comment


        #4
        Helllo ren37,

        You need to call the indicator from the hosts OnBarUpdate to have it also calculate.

        Comment


          #5
          Call indicator? What did you mean?
          It has no plots or data series.

          Comment


            #6
            Hello ren37,

            You would need to access the indicators plots from OnBarUpdate, you would use the indicator in some way just as you would with any other indicator. For an indicators OnBarUpdate to process when being used by other indicators or strategies you need to actually use the indicator in some way. Just adding the indicator in OnStateChange only sets up a variable, that won't make the indicator process.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            649 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            370 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            574 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            576 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X