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 NullPointStrategies, Today, 05:17 AM
      0 responses
      41 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      124 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      64 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X