PureBytes Links
Trading Reference Links
|
--- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@xxxx> wrote:
>
> Rua,
>
> In metastock its common to use binaries to achieve a goal such as
> this. In order to write the indicator you will have to provide your
> first condition where indicated.
>
> firstsig:={enter your 1st indicator here};
> secondsig:= C >mov(c,20,s) and adx(13) > 25;
> entry:= if(firstsig = 1 and secondsig = 1,1,0);
> entry
>
> What happens is that the first signal will equate to one when it is
> true else its zero. The same applies for the second signal. When both
> signals equal one in the entry variable you will get a 1 else it will
> be 0. Another option is to simply add the conditions like this:
>
> entry:=firstsig + secondsig;
>
> When a two is given then you know that both conditions have been met.
>
>
> Preston
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, Alexandre Saveliev
> <asavelievca@xxxx> wrote:
> > Try C >mov(c,20,s) and adx(13) > 25 and ref(C >mov(c,20,s) and adx
> (13) > 25 , -1)
> >
> >
> >
> > Alex
> >
> >
> > ruagoodp <no_reply@xxxxxxxxxxxxxxx> wrote:
> >
> >
> > Hi all,
> >
> > It seems simple enough to me but I can't seem to construct the
> formula.
> > What I want is to generate an entry signal after another signal has
> > been generated earlier.
> >
> > My criteria for entry are C >mov(c,20,s) and adx(13) > 25 only
> after a
> > previous signal has been generated.
> >
> > Is this possible?
> >
> > Rua
Thanks for that! I fiddled with the entry signal thus:
firstsig:={enter your 1st indicator here};
secondsig:=Mov(C,20,S) > Mov(C,150,W) and adx(13) > 25 and c >
Mov(C,20,S) and c > Mov(C,150,W);
entry:= if(firstsig = 1 and secondsig = 1,1,0);
entry
I now find that it does not generate the second signal properly. What
am I doing wrong here?
Rua
------------------------ 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/
|