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

Re: Drawing lines automatically on charts



PureBytes Links

Trading Reference Links

Wayne.  Thanks for posting this code.  It certainly adds to the
information base on Auto Drawing TL

At least it does in my case.  A year ago I would not have even attempted
the task.

My question is if we have a horizontal line.  I would like to place at
text comment on the left of this line and the TL value or stock price at
that line at the right side.

I can follow your coding very well thank you.  

TL = TL_New(start,1600,p1, ends,1600,p2 );  { for this example it a
Horizontal line}
          TL_SetStyle(TL, 1);
          TL_SetColor(TL, blue);
{ what statement would be required after your code here to code my
inquiry}



Thanks .... 

John




Wayne Mathews wrote:
> 
> Try the code below for semi-automatically (input: dys) extending a
> TL_New(....) line drawn on a daily chart.
> 
> The difficulty here is the mixing of dates (used in drawing TL_New(…))
> and barnumbers (in TLValue (which finds the price at the end of the
> extension)). What is the date of, say 8 bars ahead (the bar you want to