Timeframe function

Hello,
I am trying to create a new RSI that only displays the daily chart’s information on all timeframes. For instance, if on a 15 min or hourly, the RSI would display the daily information.
This seems like a terribly easy script to write as a showview with the Timeframe() function but I can’t seem to get it to plot correctly. Sorry for the newbie question!
Thanks as always,
Jeff

Hi Jeff,

In the script editor select the timeframe from the popup from the RSI function (note that the Default setting will always calculate using the same timeframe as the chart). This will calculate the daily value on any minute chart using the Show View tool:

RSI(Day(PERIODAMOUNT=1), BARS=14)

Capture
Capture

I have a similar question so will add here if ok.

I want to see the daily value on a 5 minute chart (or any intraday chart to be honest)

MA(Day(PERIODAMOUNT=1), BARS=30, STYLE=Exponential, CALC=Close)

the values shown on the intraday don’t agree with the daily and as I change intraday, the value changes.

Even using MA(Day(PERIODAMOUNT=1), BARS=30, STYLE=Exponential, CALC=Close)[1] assuming that the daily figures changes potentially with every intraday second, yet the past day shouldn’t - the figure is wrong.

Am I doing something silly?

Thanks

Steven,

Look at this HigherTime() function and see if that works.

https://help.optuma.com/kb/faq.php?id=277

Jeff

Thanks Jeff - that seems to work. Went down the wrong garden path it seems…

Steve