Moving average from higher time frame  [SOLVED]

Questions about MultiCharts and user contributed studies.
wullenweber helmut
Posts: 55
Joined: 21 Dec 2007
Has thanked: 2 times
Been thanked: 9 times

Moving average from higher time frame

Postby wullenweber helmut » 23 Feb 2018

For people who like to plot a moving average from a higher timeframe in the chart with a lower time frame it would be a great help to have the possibility to set the scaling range in data2 as same as data1 automatically.

In my example you can see a moving average from a 30 minute chart in the 5 minute chart using data1 and data2 and synchronize scaling from data2 and the moving average to the scaling from data1.

Step 1: ad moving average indicator “base study on” data2 (30 min) and plot moving average in subchart1 with data1 (5 min). Scaling moving average “same as instument”.
Step2: The scaling range from data 1 and data 2 must be the same, so maximum and minimum must be user defined via setting “Format Symbol – Scaling”.

It would be cool to have the opportunity for synchronize scaling from data2 to data1 so that many sophisticated programming with PriceSeriesProvider and other challenges could be avoided.

Daxavgdata2.png
Daxavgdata2.png (68.86 KiB) Viewed 389 times
data2format.png
data2format.png (127.14 KiB) Viewed 389 times

User avatar
TJ
Posts: 6940
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1988 times

Re: Moving average from higher time frame

Postby TJ » 23 Feb 2018

wullenweber helmut wrote:....

It would be cool to have the opportunity for synchronize scaling from data2 to data1 so that many sophisticated programming with PriceSeriesProvider and other challenges could be avoided.

Daxavgdata2.pngdata2format.png



Can you expand on this?

wullenweber helmut
Posts: 55
Joined: 21 Dec 2007
Has thanked: 2 times
Been thanked: 9 times

Re: Moving average from higher time frame

Postby wullenweber helmut » 23 Feb 2018

Another example: Display a weekly moving average in a daily chart without a Dll such as All Data Everywhere (ADE)

Data1: SPY daily
Data2: SPY weekly
Base study (moving average) in subchart 1 on data2
Scaling Range Data1 & Data2 & Study in subchart1: User defined Max 300 Min 175

If data2 could be synchronized automaticly to the scale of data1 the user does not have to scale the price axis manually.

SPYdayweek.png
SPYdayweek.png (43.69 KiB) Viewed 373 times

User avatar
TJ
Posts: 6940
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1988 times

Re: Moving average from higher time frame

Postby TJ » 23 Feb 2018

wullenweber helmut wrote:Another example: Display a weekly moving average in a daily chart without a Dll such as All Data Everywhere (ADE)

Data1: SPY daily
Data2: SPY weekly
Base study (moving average) in subchart 1 on data2
Scaling Range Data1 & Data2 & Study in subchart1: User defined Max 300 Min 175

If data2 could be synchronized automaticly to the scale of data1 the user does not have to scale the price axis manually.

SPYdayweek.png



You do not need to use ADE.

Go to Format Instrument,
set the data2 property to Chart #1.

wullenweber helmut
Posts: 55
Joined: 21 Dec 2007
Has thanked: 2 times
Been thanked: 9 times

Re: Moving average from higher time frame

Postby wullenweber helmut » 23 Feb 2018

I don´t catch your idea. How do I set "the data2 property to Chart #1"?

User avatar
TJ
Posts: 6940
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1988 times

Re: Moving average from higher time frame

Postby TJ » 23 Feb 2018

wullenweber helmut wrote:I don´t catch your idea. How do I set "the data2 property to Chart #1"?



Have you followed my instruction?
...Go to Format Instrument

User avatar
TJ
Posts: 6940
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 984 times
Been thanked: 1988 times

Re: Moving average from higher time frame

Postby TJ » 23 Feb 2018

See red circle

Then set the style to "Invisible Bars" if you don't want to see it.
Attachments
Format Instrument.JPG
Format Instrument.JPG (56.55 KiB) Viewed 363 times
These users thanked the author TJ for the post:
wullenweber helmut

wullenweber helmut
Posts: 55
Joined: 21 Dec 2007
Has thanked: 2 times
Been thanked: 9 times

Re: Moving average from higher time frame  [SOLVED]

Postby wullenweber helmut » 25 Feb 2018

@TJ
It finally sunk in! Thanks a lot.


Return to “MultiCharts”