NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 10-04-2008, 10:17 PM   #1
pauljff
Junior Member
 
Join Date: Oct 2007
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default using System.Data

I'm trying to use System.Data and System.Data.Oledb in a strategy so that I can access an excel spreadsheet through Oledb, but they do not seem to be recognized. How can I use Oledb from ninjascript?
pauljff is offline  
Reply With Quote
Old 10-04-2008, 10:49 PM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Unfortunately this is beyond what we can provide support for. As last resort you contact a certified NinjaScript engineer: http://www.ninjatrader.com/webnew/pa...injaScript.htm
NinjaTrader_Dierk is offline  
Reply With Quote
Old 10-05-2008, 12:59 AM   #3
pauljff
Junior Member
 
Join Date: Oct 2007
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default

I found a post here about this issue: http://www.ninjatrader-support.com/v...ead.php?t=8065

I right clicked, references, and added System.Data.Dll but still cannot add "using System.Data" to my strategy or create DataSets/Rows/Tables. Is there another step I need?
pauljff is offline  
Reply With Quote
Old 10-05-2008, 01:36 AM   #4
pauljff
Junior Member
 
Join Date: Oct 2007
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default

The intellisense doesn't seem to be working with System.Data, the code itself is working. Adding the reference worked.
pauljff is offline  
Reply With Quote
Old 10-05-2008, 08:09 AM   #5
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

Thanks for letting us know.
NinjaTrader_Ray is offline  
Reply With Quote
Old 10-05-2008, 02:55 PM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Just restart NT after adding System.Data to the references and it will be available in the intellisense.
NinjaTrader_Dierk is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NameSpace System.Data not found Rollins General Programming 2 06-04-2008 09:20 AM
using System.Data mgbloomfield Automated Trading 8 04-17-2008 11:40 AM
Trading System abikambic General Programming 1 03-18-2008 06:22 AM
System.OutOfMemoryException MrBaffalo General Programming 13 11-28-2007 07:12 AM
End-to-End Testing of a System aspTrader Automated Trading 0 12-02-2005 02:28 AM


All times are GMT -6. The time now is 04:39 PM.