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-22-2012, 12:33 PM   #1
Bosstrader
Junior Member
 
Join Date: Nov 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default Import from Excel possible?

Hello,
I want to read in some parameters from an Excel spreadsheet into a NT strategy. How can I do this?

Thanks.
Bosstrader is offline  
Reply With Quote
Old 10-22-2012, 12:38 PM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 552 times in 544 posts
Default

Hello Bosstrader,
You can refer to this posts which demonstrates how to read values from excel.
http://www.ninjatrader.com/support/f...97&postcount=1

To read from a txt file you can also refer to this sample codes:
http://ninjatrader.com/support/forum...ead.php?t=3476
http://ninjatrader.com/support/forum...ead.php?t=3477
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 10-23-2012, 11:24 AM   #3
Bosstrader
Junior Member
 
Join Date: Nov 2009
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you. Concerning the Interop solution: The link you provided only shows how to install the corresponding DLL. But how can I now access a Excel spreadsheet within a strategy? Could you please give a code example?
Bosstrader is offline  
Reply With Quote
Old 10-23-2012, 11:31 AM   #4
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 552 times in 544 posts
Default

Hello Bosstrader,
Post 2 of the thread provides an example. Please refer here to know more
http://www.ninjatrader.com/support/f...98&postcount=2

The complete thread can be accessed via http://www.ninjatrader.com/support/f...398#post212398
NinjaTrader_Joydeep 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
excel bskogz12 Charting 3 12-02-2011 08:29 AM
Data Streaming Into Excel and connecting Ninja to Excel cjgovi Connecting 13 02-28-2011 11:21 AM
HDM Bulk Import - Folder Import murthymsr Connecting 1 02-21-2011 01:17 PM
Import Data Into Excel carlton Connecting 3 01-11-2011 08:42 AM
Excel Data Import kipper Miscellaneous Support 2 09-16-2008 10:40 PM


All times are GMT -6. The time now is 12:24 AM.

FULL RISK DISCLOSURE: Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.