Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Format of the Logfile & Tracefile, Parsing please some clarification

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

    Format of the Logfile & Tracefile, Parsing please some clarification

    Hi,

    I'm trying to parse the log/trace files and make sense of the log and trade files of Ninjatrader, could somebody please give some input or give an url with a detailed explanation.

    About the /log/*.txt files
    Column 1:
    Timestamp in ISO format

    Column 2 & 3:
    What are the numeric columns 2 and 3 ? It looks like bitmask in column 3, is there any documentation available what these two numbers/bitmasks means?

    Columns 4: is a textual details and is mostly self explaining :-)

    Then the log files are produced in twin pairs:
    Inside the /log directories there two "almost" identical logfiles here examples:
    log.20210112.00000.txt
    log.20210112.00000.en.txt
    I can see differences in the trade execution the Time="" field uses two different date formatting:

    It looks like the file with extension .en.txt has timestamps uses ?-format Time='12-Jan-21 8:44'
    And the file without the .en. uses the US-localformat: Time='01/12/2021 08:44:40'

    Not sure if there any other differences, however:
    Which of the two logfiles should I use for parsing? What file will always have an consistent date/time format across different installs in different countries ?


    About the /trace/*.txt files
    Mostly sefexplanery. Not expecting any trouble parsing them.

    #2
    Hello Wessel,

    Unfortunately there is no documentation on what column 2 and 3 mean. The numbers below indicate the following as per column 3.

    8 = order execution
    32 = order update
    64 = position update

    There is a 2nd log file as per the language that is setup in NinjaTrader. For example, if language is set to German, the 2nd log file has ".de" instead of ".en". I use the log files without ".en" when I investigate them.
    JasonNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fscabrera03, Today, 05:46 PM
    0 responses
    1 view
    0 likes
    Last Post fscabrera03  
    Started by jleira, Today, 05:45 PM
    0 responses
    2 views
    0 likes
    Last Post jleira
    by jleira
     
    Started by AaronKoRn, Today, 03:05 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Emily  
    Started by zacharydw00, Today, 02:21 PM
    2 responses
    15 views
    0 likes
    Last Post zacharydw00  
    Started by Harvard, Today, 12:01 PM
    2 responses
    15 views
    0 likes
    Last Post Harvard
    by Harvard
     
    Working...
    X