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 zstheorist, Today, 07:52 PM
      0 responses
      3 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      149 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      5 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      5 views
      0 likes
      Last Post tkaboris  
      Working...
      X