Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Log Function

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

    Using Log Function

    Hello,

    I'm trying to use the Log fonction in my addon but i got an error. For exemple, i use the function like this:

    Code:
    Log("Account object is not defined", LogLevel.Information);
    And i got this error message:

    Code:
    'NinjaTrader.Cbi.Log' is a 'type' but is used like a 'variable'
    Could you explain me how it works ?

    Thanks

    Johnok
    johnok
    NinjaTrader Ecosystem Vendor - Trade With Me

    #2
    Hello Johnok,

    May I confirm you are calling this from an Indicator or Strategy?

    If not, are you using the fully qualified namespace path NinjaScript.Log() as directed from the help guide?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I was using it from Addon, so that was my error !

      Thank !
      johnok
      NinjaTrader Ecosystem Vendor - Trade With Me

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      646 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      367 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X