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

Re: Drawing lines automatically on charts



PureBytes Links

Trading Reference Links

Many, many thanks to everyone who responded including ELAELS who I 
promised to mention - hi there...! (:-) I was able to draw the lines I 
wanted after a fashion (I don't think I've quite got the hang of the TL_ 
commands) but it was enough to see that the idea needs a bit more work - 
ain't that the way - so it continues as a work in progress.

Thanks again to all - you're a great bunch of guys!

Ian

> Further to this, some very helpful people have sent great swatches of 
> code examples containing trendlines. Unfortunately, most is well 
> beyond me... (:-(
> 
> I have two highs (one is higher than the other) so the trendline I 
> have managed to draw is not verticals or horizontal but at an angle 
> and I'd just like a line or two of code that will extend the line X 
> bars to the right. Is that possible?
> 
> Apologies again for any confusion and thanks to everyone for their 
> help.
> 
> Cheers,
> Ian
> 
> > I've sussed some of this... (:-) I can now use TL_New to draw a 
> > trendline between two stipulated points, in this case between two 
> > highs.
> > 
> > What I'd like to do is to extend the line to the right by so-many 
> > bars. The only way I can see to do this is with TL_SetEnd but that 
> > requires that you have a specific date, time and price. I don't 
> > suppose there is a TL_ExtendLineBy-X-bars function, is there...? 
> > (:-)
> > 
> > Given that I already have two dates, two times and two prices of 
> > the highs to draw the line in the first place, is there a formula 
> > that would let me calculate new end values for so-many bar in the 
> > future?
> > 
> > I'm just getting into this trendline lark and would very much 
> > appreciate some help.
> > 
> > Cheers,
> > Ian
> > 
> > 
> > > So I've defined a couple of highs and a couple of lows and I'd 
> > > like to draw one line on the chart connecting the highs, and 
> > > another line connecting the lows. I'd also like to extend these 
> > > lines a few bars into the future. The lines aren't parallel.
> > > 
> > > Can this be done in TS? Any pointers appreciated.
> > > 
> > > Cheers,
> > > Ian
> > > 
> > > 
> > 
> > 
> 
>