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 JakeOfSpades, Yesterday, 08:36 AM
    4 responses
    33 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by MarkF60, Yesterday, 05:25 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by soon123, 03-05-2021, 10:15 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by soon123, 03-05-2021, 09:48 PM
    2 responses
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Amaria77, 03-05-2021, 08:21 PM
    2 responses
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X