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

Re: [amibroker] MA



PureBytes Links

Trading Reference Links

Well its certainly a lot of code could please provide a short explanation on
how it can best be used ?

Thanks David
----- Original Message -----
From: "kailash pareek" <johnnypareek@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, November 06, 2001 6:08 PM
Subject: [amibroker] MA


> Hi
>
> It seems that Moving Avg. is hot sub. A code is given
> below. I'll be glad if impress anyone.
> /*Modified 50 Day Moving Average*/
> N=50;
> TN=MA(C,N);
> sOneA=((n-1)/2)*C+
> ((n-3)/2)*Ref(C,-1)+
> ((n-5)/2)*Ref(C,-2)+
> ((n-7)/2)*Ref(C,-3)+
> ((n-9)/2)*Ref(C,-4)+
> ((n-11)/2)*Ref(C,-5)+
> ((n-13)/2)*Ref(C,-6)+
> ((n-15)/2)*Ref(C,-7)+
> ((n-17)/2)*Ref(C,-8)+
> ((n-19)/2)*Ref(C,-9);
> sOneB=((n-21)/2)*Ref(C,-10)+
> ((n-23)/2)*Ref(C,-11)+
> ((n-25)/2)*Ref(C,-12)+
> ((n-27)/2)*Ref(C,-13)+
> ((n-29)/2)*Ref(C,-14)+
> ((n-31)/2)*Ref(C,-15)+
> ((n-33)/2)*Ref(C,-16)+
> ((n-35)/2)*Ref(C,-17)+
> ((n-37)/2)*Ref(C,-18)+
> ((n-39)/2)*Ref(C,-19);
> sOneC=((n-41)/2)*Ref(C,-20)+
> ((n-43)/2)*Ref(C,-21)+
> ((n-45)/2)*Ref(C,-22)+
> ((n-47)/2)*Ref(C,-23)+
> ((n-49)/2)*Ref(C,-24)+
> ((n-51)/2)*Ref(C,-25)+
> ((n-53)/2)*Ref(C,-26)+
> ((n-55)/2)*Ref(C,-27)+
> ((n-57)/2)*Ref(C,-28)+
> ((n-59)/2)*Ref(C,-29);
> sOneD=((n-61)/2)*Ref(C,-30)+
> ((n-63)/2)*Ref(C,-31)+
> ((n-65)/2)*Ref(C,-32)+
> ((n-67)/2)*Ref(C,-33)+
> ((n-69)/2)*Ref(C,-34)+
> ((n-71)/2)*Ref(C,-35)+
> ((n-73)/2)*Ref(C,-36)+
> ((n-75)/2)*Ref(C,-37)+
> ((n-77)/2)*Ref(C,-38)+
> ((n-79)/2)*Ref(C,-39);
> sOneE=((n-81)/2)*Ref(C,-40)+
> ((n-83)/2)*Ref(C,-41)+
> ((n-85)/2)*Ref(C,-42)+
> ((n-87)/2)*Ref(C,-43)+
> ((n-89)/2)*Ref(C,-44)+
> ((n-91)/2)*Ref(C,-45)+
> ((n-93)/2)*Ref(C,-46)+
> ((n-95)/2)*Ref(C,-47)+
> ((n-97)/2)*Ref(C,-48)+
> ((n-99)/2)*Ref(C,-49);
> sOne=sOneA+sOneB+sOneC+sOneD+sOneE;
> yTwo=TN+(6*sOne)/((N+1)*N);
> Graph0=yTwo;
> Graph1=MA(C,50);
> Graph2=C;
> Graph2Style=128;
>
> Kailash K Pareek
>
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>






  • References:
    • MA
      • From: kailash pareek