Data1 and Data2 do not line up in Chart Window  [SOLVED]

Questions about MultiCharts and user contributed studies.
scuba
Posts: 35
Joined: 29 Aug 2012
Has thanked: 12 times
Been thanked: 1 time

Data1 and Data2 do not line up in Chart Window

Postby scuba » 01 Jun 2013

Hi
I have a graphing problem when displaying daily SPY as Data1 on top and ^VIX as Data2 below. When I do this, the OHLC bars do not line up (they are offset by 1 bar) and I see duplicated dates in the X Axis.

I don't have this problem when displaying data from the same exchange. I thought this might be due local vs exchange time zone being used, but I've exhausted that.

I couldn't find anything on this in the Forum, any help would be appreciated.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Data1 and Data2 do not line up in Chart Window

Postby TJ » 01 Jun 2013

Hi
I have a graphing problem when displaying daily SPY as Data1 on top and ^VIX as Data2 below. When I do this, the OHLC bars do not line up (they are offset by 1 bar) and I see duplicated dates in the X Axis.

I don't have this problem when displaying data from the same exchange. I thought this might be due local vs exchange time zone being used, but I've exhausted that.

I couldn't find anything on this in the Forum, any help would be appreciated.
What is the chart interval?
Can you post a screenshot? (make it a full screen with all the details and in high resolution).

scuba
Posts: 35
Joined: 29 Aug 2012
Has thanked: 12 times
Been thanked: 1 time

Re: Data1 and Data2 do not line up in Chart Window

Postby scuba » 01 Jun 2013

TJ

The resolution is Days.
I'm using Yahoo for my data source.
You'll see that the day bars do not line up and that the Days of the Month are duplicated on the X-Axis.

Thanks
Attachments
Bug Chart.png
(499.22 KiB) Downloaded 1142 times

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Data1 and Data2 do not line up in Chart Window

Postby TJ » 01 Jun 2013

I have just made the same chart of the same instruments,
my bars are lined up with no problem.

I have experimented with different sessions, but the charts still line up.

I don't know where your problem is; please delete the chart and try again to see if it makes a difference.
Please check the computer time vs session time.
Attachments
2013-06-01 19.2311.jpg
(614.31 KiB) Downloaded 1112 times

scuba
Posts: 35
Joined: 29 Aug 2012
Has thanked: 12 times
Been thanked: 1 time

Re: Data1 and Data2 do not line up in Chart Window

Postby scuba » 02 Jun 2013

TJ

Thanks for your suggestion.
In the end I deleted ^VIX and reloaded the data from Yahoo again.
Magically it worked fine this time...
Not sure why or what I did

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Data1 and Data2 do not line up in Chart Window

Postby TJ » 02 Jun 2013

TJ

Thanks for your suggestion.
In the end I deleted ^VIX and reloaded the data from Yahoo again.
Magically it worked fine this time...
Not sure why or what I did
It is good to hear that all is well.
Thanks for the update. Good trading to you.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Data1 and Data2 do not line up in Chart Window  [SOLVED]

Postby Henry MultiСharts » 03 Jun 2013

MultiCharts aligns bars by time. You need to have the same session end time in order the daily bars to line up.
Go to Format->Instrument->Settings tab->check what Session is selected for the chart.
If it is set to "Default" then go to MultiCharts->File->New->QuoteManager window->double click on the symbol you need->Sessions tab->you can modify the session time here.
If a custom session template is used go to MultiCharts->File->New->QuoteManager window->Tools->Session templates.
You need to reload the chart in order to write the bars with the correct timestamp to the database.

User avatar
Analyst
Posts: 19
Joined: 09 Jul 2013
Has thanked: 3 times
Been thanked: 2 times

Re: Data1 and Data2 do not line up in Chart Window

Postby Analyst » 09 Aug 2013

I am having the same problem. I am using real time SPY and VIX from IB, and I cannot get them to line up. Both are set to Local and, per Henry's suggestion, I have put them on the same session template. This is not merely aesthetic - studies running on VIX run one day behind. Any ideas?

User avatar
Analyst
Posts: 19
Joined: 09 Jul 2013
Has thanked: 3 times
Been thanked: 2 times

Re: Data1 and Data2 do not line up in Chart Window

Postby Analyst » 12 Aug 2013

I needed VIX to line up with SPY on a daily basis, so I created a custom session for it. See image, attached.
Attachments
VIX.jpg
(70.04 KiB) Downloaded 959 times

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Data1 and Data2 do not line up in Chart Window

Postby Henry MultiСharts » 30 Aug 2013

Analyst, if your case looks the same way as this case - then the fix for it will be implemented in the next version of MultiCharts.


Return to “MultiCharts”