Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trying to load indicator: Is a method but is used like a type

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

    Trying to load indicator: Is a method but is used like a type

    Hey fellas -

    I'm trying to load this indicator into my custom strategy but I get this error on compiling. What does it mean as this is the first time I've had this issue with any indicator?

    NinjaScript File Error Code Line Column
    TestScript.cs 'NinjaTrader.NinjaScript.Strategies.Strategy.amaTr adersDynamicIndex(int, int, int, int, double)' is a 'method' but is used like a 'type' CS0118 33 11

    I've attached my simple test script and the indicator code.

    Thanks!
    Attached Files

    #2
    Hello PN720,
    Thanks for your post.

    Change the way you are instantiating the indicator from
    Code:
    private amaTradersDynamicIndex TDIInd;
    to
    Code:
    private Indicators.LizardIndicators.amaTradersDynamicIndex TDIInd;
    You need to do this when you are calling your indicators from a folder.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Ah, makes sense, thanks again!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      90 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      137 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      120 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      72 views
      0 likes
      Last Post PaulMohn  
      Working...
      X