Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

The class member Strategy.indicator is not availablein MS VS

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

    The class member Strategy.indicator is not availablein MS VS

    Hello!
    I can compile in VS and run the custom indicator without the region NinjaScript. It works as expected on the chart.
    I can compile in NT8 and run the custom indicator with the region NinjaScript. It works as expected on the chart.

    There are my questions:
    1. How to build an indicator with the region NinjaScript using VS?
    2. How to refer this indicator in the strategy without the region NinjaScript.

    The VS project with the indicator is attached.

    Regards,
    Attached Files

    #2
    Hello AlexMocc,

    You cannot. NinjaTrader needs to generate the script and compile which generates the NinjaTrader generated code.

    The NinjaTrader generated code is necessary for NinjaTrader to properly use the indicator.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      "You cannot. NinjaTrader needs to generate the script and compile which generates the NinjaTrader generated code."

      Is it possible to add the public getter for the member "indicator" in all classes where it is used?

      It is not a breaking change and It fixes the issue.

      Comment


        #4
        Hello AlexMocc,

        This would be unsupported by NinjaTrader.

        The supported approach is to generate new scripts with the NinjaScript Editor and compile with the NinjaScript Editor.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          I see.
          Thank you for the clear answers!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          44 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          56 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          35 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          95 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          57 views
          0 likes
          Last Post PaulMohn  
          Working...
          X