[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trendlines



PureBytes Links

Trading Reference Links


Many thanks to everyone who replied. Don't seem to have to use the date thing as Dennis suggested (maybe it'll go pear-shaped later, I don't know) but added the number of 'back bars' to the date like this:

if Time = 0700 then begin
id1=tl_new(date[36],2200,close[36],date,0700,close);
value1=tl_setextright(id1,false);
value2=tl_setextleft(id1,false);
end;

And that works great!

I suspect it's not, but can anyone confirm whether or not it's possible to extend the line to the right by a couple of bars? I know you can change the end with tl_setend but you need to know the price you want the bar to end on. I'd simply like to extend the existing line, and extend it past the hard right edge before new bars appear.

Ian