Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SqlLite database,

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

    SqlLite database,

    Hello there

    I'm using SqlLite database (NinjaTrader.sqlite). Look at value of Executions table, StatementDate I see this value 638803584000000000

    Run this query it always return NULL. Any idea why?
    SELECT DATETIME(638803584000000000, 'unixepoch');

    #2
    Hello hunghnguyen2016,

    Welcome to the NinjaTrader forums!

    Access to the NinjaTrader database is not supported. Unfortunately, our support teams would not be able to assist with this.

    This thread will remain open for any community members that would like to provide unsupported code or advice.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by hunghnguyen2016 View Post
      I'm using SqlLite database (NinjaTrader.sqlite). Look at value of Executions table, StatementDate I see this value 638803584000000000
      While completely unsupported, this might work for you
      Code:
      while (reader.Read())
      {
          string sDate = ((reader["StatementDate"]).ToString());
          Print(sDate + "   =   " + (new DateTime(Convert.ToInt64(sDate)).ToLocalTime()));
      }
      Forum would not allow me to post the Connection part of the code.
      Doesn't like SQLiteConnection in code, hope this little bit might help.


      Be Safe in this Crazy World!
      -=Edge=-
      NinjaTrader Ecosystem Vendor - High Tech Trading Analysis

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      86 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      125 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      64 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      117 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X