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 funk10101, Today, 12:02 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by GLFX005, Today, 03:23 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by nandhumca, Yesterday, 03:41 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by The_Sec, Yesterday, 03:37 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by vecnopus, Today, 06:15 AM
    0 responses
    1 view
    0 likes
    Last Post vecnopus  
    Working...
    X