Timeframe function

Optuma Forums Optuma Scripting Timeframe function

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #66319
    Jeffrey
    • Topics: 12
    • Replies: 4
    • Posts: 16

    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

    #66325
    Darren
    • Topics: 67
    • Replies: 702
    • Posts: 769

    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:

    Capture
    Capture

    1 user thanked author for this post.
    #66495
    Steven
    • Topics: 8
    • Replies: 18
    • Posts: 26

    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

    #66499
    Jeffrey A.
    • Topics: 49
    • Replies: 71
    • Posts: 120

    Steven,

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

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

    Jeff

    #66523
    Steven
    • Topics: 8
    • Replies: 18
    • Posts: 26

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

    Steve

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

Pin It on Pinterest