Announcement
Collapse
No announcement yet.
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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
566 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
548 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment