Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

c# error

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

    c# error

    Hi,

    why I'm getting and error compiling a strategy for this line?

    string InstrName = Instrument.FullName;

    #2
    guillembm,

    That snippet is compiling just fine on my end.

    Can you clarify the exact error you are receiving when compiling? If you comment that line out, does the strategy compile?
    MatthewNinjaTrader Product Management

    Comment


      #3
      Thanks, I just had to change the function from public to private.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by kinfxhk, 07-14-2026, 09:39 AM
      0 responses
      93 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      93 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      71 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      88 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      67 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X