Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Import non-price data for calculation of indicator
Collapse
X
-
Import non-price data for calculation of indicator
Hi, I am new to ninjatrader and is learning how to program in C#. I want to develop a customized indicator that needs to import non-price data to serve as parameters for calculating price range for each day (the parameters are calculated from an Excel spreadsheet, they changes every day, so for different dates they are different). I have stored the input parameters for different dates in a text/Excel file. So can Ninjatrader import this non-price coefficient data for doing the calculation? Can anyone give me some ideas on whether this is doable or not in Ninjatrader ? Many thanks.Tags: None
-
Yes it is fwyleung, since it could be coded in C# so it could in NT too. You could open and parse a text file during initialisation of your strategy/indicator and store the data in a data structure. Since your data seems to be organised by date-stamps you could stuff the content into a C#-dictionary.
edit: Or use DataSeries instead of a dictionary. That's the right way to start I guess.
But before doing so I would think about if it is possible to implement your excel-calculation in C# too. That should be possible if your calculations depend on the instrument's data loaded into NT exclusively. This way you could avoid that Excel-NT interface.
Regards
Ralph
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by andrewtrades, Today, 04:57 PM
|
1 response
10 views
0 likes
|
Last Post Today, 05:02 PM | ||
Started by chbruno, Today, 04:10 PM
|
0 responses
6 views
0 likes
|
Last Post
by chbruno
Today, 04:10 PM
|
||
Started by josh18955, 03-25-2023, 11:16 AM
|
6 responses
436 views
0 likes
|
Last Post
by Delerium
Today, 03:42 PM
|
||
Started by FAQtrader, Today, 03:35 PM
|
0 responses
9 views
0 likes
|
Last Post
by FAQtrader
Today, 03:35 PM
|
||
Started by rocketman7, Today, 09:41 AM
|
5 responses
20 views
0 likes
|
Last Post Today, 03:33 PM |
Comment