PureBytes Links
Trading Reference Links
|
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
> >
> >
>
>
|