PureBytes Links
Trading Reference Links
|
I get the error message:"This function is not allowed in this type
of formula"
pds:=Input("Avg trade periods",1,252,21);
and it points to: =Input
--- In Metastockusers@xxxxxxxxxxxxxxx, "Dusant@xxxx" <dusant@xxxx>
wrote:
> { Holy Grail Long system signals v787.7 }
> { Enter Long = +1, Exit Long = -1 }
> { ©Copyright 2004 Jose Silva }
> { http://users.bigpond.com/prominex/pegasus.htm }
>
> pds:=Input("Avg trade periods",1,252,21);
> delay:=Input("Entry and Exit delay",0,5,0);
> plot:=Input("plot: [1] entry/exit signals, [2] trade
binary",1,2,1);
>
>
FibSeriesSum:=1+1/1+1/2+1/3+1/5+1/8+1/13+1/21+1/34+1/55+1/89+1/144+1/
233+1/377+1/610;
> x:=Frac(FibSeriesSum+LastValue(ValueWhen(1,C<Ref(ValueWhen(1,Cos
(1.375)>Cos(FibSeriesSum),C),pds)*Sin(71.286),C)+PREV-PREV)-
FibSeriesSum);
> In:=x>ValueWhen(2,Sin(1.375)<Sin(FibSeriesSum),x);
> Out:=BarsSince(in)=pds;
> Init:=Cum(In+Out>-1)=1;
> InInit:=Cum(In)=1;
> flag:=Ref(BarsSince(Init OR In) < BarsSince(Init OR Out)+InInit,-
delay);
> In1:=Cum(Cum(In))=1;
> Out1:=Cum(Cum(Out))=1;
> signals:=(InInit AND Alert(InInit=0,2)
> OR flag AND Alert(flag=0,2))
> +-(flag=0 AND Alert(flag,2));
> odd:=Cum(1)/2=Int(Cum(1)/2);
>
> Ref(If(plot=1,In1,0),-delay);
> -(plot=1 AND Ref(Out1 AND BarsSince(In1)
> >=BarsSince(Out1),-delay));
> If(plot=1,0,If(odd,flag,0));
> If(plot=1,signals,flag)
>
> If still u face problems, just check if the ":" has a "=" after
it, because in copying and pasting, there may be an extra carriage
return inserted.
> Dusant
> Chief Architect
> www.candlestrength.com
>
> ----- Original Message -----
> From: <art9under@xxxx>
> To: <Metastockusers@xxxxxxxxxxxxxxx>
> Sent: Tuesday, March 02, 2004 19:23 PM
> Subject: Re: [Metastockusers] Holy Grail Long system
>
>
> > I tried putting this into Metastock but I keep getting error
messages.
> > Can anyone help me resolve this. I have Meta 8.01.
> > Thanks, any help appreciated.
> > ART
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Metastockusers/
<*> To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|