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

[EquisMetaStock Group] Re: Filter to inadequates cross signals



PureBytes Links

Trading Reference Links

Edson, try this formula:

---8<-------------------------------

delay:=1;
a1:=Mov(C,8,E);
a2:=Mov(C,21,E);
b1:=Ref(Mov(C,100,E),-50);
{-----------------------------------}
z2:=Ref(Cross(a1,a2),-delay); {Buy}
z4:=Ref(Cross(a2,a1),-delay); {Sell}
{-----------------------------------}

{ Buy/Sell Signals }
Buy:=z2 AND C<b1;
Sell:=z4 AND C>b1;
signals:=Buy-Sell;

{ Buy/Sell Expert Signals }
{Signals=1;}  { Up Blue arrow  }
{Signals=-1;} { Down Red arrow } 

{ Indicator composite Buy/Sell signal }
Signals

---8<-------------------------------


jose '-)
http://www.metastocktools.com




--- In equismetastock@xxxxxxxxxxxxxxx, "Edson L F" <edsonlf@xxx> 
wrote:
>
> Hi,
> How to make a filter in the "Symbols" of the "Expert Advisor" to 
filter inadequate signals of cross above or below of the a curve? 
> Ex:
> 
> a1:=Mov(C;8,E); 
> a2:=Mov(C,21,E); 
> b1:=Ref( Mov(C,100,E) , -50); 
> {-----------------------------------}
> z1:=Cross(a1,a2);
> z2:=Ref(z1,-1); {Buy}
> z3:=Cross(a2,a1);
> z4:=Ref(z3,-1); {Sell}
> {-----------------------------------}
> {Filtro}
> k1:=if( z2<b1, z2, ???); {so that it gives the signal of purchase 
below of b1 }
> k2:=if( z4>b1, z4, ???); {so that it gives the signal of venda above 
of b1 }
> k1; {Buy}
> k2; {Sell}
> 
> Thanks for any advice.







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> 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/