Extending Show Plot lines on intraday chart

Optuma Forums Optuma Scripting Extending Show Plot lines on intraday chart

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #60847
    Annette
    • Topics: 3
    • Replies: 3
    • Posts: 6

    Hello,

    During the start of trading for the day, the script below shows the ‘show plot’ line only with the current 1 min/3min bar, etc which have filled in.  Is it possible to have the ‘show plot’ line extend out to the right beyond the current data early data?

    Thank you,
    Annette

    V1 = LOW(Day(PERIODAMOUNT=1), OFFSET=1);
    V2 = HIGH(Day(PERIODAMOUNT=1), OFFSET=1);
    V3 = CLOSE(Day(PERIODAMOUNT=1), OFFSET=1);
    Plot1 = ( V1 + V2 + V3 ) / 3;

    #60856
    Matthew
    • Topics: 5
    • Replies: 381
    • Posts: 386

    Hi,

    How are you wanting to extend it out?  There is the offset that moves the entire plot over, or are you wanting the latest value to show as a horizontal line into the future.

    If it is an offset you can do this via the Show Plots properties…

    Ex2

    Displaying the plot past the last bar as a horizontal line is not currently available (outside of the offset option).  The closest you can do is to setup a second show plot with the following script:

    Then set the tools offset to something like 100. With both Show Plots on the chart it would look like this:

    Ex3
    Solid Green Line (original script), Dashed Green Line is the last value projected forward.

    • This reply was modified 8 months ago by Matthew.
    #61657
    Annette
    • Topics: 3
    • Replies: 3
    • Posts: 6

    Very helpful, tyvm! The plot lines are now extending into the future. Best to you.

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

Pin It on Pinterest