Data series with different trading times

Questions about MultiCharts and user contributed studies.
User avatar
JoshM
Posts: 2084
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1525 times
Been thanked: 1483 times
Contact:

Data series with different trading times

Postby JoshM » 17 Nov 2011

I'm afraid I'm having a case of "EasyLanguage-memory loss", since I can't do the following:

    Plot the Close of Data1 and the Close of Data2, when both data series have different (partially overlapping) trading hours, but are set to a 24 hour session template.

With this code..

Code: Select all

Plot1(Close Data1, "Close Data1");
Plot2(Time Data1, "Time Data1");

Plot3(Close Data2, "Close Data2");
Plot4(Time Data2, "Time Data2");


I get only the Close of Data2 plotted, when there's is a Close of Data1:
accessingData2.png
Example of problem
accessingData2.png (101.86 KiB) Viewed 116 times


What am I missing? How can this be done?

Regards,
Josh

User avatar
Henry MultiСharts
Posts: 8479
Joined: 25 Aug 2011
Has thanked: 1211 times
Been thanked: 2719 times

Re: Data series with different trading times

Postby Henry MultiСharts » 18 Nov 2011

On the left screenshot there is no bar on the Data series one. That means there is no script calculation.
On the right screenshot the script is calculated on the data1, then:
if the real-time history matching option is enabled-it will take the value of the last closed bar of data2.
if the real-time history matching option is disabled-it will take the values of the real-time bar of data2.
These users thanked the author Henry MultiСharts for the post:
JoshM


Return to “MultiCharts”