PureBytes Links
Trading Reference Links
|
Bob,
I solved it with " WriteIf(True,GetExtraData("briefing"),"");//1"
"Buy = 1" would have worked too.
Give 100 programmers the same problem and you will get 100 different
solutions.
Phsst
--- In amibroker@xxxxxxxxxxxxxxx, "Bob Jagow" <bjagow@xxxx> wrote:
> Phsst,
> Just add Buy=1; before the #include <filename.afl>;
> or, preferably, as the 1st line of the include file.
>
> Bob
>
> -----Original Message-----
> From: Phsst [mailto:phsst@x...]
> Sent: Saturday, June 14, 2003 6:45 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Neat method to see fundamentals for QP2 Users:
>
>
> Steve,
>
> Like Jayson said... VERY NICE! Until now, I've launched QP2 to see QP2
> fundamentals.
>
> Took me several tries to get your implementation to work. I've been an
> AB user for about 3 years and just never got 'into' Interpretation
> Window. First, AB 'barked' about your Buy conditions... then it
> 'complained' about not finding the specified path.
>
> Finally, I got my paths straight and changed your statements from:
>
> WriteIf(Buy==1 OR Buy == 0,GetExtraData("briefing"),"");//1
> to
> WriteIf(True,GetExtraData("briefing"),"");//1
>
> and it worked.
>
> Wish all the Dividend arrays and Earnings arrays from QP2 were
> accessable. Hmm... never satisfied.
>
> Thanks again,
>
> Phsst
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> > Steve,
> > This is very nice! I forget all the nice things "getextradata" has
> to offer.
> > Thanks for sharing...
> >
> > Regards,
> > Jayson
> > -----Original Message-----
> > From: Steve Wiser [mailto:slwiser@x...]
> > Sent: Saturday, June 14, 2003 8:32 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] Neat method to see fundamentals for QP2 Users:
> >
> >
> > FYI
> >
> > Place the following line into your primary indicator whether it is
> the Price
> > pane or some other.
> >
> > #include "C:\\program files\amibroker\afl\include\writeuponstock.afl";
> >
> > Have the following in your include subdirectory as I have shown in
mine
> > above. I have an include subdirectory under \afl. I also have
> placed a file
> > named writeuponstock.afl into this subdirectory. This information
> is fairly
> > complete and it will show up in the interpetation window.
> >
> > This is nice when moving across a watch list of similar equities and
> being
> > able to see how they compare in a fundamental way. You may have to
click
> > into price window (if this is where you placed the line above) if
> you are
> > moving around in Amibroker to get the information show.
> >
> > Steve
> >
> > New File below: Mine was called writeuponstock.afl
> > _____________________
> >
> > WriteIf(Buy==1 OR Buy == 0,GetExtraData("briefing"),"");//1
> >
> > 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
> >
> >
> > Yahoo! Groups Sponsor
> >
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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 the Yahoo! Terms of Service.
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/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/
|