Trendline to future bars (not using ExtRight)  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

Trendline to future bars (not using ExtRight)

Postby Ram » 12 Feb 2015

Hi,

I'm trying to draw a trend-line to bar -26, I've set the time scale to 27 but get an error:
Image
when using plot instead of trend line as the above there's no error.. does trend-line supports only ExtRight for future bars?

Thanks much,
Best,
R.

Ram
Posts: 90
Joined: 25 Nov 2014
Has thanked: 17 times
Been thanked: 5 times

Re: Trendline to future bars (not using ExtRight)  [SOLVED]

Postby Ram » 12 Feb 2015

My solution/workaround is instead of using:

Code: Select all

X = -26
ChartPoint(Bars.Time.Item(X), 0)
I use:

Code: Select all

X = -26
ChartPoint(Bars.CurrentBar + Math.ABS(X), 0)
Best,
R.


Return to “MultiCharts .NET”