[amibroker] How to draw one vertical line 90 bars from the last bar

2010-06-04 Thread Perumal

Hi

I would like to draw only one vertical line 90 bars from the last bar.

Can anybody suggest the code for drawing this vertical line.

Your help is appreciated.

Regards

UMR Perumal



Re: [amibroker] How to draw one vertical line 90 bars from the last bar

2010-06-04 Thread reinsley


Hi,

I don't remember the author.

Best regards

N = Param(Bars away from end, 90, 0, 100, 1);

AtNBar = BarIndex() == LastValue(BarIndex() - N); // are we at Nth bar 
from the last?
Plot(AtNBar,, colorRed, styleHistogram| styleOwnScale, Null, Null) ; 
// Plot vertical line, N bars to left of last bar





Le 04/06/2010 11:38, Perumal a écrit :



Hi

I would like to draw only one vertical line 90 bars from the last bar.

Can anybody suggest the code for drawing this vertical line.

Your help is appreciated.

Regards

UMR Perumal