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

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



PureBytes Links

Trading Reference Links

where do you enter this code?
 
good luck..
----- Original Message -----
Sent: Wednesday, January 19, 2005 2:14 PM
Subject: [EquisMetaStock Group] Re: Latch or something else ??



hello Jose and everybody else,

I´ve 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´t 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´ve 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.







No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 1/17/2005


Yahoo! Groups Links

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 1/17/2005