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