Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator calculating two data series
Collapse
X
-
Spreads can certainly be built from historical data. If you can't do that there is some other problem. It only works on time-based bars; the current version will throw an exception if the bars aren't time-based. Try making a chart which plots both instruments for the entire period you want using time-based bars. Then add the Spread indicator. It should plot the spread for every bar. If it doesn't try re-downloading it if you have an old copy (older than 6 months). You can also try my Index indicator for more complex spreads, but I wouldn't expect different behavior for historical data.
-
Maxima, I use the spread indicator and found the same issue. Using a base chart that goes back for days that I haven't had the computer running creates holes in the spread plot. I found that using the historical download tool will fix the problem. Download the 'spread' symbols first with a starting date further back than the starting date of the chart. Then do the same thing for the symbol of the chart. That download will update the chart and spread will have all the 'minute' data for all the symbols in the spread and there won't be any holes in your historical plot.
Comment
-
No indicator can produce good output if the input data is missing. Many indicators will, however, produce garbage, On a single-instrument chart, you would normally have the data plotted on the chart, so if data were missing, you would see it, and hopefully know to ignore the indicator output. For example, if you're missing 7 days of data and plotting a 21-day moving average, an average will plot the entire time, but it will be wrong for 20 days following the missing data.
The Spread indicator needs a second data series, the Index indicator can have many, and they aren't necessarily visible on the chart, The Spread indicator, and the default behavior of the Index indicator, is to plot nothing unless all inputs are available. You really don't want to know the spread between today's price of "X" and yesterday's price of "Y".
I normally select the box "Get data from server (If available)", and I don't select "Save chart data as historical". I periodically download recent historical data in the Instrument Manager to make my historical database current.
It sounds like your settings must have been the reverse of mine. This would leave gaps in your historical data which you had instructed Ninjatrader not to fill. That would explain why the Spread indicator didn't plot anything (which is a lot better than plotting garbage).Last edited by kdoren; 12-03-2011, 03:26 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
598 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
555 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment