I managed to open the Ninjatrader.sqlite file (found in /User/Documents/Ninjatrader 8/db) but many of the column headers are different from the executions tab documentation, and the data displayed doesn't give any context clues. NT doesn't have documentation that I can find on how to read the raw SQLite file.
A couple I need to understand in particular:
MarketPosition: returns a 0 or 1. I'm guessing this is whether the trade was long/short based on the entry & exit patterns associated, but i'm not sure which is which. There are no columns i can find that suggest long/short classification besides MarketPosition.
Also lines up with Position going up (buy) when MarketPosition was 0 and down (sell) when MarketPosition was 1.
Time: The timestamp is only displayed in 18-digit numbers. For example, the first three timestamps in this format are:
638253770893310000
638253771748400000
638253777112300000
I put it into ChatGPT and it said it might be a type of Unix timestamp based on the epoch, but using that formula to figure it out gives me dates from 1990 for these timestamps. (trades mostly happened over the last 12 months lol)
If anyone knows what these values translate to for sure, please let me know, otherwise I'd just be guessing. Does Ninjatrader use it's own unique timestamp in this file? Thank you!
Comment