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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      42 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X