Hourly function in a 5min study

Questions about MultiCharts and user contributed studies.
NW27
Posts: 177
Joined: 25 Dec 2010
Has thanked: 40 times
Been thanked: 83 times

Hourly function in a 5min study

Postby NW27 » 03 Jan 2011

Hi,
How do I use a function that I have coded to work on a Hourly bar in a 5min study?
The issue is that Daily bars do not limit themselves to the session times applied to them.
If I create a chart using hourly bars and set the period to 24hrs and apply the session, I get the bars OHLC that I'm looking for. A daily bar using sessions.
I then want to use this daily OHLC in a function. All good so far. When I do plots on this 24hr chart using my function it gives me the correct signals.
Now I want to use these pseudo daily signals in a 5min chart.

Can I reference a function that is being applied to subchart2 against a study in subchart1?
Or something similar?

Neil.

flimbo
Posts: 8
Joined: 30 Dec 2010

Re: Hourly function in a 5min study

Postby flimbo » 03 Jan 2011

Hi,
hmm i dont understand right your question.
but i guess you want use Multi timeframe data ?
you can get another TimeFrame data on your script using OHLCPeriodsAgo function
check it out .maybe it solve your problem.

NW27
Posts: 177
Joined: 25 Dec 2010
Has thanked: 40 times
Been thanked: 83 times

Re: Hourly function in a 5min study

Postby NW27 » 04 Jan 2011

Thanks for replying,

Yes it is multi time frame data but the 2nd subchart uses a resolution of "Hours" and number of hours is set to 24.
Same as a 5min chart is set to a resolution of "Minutes" and the number of minutes is set to 5.

This the allows me to make a Daily chart of the data using the session times.
The normal "Daily" resolution chart does not factor in the session times.


Neil.


Return to “MultiCharts”