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

Re: EL logic probelm..test yourself !



PureBytes Links

Trading Reference Links

This might work

{********************

Indicator: BarSpeed

Last edit: 1/24/2000

provided by: david stanley

**********************}

vars:tdif(0),barspeed(0);

if t>=t[1] and d=d[1] then begin

  tdif=timetominutes(time)-timetominutes(time[1]);

end

else begin

  tdif=(1440-timetominutes(time[1])) + timetominutes(time);

end;

barspeed= 1 / tdif;

plot1(barspeed,"barspeed");

Ian McVicar wrote:

> I am trying to get EL to tell me how many tick bars (based on 15 ticks per bar)
> are in one minute of time frame.
>
> Generally it is 4 to 7 tick bars.
>
> But I want EL to tell me that
>
> How can get EL to tell me that ?
>
> Ian
>
> _____________________________________________________________________________
> http://cars.yahoo.com.au/ - Yahoo! Cars
> - Buy, sell or finance a car..