Timeframe function

Optuma Forums Optuma Scripting Timeframe function

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #66319
    • Topics: 13
    • Replies: 4
    • Posts: 17

    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,

    • Topics: 70
    • Replies: 827
    • Posts: 897

    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:


    1 user thanked author for this post.
    • Topics: 9
    • Replies: 18
    • Posts: 27

    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?


    Jeffrey A.
    • Topics: 54
    • Replies: 77
    • Posts: 131


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



    • Topics: 9
    • Replies: 18
    • Posts: 27

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


Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest