PureBytes Links
Trading Reference Links
|
Joo,
I've taken the liberty of changing the message subject.
Thanks for the indicator! From a lanquage standpoint this is
definately shorter. The limitation problem still exist though. If we
were to try a recursion period of m25 or there about metastock would
politely tell us that we had exceeded the number of allowable
variables.
It would be great if we could set the lookback periods for the simple
and recursive moving averages by simply using an input statement.
Preston
--- In equismetastock@xxxxxxxxxxxxxxx, joo seng <jooseng6@xxx> wrote:
>
> Preston,
>
> This is my ver of the RMO Osc:
>
> m1:=mov(c,2,s);
> m2:=mov(m1,2,s);
> m3:=mov(m2,2,s);
> m4:=mov(m3,2,s);
> m5:=mov(m4,2,s);
> m6:=mov(m5,2,s);
> m7:=mov(m6,2,s);
> m8:=mov(m7,2,s);
> m9:=mov(m8,2,s);
> m10:=mov(m9,2,s);
>
> mm:=(m1+m2+m3+m4+m5+m6+m7+m8+m9+m10)/10;
>
> ST1:=100 *(c-mm)/max(hhv(c,10)-llv(c,10),0.000001);
>
> RMO:=Mov(ST1,81,E);
> RMO;
>
> --- On Sat, 28/2/09, pumrysh <no_reply@xxxxxxxxxxxxxxx> wrote:
> From: pumrysh <no_reply@xxxxxxxxxxxxxxx>
> Subject: [EquisMetaStock Group] Re: RSI Calculation
> To: equismetastock@xxxxxxxxxxxxxxx
> Date: Saturday, 28 February, 2009, 4:56 AM
>
>
> Joo,
>
>
> Just noticed that I had written recussion... .that should have been
>
> recursion.
>
>
>
> Thus far we have:
>
>
>
> (Mov(C,2,S)+
>
> Mov(Mov(C,2, S),2,S)+
>
> Mov(Mov(Mov( C,2,S),2, S),2,S)+
>
> Mov(Mov(Mov( Mov(C,2,S) ,2,S),2,S) ,2,S)+
>
> Mov(Mov(Mov( Mov(Mov(C, 2,S),2,S) ,2,S),2,S) ,2,S)+
>
> Mov(Mov(Mov( Mov(Mov(Mov( C,2,S),2, S),2,S),2, S),2,S),2, S)+
>
> Mov(Mov(Mov( Mov(Mov(Mov( Mov
(C,2,S) ,2,S),2,S) ,2,S),2,S) ,2,S),2,S) +
>
> Mov(Mov(Mov( Mov(Mov(Mov( Mov(Mov
>
> (C,2,S),2,S) ,2,S),2,S) ,2,S),2,S) ,2,S),2,S) +
>
> Mov(Mov(Mov( Mov(Mov(Mov( Mov(Mov(Mov
>
> (C,2,S),2,S) ,2,S),2,S) ,2,S),2,S) ,2,S),2,S) ,2,\
>
> S)+
>
> Mov(Mov(Mov( Mov(Mov(Mov( Mov(Mov(Mov( Mov
>
> (C,2,S),2,S) ,2,S),2,S) ,2,S),2,S) ,2,S),2,S\
>
> ),2,S),2,S)) /10;
>
>
>
> can be written down in the following analytical form:
>
>
>
> (C*1023+Ref( C,-1)*2036+ Ref(C,-2) *1981+
>
> Ref(C,-3)*1816+ Ref(C,-4) *1486+Ref( C,-5)*1024+
>
> Ref(C,-6)*562+ Ref(C,-7) *232+Ref( C,-8)*67+
>
> Ref(C,-9)*12+ Ref(C,-10) )/10240
>
>
>
> What I would like to be able to do is simplify these formulas. Both
>
> are hardwired and in order to change them it requires that the code
>
> be rewritten. I also want to input the variables for the simple
>
> moving average and the recursive moving average.
>
>
>
> Preston
>
>
>
> --- In equismetastock@ yahoogroups. com, joo seng <jooseng6@ .>
wrote:
>
> >
>
> > Hi Preston,
>
> > Do you means you want to vary the no. of times of the mov of mov?
>
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|