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.
Hourly function in a 5min study
Re: Hourly function in a 5min study
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.
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.
Re: Hourly function in a 5min study
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.
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.