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

[amibroker] Re: Quotes Plus // Functions for Fundamental data



PureBytes Links

Trading Reference Links

Steve,

You might want to change this line of code from:

 WriteIf(Buy==1 OR Buy == 0,"Annual Dividend = "+
           WriteVal(GetExtraData("AnnDividend"))+"%","");//12

to

WriteIf(True,"Yield = "+
     WriteVal(GetExtraData("AnnDividend") / C  * 100)+"%","");//12

Regards

Phsst

--- In amibroker@xxxxxxxxxxxxxxx, Steve Wiser <slwiser@xxxx> wrote:
> Edward
> 
> I use the attached to do what I just have shown you.
> 
> I place this line in the proper indicator window after having placed
the 
> file in the correct subdirectory.
> 
> #include "C:\\program files\amibroker\afl\include\writeuponstock.afl";
> 
> Steve
> 
> At 10:33 AM 8/16/2003 +0000, you wrote:
> 
> >hi,
> >
> >I just got the QP2 trial and I remember there was a message a while
> >ago that we would be able to use the fundamental data inside AB
> >shortly.
> >
> >Am I right? When will this be? Will we be able to use the same
> >formulas as defined in QP2 inside AB?
> >
> >thanks,
> 
> WriteIf(Buy==1 OR Buy == 0,"\n"+"QP2 Relative Strength ="+
>           WriteVal(GetExtraData("QRS")),"");//2
> 
> WriteIf(Buy==1 OR Buy == 0,"Shares Float = "+
>           WriteVal(GetExtraData("SharesFloat")),"");//3
> 
> WriteIf(Buy==1 OR Buy == 0,"Shares = "+
>           WriteVal(GetExtraData("Shares")),"");//4
> 
> WriteIf(Buy==1 OR Buy == 0,"PEG = "+
>           WriteVal(GetExtraData("PEG")),"");//5
> 
> WriteIf(Buy==1 OR Buy == 0,"Return on Equity = "+
>           WriteVal(GetExtraData("ROE"))+"%","");//6
> 
> WriteIf(Buy==1 OR Buy == 0,"1 Year EPS Growth = "+
>           WriteVal(GetExtraData("Yr1EPSGrowth"))+"%","");//7
> 
> WriteIf(Buy==1 OR Buy == 0,"5 Year EPS Growth = "+
>           WriteVal(GetExtraData("Yr5EPSGrowth"))+"%","");//8
> 
> WriteIf(Buy==1 OR Buy == 0,"1 Year Proj EPS Growth = "+
>           WriteVal(GetExtraData("Yr1ProjEPSGrowth"))+"%","");//9
> 
> WriteIf(Buy==1 OR Buy == 0,"3 to 5 Year Proj EPS Growth = "+
>           WriteVal(GetExtraData("Yr3to5ProjEPSGrowth"))+"%","");//10
> 
> WriteIf(Buy==1 OR Buy == 0,"Book Value per share = "+
>           WriteVal(GetExtraData("BookValuePerShare"))+"$","");//11
> 
> WriteIf(Buy==1 OR Buy == 0,"Annual Dividend = "+
>           WriteVal(GetExtraData("AnnDividend"))+"%","");//12
> 
> WriteIf(Buy==1 OR Buy == 0,"TTM Sales = "+
>           WriteVal(GetExtraData("TTMSales")),"");//13
> 
> WriteIf(Buy==1 OR Buy == 0,"TTM EPS = "+
>           WriteVal(GetExtraData("TTMEPS")),"");//14
> 
> WriteIf(Buy==1 OR Buy == 0,"Institutional Holdings = "+
>           WriteVal(GetExtraData("InstHolds"))+"%","");//15
> 
> WriteIf(Buy==1 OR Buy == 0,"Long Term Debt to Equity = "+
>           WriteVal(GetExtraData("LTDebtToEq")),"");//16
> 
> WriteIf(Buy==1 OR Buy == 0,"Cash Flow Per Share = "+
>           WriteVal(GetExtraData("CashFlowPerShare")),""); //17
> 
> WriteIf(Buy==1 OR Buy == 0,"Trailing 12 months EPS = "+
>           WriteVal(GetExtraData("TTMEps")),"");//18
> 
> WriteIf(Buy==1 OR Buy == 0,"LoW PE Range = "+
>           WriteVal(GetExtraData("LoPERange")),"");//19
> 
> WriteIf(Buy==1 OR Buy == 0,"High PE Range = "+
>           WriteVal(GetExtraData("HiPERange")),"");//20
> 
> WriteIf(Buy==1 OR Buy == 0,"Beta = "+
>           WriteVal(GetExtraData("BEta")),"");//21
> 
> WriteIf(Buy==1 OR Buy == 0,"EPSRank =          "+
>           WriteVal(GetExtraData("EPSRank")),"");//22
> 
> WriteIf(Buy==1 OR Buy == 0,"EPSRank -1mth = "+
>           WriteVal(Ref(GetExtraData("EPSRank"),-21)),"");//22
> 
> WriteIf(Buy==1 OR Buy == 0,"EPSRank -2mth = "+
>           WriteVal(Ref(GetExtraData("EPSRank"),-42)),"");//23
> 
> WriteIf(Buy==1 OR Buy == 0,"EPSRank -3mth = "+
>           WriteVal(Ref(GetExtraData("EPSRank"),-63)),"");//23
> 
> WriteIf(Buy==1 OR Buy == 0,"     "+GetExtraData("briefing"),"");//1


------------------------ 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/l.m7sD/LIdGAA/qnsNAA/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/