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

Re: Help with trendline code



PureBytes Links

Trading Reference Links

Hello Howard,
   I wnat to thank you very much for taking the time to code this -- it is
certainly much more than just "giving me a start". My intent is to add a
second trendline which will intersect the first. The point of intersection
becomes the support point for the nect day. At least that is how the theory
goes. This seems to be very nice neat code. Thanks again.
Karl
-----Original Message-----
From: Howard Jackson <hrjf4@xxxxxxxxx>
To: Karl <kschr@xxxxxxxxxxx>; RealTraders <realtraders@xxxxxxxxxxxxx>;
OmegaList <omega-list@xxxxxxxxxx>
Date: Monday, May 22, 2000 10:56 AM
Subject: Re: Help with trendline code


>I got this to work. To draw a trendline you need a
>start and an end point. In a chart that means date,
>time and price for both begin and end point.
>I don't see the use of this other than a good ezl
>programming example... the lines most often than not
>shoot straight up or down. Maybe it shows something in
>a market with lower volatility, but who would want to
>TRADE such markets?
>
>Vars: Daylo(0), DayHi(0), dayhitime(0), dayhidate(0),
>daylotime(0), daylodate(0);
>
>If BarNumber = 1 or date<>date[1] then begin
>   If barnumber > 1 then begin
>      value1 = TL_New(daylodate, daylotime, Daylo,
>dayhidate, dayhitime, DayHi);
>      value2 = TL_SetExtRight(value1, true);
>   end;
>   Daylo = Low; dayHi = High;
>   dayhitime = time;
>   dayhidate = date;
>   dayLoTime = time;
>   dayLodate = date;
>end;
>
>If High > DayHi then begin
>   dayhi = high;
>   dayhitime = time;
>   dayhidate = date;
>end;
>If Low < DayLo then Begin
>   dayLo = low;
>   dayLoTime = time;
>   dayLodate = date;
>end;
>
>--- Karl <kschr@xxxxxxxxxxx> wrote:
>> Sorry for the repost. I still could use some help. I
>> know that to draw a
>> trendline I need to identify the starting and ending
>> point either by time or
>> by bar number. How do I identify the lowest low of
>> yesterday in a form that
>> can be used with a trendline? I will add another TL
>> but if I can get the
>> concept of how to do it with the first one I am sure
>> I can handle the rest.
>>
>> I need some EL help creating a trendline indicator
>> for use on 5 min bar
>> chart. Conditions as follows:
>> 1) Draw a trendline connecting the lowest low of
>> yesterday to the highest
>> high of yesterday
>> 2) Extend the line into today
>>
>> Having a hard time with this one. Any code help much
>> appreciated.
>> Karl
>>
>>
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Send instant messages & get email alerts with Yahoo! Messenger.
>http://im.yahoo.com/
>