PureBytes Links
Trading Reference Links
|
Jose. Thanks so much. I'll work on it.
David
----- Original Message -----
Sent: 18 January 2005 19:48 PM
Subject: [EquisMetaStock Group] Re: Latch or something else
??
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.
Yahoo! Groups Links
|
|