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

[EquisMetaStock Group] Re: MMA Exploration



PureBytes Links

Trading Reference Links

Again Jose comes through with an elegent code. Thanks.



--- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva" <josesilva22@xxx> 
wrote:
>
> ======================
> POsc signals indicator
> ======================
> ---8<------------------------------
> 
> { http://www.metastocktools.com }
> 
> { User input }
> plot:=Input("plot:   [1]Signals,   [2]Oscillator",1,2,1);
> 
> { OscP 3/30 condition }
> Osc1:=If(OscP(3,30,E,%)>0,1,-1);
> 
> { OscP 5/35 condition }
> Osc2:=If(OscP(5,35,E,%)>0,1,-1);
> 
> { OscP 8/40 condition }
> Osc3:=If(OscP(8,40,E,%)>0,1,-1);
> 
> { OscP 10/45 condition }
> Osc4:=If(OscP(10,45,E,%)>0,1,-1);
> 
> { OscP 12/50 condition }
> Osc5:=If(OscP(12,50,E,%)>0,1,-1);
> 
> { OscP 15/60 condition }
> Osc6:=If(OscP(15,60,E,%)>0,1,-1);
> 
> { Combined 6-level logic oscillator }
> Osc:=Osc1+Osc2+Osc3+Osc4+Osc5+Osc6;
> 
> { Condition }
> buy:=Osc>0 AND Ref(Osc,-1)<=0;
> sell:=Osc<0 AND Ref(Osc,-1)>=0;
> cond:=buy-sell;
> 
> { Plot in own window }
> 0;If(plot=1,cond,Osc)
> 
> ---8<------------------------------
> 
> 
> jose '-)
> http://www.metastocktools.com
> 
> 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, 
> "formulaprimer" <formulaprimer@> wrote:
> >
> > Can anyone put the below exploration as an indicator with all the 
> > criteria including the filter aspect. Thanks.
> > Kev.
> > ===========================================
> > 
> > MMA 0/45:= If(OscP(10,45,E,%)>0,+1,-1);
> > MMA 2/50:= If(OscP(12,50,E,%)>0,+1,-1);
> > MMA 5/60:= If(OscP(15,60,E,%)>0,+1,-1);
> > MMA 5/35:= If(OscP(5,35,E,%)>0,+1,-1);
> > MMA 8/40:= If(OscP(8,40,E,%)>0,+1,-1);
> > 
> > Col A:= CLOSE;
> > 
> > Col B:= Ref(C,-1);
> > 
> > Col C:= Ref(C,-2);
> > 
> > Col D:= Fml( "MMA 3/30") + Fml( "MMA 5/35") + Fml( "MMA 8/40") + 
> > Fml( "MMA 10/45") + Fml( "MMA 12/50") + Fml( "MMA 15/60");
> > 
> > Col E:= Ref(Fml( "MMA 3/30") + Fml( "MMA 5/35") + Fml("MMA 8/40") 
+ 
> > Fml( "MMA 10/45")+ Fml( "MMA 12/50") + Fml( "MMA 15/60") ,-1) 
> > 
> > Filter: 
> > When(colD,>,0) AND When(colE,<=,0)
>





 
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/