Possibility to plot a daily study in an intraday Study?  [SOLVED]

Questions about MultiCharts and user contributed studies.
nuno-online
Posts: 174
Joined: 31 Jan 2006
Has thanked: 74 times
Been thanked: 5 times

Possibility to plot a daily study in an intraday Study?

Postby nuno-online » 07 Oct 2013

Hi

I want to know if it's possible to plot a daily study in an intraday Study without using global variables or ADE.
In the intraday study, when i use data2 for the daily data, i don't have the same result than in the daily chart. I only want to plot for example the daily MACD with the hourly MACD

thank you

User avatar
furytrader
Posts: 353
Joined: 30 Jul 2010
Location: Chicago, IL
Has thanked: 155 times
Been thanked: 217 times

Re: Possibility to plot a daily study in an intraday Study?

Postby furytrader » 07 Oct 2013

What exactly do you want to see? Do you mean that you want to plot the study based on daily data onto a price chart that shows intraday values, or that you want to overlay a study based on intraday data with a study based on daily data?

User avatar
TJ
Posts: 7151
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 988 times
Been thanked: 2041 times

Re: Possibility to plot a daily study in an intraday Study?

Postby TJ » 07 Oct 2013

please post screenshots.

nuno-online
Posts: 174
Joined: 31 Jan 2006
Has thanked: 74 times
Been thanked: 5 times

Re: Possibility to plot a daily study in an intraday Study?

Postby nuno-online » 07 Oct 2013

FuryTrader

you want to overlay a study based on intraday data with a study based on daily data

User avatar
furytrader
Posts: 353
Joined: 30 Jul 2010
Location: Chicago, IL
Has thanked: 155 times
Been thanked: 217 times

Re: Possibility to plot a daily study in an intraday Study?

Postby furytrader » 07 Oct 2013

I don't know how clean it will look but all you have to do is:

1) When you create your intraday indicator, make sure you click on the Format Study -> Properties tab and where it says "Base Study On", select the data series for your intraday data;

2) When you create the indicator based on the end-of-day indicator, do the same as #1 but where it says "Base Study On", select the data series for the daily data;

3) You will now have two subcharts with indicators based on different data streams. Make sure these are showing the correct values;

4) Re-select your end-of-day indicator, click Format Study -> Properties and change the SubChart from SubChart #3 to Subchart#2 (or whatever sub chart that has your intraday indicator).

That's it.

nuno-online
Posts: 174
Joined: 31 Jan 2006
Has thanked: 74 times
Been thanked: 5 times

Re: Possibility to plot a daily study in an intraday Study?

Postby nuno-online » 07 Oct 2013

FuryTrader

thank you

i did it but in my example
daily macd = 14,57
hourly macd = 0.63

the two indicators are in Subchart#2

Problem with the scale: daily macd is below hourly macd

is it possible to have the same scale for the two indicators?
Attachments
test.jpg
test.jpg (154.5 KiB) Viewed 783 times

nuno-online
Posts: 174
Joined: 31 Jan 2006
Has thanked: 74 times
Been thanked: 5 times

Re: Possibility to plot a daily study in an intraday Study?

Postby nuno-online » 09 Oct 2013

is it possible to have the same scale for the two indicators?

cf post above

User avatar
Henry MultiСharts
Posts: 9064
Joined: 25 Aug 2011
Has thanked: 1256 times
Been thanked: 2911 times

Re: Possibility to plot a daily study in an intraday Study?

Postby Henry MultiСharts » 14 Oct 2013

nuno-online, you need to place both indicators over 1 day dataseries (on the same subchart). Make 1 day bars invisible if you do not need to see them. Set the scaling of both indicators to Same as Instrument.
These users thanked the author Henry MultiСharts for the post:
nuno-online

nuno-online
Posts: 174
Joined: 31 Jan 2006
Has thanked: 74 times
Been thanked: 5 times

Re: Possibility to plot a daily study in an intraday Study?

Postby nuno-online » 15 Oct 2013

Henry

thank you for your help

I did 2 tests:

Screenshot A
the result is good because indicators are in the same subchart as price with the same scale

Screenshot B
the result isn't good because both indicators aren't in the price's subchart
they are in subchart 2 and price in subchart1
exemple
last daily value = 26.99
last intraday value = 28.85
in subchart 2, the last daily value isn't below the last intraday value
(scaling of both indicators : Same as Instrument)

can you give me an example with both indicators (daily and intraday) in subchart 2 withe the same scale?

Nuno
Attachments
B.png
B.png (150.56 KiB) Viewed 763 times
A.png
A.png (51.96 KiB) Viewed 773 times

User avatar
Henry MultiСharts
Posts: 9064
Joined: 25 Aug 2011
Has thanked: 1256 times
Been thanked: 2911 times

Re: Possibility to plot a daily study in an intraday Study?

Postby Henry MultiСharts » 17 Oct 2013

nuno-online, do you want to see both data series (N Hours and 1 day) on your chart without indicators, or just N Hours series and indicators (1 day series hidden)? Please attach the workspace you are using.

nuno-online
Posts: 174
Joined: 31 Jan 2006
Has thanked: 74 times
Been thanked: 5 times

Re: Possibility to plot a daily study in an intraday Study?

Postby nuno-online » 18 Oct 2013

Henry
i want to see 1Hour chart in subchart1 and indicators in subchart2

In subchart 2,
I want to see with the same scale
- indicator A based on 1 hour chart
- indicator A based on daily chart

here the workspace
Attachments
TEST.wsp
(215.04 KiB) Downloaded 281 times

User avatar
Henry MultiСharts
Posts: 9064
Joined: 25 Aug 2011
Has thanked: 1256 times
Been thanked: 2911 times

Re: Possibility to plot a daily study in an intraday Study?  [SOLVED]

Postby Henry MultiСharts » 23 Oct 2013

nuno-online, there are two ways to achieve your goal:
1) use "User Defined" scaling for both indicators;
2) perform data1 and data2 calculation in the same code, so that both plots are made by the same study like that:

Code: Select all

inputs:
   Length( 4 ) ;

variables:
   var0( 0 ),
   var1(0) ;

var0 = ADX( Length ) ;
var1 = ADX( Length )of data2 ;

Plot1( var0, "ADX" ) ;
Plot2( var1, "ADX" ) ;

Image
Attachments
adx.png
adx.png (33.3 KiB) Viewed 875 times
These users thanked the author Henry MultiСharts for the post:
nuno-online


Return to “MultiCharts”