- Topics: 5
- Replies: 317
- Posts: 322
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…
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:
V1 = LOW(Day(PERIODAMOUNT=1), OFFSET=1);
V2 = HIGH(Day(PERIODAMOUNT=1), OFFSET=1);
V3 = CLOSE(Day(PERIODAMOUNT=1), OFFSET=1);
V4 = ( V1 + V2 + V3 ) / 3;
Plot1 = LAST(V4) ;
Plot1.Linestyle = Dash;
Plot1.Colour = Green;
Then set the tools offset to something like 100. With both Show Plots on the chart it would look like this:
Solid Green Line (original script), Dashed Green Line is the last value projected forward.
- This reply was modified 3 weeks, 6 days ago by Matthew.