AverageMTF Fuction - Function

Vragen en suggesties over handelssystemen en indicatoren

Moderator: Perry

AverageMTF Fuction - Function

Berichtdoor JPR » vr 31 okt 2003, 23:53

AverageMTF Fuction

Inputs: Factor( numericsimple ), Price( numericseries ), Length( numericsimple );

Variables: Sum( 0 ), Count( 0 ), Vector( 0 );

Vector = PriceMTF( Factor, Price );

Sum = 0;

If MTF( Factor ) Then
Begin
For Count = 0 to Length - 1
Begin
Sum = Sum + Vector[ Count * Factor ];
End;
AverageMTF = Div( Sum, Length );
End
Else
AverageMTF = AverageMTF[1];
JPR
 
Berichten: 85
Geregistreerd op: wo 03 jul 2002, 18:39

Keer terug naar Handelssystemen + Indicatoren

Wie is er online

Gebruikers op dit forum: Geen geregistreerde gebruikers en 12 gasten

cron