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

[EquisMetaStock Group] Re: Latch or something else ??



PureBytes Links

Trading Reference Links


hello Jose and everybody else,

I扉e tried today the formula below, first results were to much 
signals, but after chancing this ;

     flag:=BarsSince(Init OR In)<BarsSince(Init OR Out)+InInit;
into this ;
     flag:=BarsSince(Init OR In)>BarsSince(Init OR Out)+InInit;

and this line  trade:=Ref(If(plot=1,signals,In-Out),-delay);
trade=1;

the result seems to be perfect, only one arrow on exacly the right 
canddle :-)

only one thing, don愒 chance trade=1;  to trade=0;  !!!!  i think 
that way metastock is running in to a loop or something like that,  
metastock will shutdown with an error !!  maybe someone can explain 
that ?

muchos gracias !!
Thanks a lot !

Mark








--- In equismetastock@xxxxxxxxxxxxxxx, "Jose" <josesilva22@xxxx> 
wrote:
> 
> Try this:
> 
> ---8<---------------------
> 
> { http://users.bigpond.com/prominex/pegasus.htm#metastock }
> 
> { System Entry & Exits }
> In:=Fml("system buy signals");
> Out:=Fml("system sell signals");
> 
> { User inputs }
> delay:=0; {Entry and Exit delay};
> plot:=1;  {Signals:  [1]Clean,  [2]All}
> 
> { Clean signals }
> Init:=Cum(In+Out>-1)=1;
> InInit:=Cum(In)=1;
> flag:=BarsSince(Init OR In)
>  <BarsSince(Init OR Out)+InInit;
> signals:=(InInit AND Alert(InInit=0,2)
>   OR flag AND Alert(flag=0,2))
>    -(flag=0 AND Alert(flag,2));
> 
> { Plot in own window or use as Expert symbol}
> Ref(If(plot=1,signals,In-Out),-delay)
> 
> ---8<---------------------
> 
> 
> jose '-)
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, daytraderteam 
<no_reply@xxxx> 
> wrote:
> > 
> > 
> > Hello all,
> > 
> > i am trying to program my trading system into metastock by using 
the 
> > simbols options in the expert advisor
> > 
> > For example;, the price makes a new low in 1000
> > and the price starts to go up to 1020.
> > The formula cross(c,1000+10) gives me a  "sell symbol" in the 
right 
> > candle.  (contrair trading)
> > But as prices never go up in one line, at 1013 the price falls 
down 
> > near 1008. (till here no problem)
> > The price start to go up again to 1020. but metastock gives me 
again 
> > in the bar were the price crosses the 1010 a "sell symbol". This 
can 
> > happen many times as long the price is arround 1010. 
> > 
> > i扉e bin trying the last 2 weeks many  formulas to work arround 
this 
> > problem but without results
> > Is there a way that metastock gives me only 1 "sell" signal till 
the 
> > price reaches the next condition for a "sell" signal ?
> > 
> > regards
> > Mark.








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/