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

[amibroker] Help with formula ( need more eyes )



PureBytes Links

Trading Reference Links

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 ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/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/