NexusFi: Find Your Edge


Home Menu

 





SQLite and Ninja Script


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one vantojo with 4 posts (1 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 Zondor with 1 posts (0 thanks)
    4. looks_4 MrYou with 1 posts (0 thanks)
    1. trending_up 3,608 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

Any of you collecting data from a Ninja Indicator into SQLite?

It appears that SQLite database can entirely run in memory, including the data tables, so there is no disk i/o once it is launched.

This is a project on my table, perhaps I'll start soon....

It would be useful to have the connect and disconnect code, as well as insert

There would be multiple indicators running, each one posting data to the database. Each of the instantiated indicators would have its own connect.

The idea would, at certain intervals, to pull data from the in memory SQLite database into a permanent database such as SQL Server where I can then do more robust analytic s on it.

If no one has done this I will post what I do, but it may be a little while before I can get something working. Can't promise when..

:-)


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
SEC Advisory Committee Backs Tokenized Securities Exempt …
Traders Hideout
The Week Ahead -- CPI Wednesday With Oil Past $90, PPI L …
Traders Hideout
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012


SQLite Home Page


Started this thread Reply With Quote
  #4 (permalink)
 
MrYou's Avatar
 MrYou 
NC, USA
 
Experience: None
Platform: None Yet
Trading: Guitar
Posts: 402 since Jun 2011
Thanks Given: 618
Thanks Received: 196

What about Microsoft .NET LINQ?


Reply With Quote
  #5 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,734

Using SQLite in your C# Application - CodeProject


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #6 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

found this:

System.Data.SQLite: File List

System.Data.SQLite: About

evidently the native interface is C/C++ and this wrapper provides access for ADO.NET

don't know how to use it yet...but will post here for documentation in case others are interested


Started this thread Reply With Quote
  #7 (permalink)
 vantojo 
Vilcabamba, Ecuador
 
Experience: Intermediate
Platform: Ninja
Trading: NQ, UB
Posts: 204 since Jul 2012

found here

System.Data.SQLite: System.Data.SQLite Download Page

(also for .Net 4, but doesn't NT use 3.5?)

this appears to be the source for the most current adapters, the two or three others I've seen from other providers are obsolete/discontinued


Started this thread Reply With Quote




Last Updated on August 23, 2012


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts