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

Re: blast from the past....timebar code



PureBytes Links

Trading Reference Links


Very nice, Holverstott.  Very nice.
 
Here's another way to look at it...  as an indicator.
 
 
Input:
 
Rotate(10),
LoLevel(7),
HiLevel(15);


Var:

BarInCyc(0),
BarInCyc2(0);


If D <> D[1] then begin
	BarInCyc = 0;
	BarInCyc2 = 0;
End;

If Mod(TimeToMinutes(Time), 2 * Rotate) < Rotate then begin
	BarInCyc = 0;
	BarInCyc2 = BarInCyc2 + 1;
End
Else begin
	BarInCyc2 = 0;
	BarInCyc = BarInCyc + 1;
End;

Plot1(MaxList(BarInCyc, BarInCyc2), "BarInCyc");
Plot2(0, "Zero Line");
Plot3(LoLevel, "LoLevel");
Plot4(HiLevel, "HiLevel");


Of course, the indicator is low prior to big moves, higher near the end of sharp moves.
 
 
 
 
>  ---- you wrote: 
> > version 3.... this one only paints the first bar of the new period.
> > 
> > input: rotate(5);
> > 
> > if t <> t[1] then begin
> >   if mod(timetominutes(t),rotate) = 0 then begin
> >     plot1(h,"hi");
> >     plot2(l,"lo");
> >   end;
> > end;
> > 
> > -- 
> >    Dennis
> > 
> 
> 
> ------------------------------------------------------