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 judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    57 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    20 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    9 views
    0 likes
    Last Post cre8able  
    Working...
    X