Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Do Not Merge AddDataSeries Spread Chart
Collapse
X
-
Do Not Merge AddDataSeries Spread Chart
I'm trying to plot some spreads for historical data but NT8 is merging the future month contract for historical data. Because of this the spread is shown historically as 0. Only live data is being plotted with the correct spread amount. Is there a way that I can fix this?Tags: None
-
I am plotting CL futures current month(CL 11-18) vs next month(CL 12-18). I am adding the Last price to the data series. The indicator has not been programmed for real time. It's looking for both historical and realtime. Just uses OBU Closes[0][0] - Closes[1][0].
Comment
-
https://imgur.com/a/xTxAts0 it is showing 0 on the plot for historical bars. Once the data is real-time it shows the correct values.
Comment
-
that will end up changing the rest of my charts. I still need to merge non-backadjusted for CL / ES charts.
It also doesn't make sense that live data would pull the correct next month contract prices, and only historical data gets merged from the current month. That seems like a bug to me, right?
Comment
-
You would still be able to do this. Just go to your Control Center>>Tools>>Instruments>>select CL or ES and set the instruments merge policy to non back adjusted.I still need to merge non-backadjusted for CL / ES charts.
Did following my steps get the desired results?Josh G.NinjaTrader Customer Service
Comment
-
Yes, this works as expected and I am able to plot historical spreads.Did you go to your Control Center>>Tools>>Instruments>>select CL or ES and set the instruments merge policy to non back adjusted?
Yes this works as expected. They are only pulling from the current contract instead of non-backadjusted contracts, to plot values that most others use for OHLC daily, weekly, monthly, quarterly, yearly levels I want the merge non-backadjusted setting.What makes you say they the OHLC values are messed up? What are you comparing them to?
I'm trying to plot the historical spreads. But when merge non-backadjusted is selected the FUTURE month contract values are being pulled into the current contract. That shouldn't happen as it there is no 'back'. Only live data is plotted correctly using the merge non-backadjusted setting.
Comment
-
This is because anytime you merge contracts with "Merge Back Adjusted" and "Merge Non Back Adjusted" the contracts are going to be merged historically. If you add both data series to a chart and compare each bar this will be easy to see.But when merge non-backadjusted is selected the FUTURE month contract values are being pulled into the current contract.
At this time the only way to get your plot to work the way you want it to will be by using the "Do not merge" setting for all of your instruments or specifically for the CL/ES.Last edited by NinjaTrader_JoshG; 10-03-2018, 01:56 PM.Josh G.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment