Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

log reading by script

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

    log reading by script

    Hi, can I from within code see what is written in log? so for example if I see there is a word disconnected or lost (connection) so I will program, taht it will send me an email?
    Thanx
    N.

    #2
    Hello,

    Thanks for the note.

    There is no supported NinjaScript methods to do this. However in c# you can read from a .txt file and it may be possible if you know enough c# to do file access. The file is under My Documents->NinjaTrader 7->logs.

    However in the example you provided you do not need to read the log to do this. We have a method that gets called OnConnectionStatus that will let you know when connection is lost.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    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
    12 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by Max238, Today, 01:28 AM
    4 responses
    38 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by r68cervera, Today, 05:29 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X