Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error CS1955: ... cannot be used like a method

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

    Error CS1955: ... cannot be used like a method

    When compiling from NinjaScript Editor it compiles fine but when in Visual Studio, it throws this error on my custom indicator.

    Error CS1955 Non-invocable member 'WisemanAlligator' cannot be used like a method. NinjaTrader.Custom C:\Users\user1\Documents\NinjaTrader 8\bin\Custom\Indicators\FiveCandleFractal.cs 72 Active


    Code:
    else if (State == State.DataLoaded)
    {
    WisemanAlligator1 = WisemanAlligator(Close, JawPeriod, TeethPeriod, LipsPeriod, JawOffset, TeethOffset, LipsOffset);
    }

    I want to be able to compile and debug from Visual Studio 2019.

    Thank you in advance

    #2
    Hello jalley,

    You should not compile from VisualStudio. Leave the NinjaScript Editor and save a script and NinjaTrader will detect the change and automatically internally compile.

    Regarding the error, this can be ignored if the script is compiling internally in NinjaTrader.
    The Wiseman indicators are licensed to NinjaTrader by a 3rd party and have proprietary code.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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