PureBytes Links
Trading Reference Links
|
Hi Anthony,
I don't know what you want to do, but I think it should be
pat=IIf(x==1,Configuration1,IIf(x==2,Configuration2,IIf
(x==3,Configuration3,IIf
(x==4,Configuration4,IIf(x==5,Configuration5,IIf
(x==6,Configuration6,IIf(x==7,Configuration7,IIf
(x==8,Configuration8,0))))))));
rather than
pat=IIf(x=1,Configuration1,IIf(x=2,Configuration2,IIf
(x=3,Configuration3,IIf
(x=4,Configuration4,IIf(x=5,Configuration5,IIf(x=6,Configuration6,IIf
(x=7,Co
nfiguration7,IIf(x=8,Configuration8,0))))))));
Zs.
--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx>
wrote:
> This formula is not completed, but will run in AA....select
watchlist or all
> stocks...needs multiple tickers at this point to check...set n=last
> quotaions and n=1...click explore......My out put of results shows
> configuration 8 for all tickers....my eyes are going cross...I can
not see
> the light....can someone see what is going on....thanks
>
> I will post the completed formula....when we get past this point...
>
> //reliable daily index and stock trending signals
>
> //Anthony Faragasso
>
> //July 2003
>
> RatioA = ( High / Low ) /( Ref(High,-1) / Ref(Low,-1) );
>
> RatioB = ( Close / Open ) /( Ref( Close,-1) / Ref(Open,-1) );
>
> RatioC = ( Volume / Ref( Volume,-1) );
>
> Configuration1= RatioA > 1 AND RatioB > 1 AND RatioC > 1;
>
> Configuration2= RatioA > 1 AND RatioB > 1 AND RatioC <= 1;
>
> Configuration3= RatioA > 1 AND RatioB <= 1 AND RatioC > 1;
>
> Configuration4= RatioA > 1 AND RatioB <= 1 AND RatioC <= 1;
>
> Configuration5= RatioA <= 1 AND RatioB > 1 AND RatioC > 1;
>
> Configuration6= RatioA <= 1 AND RatioB > 1 AND RatioC <= 1;
>
> Configuration7= RatioA <= 1 AND RatioB <= 1 AND RatioC > 1;
>
> Configuration8= RatioA <= 1 AND RatioB <= 1 AND RatioC <= 1;
>
> x=IIf(Configuration1,1,IIf(Configuration2,2,IIf(Configuration3,3,IIf
(Configu
> ration4,4,IIf(Configuration5,5,IIf(Configuration6,6,IIf
(Configuration7,7,IIf
> (Configuration8,8,0))))))));
>
> pat=IIf(x=1,Configuration1,IIf(x=2,Configuration2,IIf
(x=3,Configuration3,IIf
> (x=4,Configuration4,IIf(x=5,Configuration5,IIf
(x=6,Configuration6,IIf(x=7,Co
> nfiguration7,IIf(x=8,Configuration8,0))))))));
>
> totpat=Cum(pat);
>
> Filter=1;
>
> AddColumn(Cum(1),"bars",1);
>
> AddColumn(x,"Configuration",1);
>
> AddColumn(totpat,"TP",1);
>
> AddColumn(ratioA,"A",1.2);
>
> AddColumn(ratioB,"B",1.2);
>
> AddColumn(ratioC,"C",1.2);
>
> Anthony
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sOykFB/k9VGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|