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

Time Based Moving Average



PureBytes Links

Trading Reference Links

Would anyone know how to code this into a indicator? Another question, is
there a way we could have " minutes " as a unit of time as a
  input?        And Bob, thanks for your patience in helping with my limited
EL skills.

Bill



Value1 = TimeToMinutes(Time);

if Mod(Value1, 10) = 0 then begin

   {Calculations every 10 minutes}

end;



-----Original Message-----
From: Bob Fulks <bfulks@xxxxxxxxxxxx>
To: knyyt <knyyt@xxxxxxxxxxxx>
Cc: C_List <code-list@xxxxxxxxxxxxx>
Date: Monday, May 17, 1999 1:56 PM
Subject: Re: CL_Time based moving average


>At 3:08 PM -0400 5/17/99, knyyt wrote:
>
>>Does anyone know if ( or have ) there is a way to code a moving average
>>based on time that can be used with tick charts.
>
>
>You should be able to use the "TimeToMinutes" function. For example, say
>you wanted to update an average every 10 minutes:
>
>
>Value1 = TimeToMinutes(Time);
>
>if Mod(Value1, 10) = 0 then begin
>
>   <Calculations every 10 minutes>
>
>end;
>
>
>Bob Fulks
>
>http://www.markbrown.com
>