Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 hazylizard, Today, 08:38 AM
      0 responses
      4 views
      0 likes
      Last Post hazylizard  
      Started by Max238, Today, 01:28 AM
      5 responses
      42 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by giulyko00, Yesterday, 12:03 PM
      3 responses
      12 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by habeebft, Today, 07:27 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_ChristopherS  
      Started by AveryFlynn, Today, 04:57 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Erick  
      Working...
      X