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

Re: [amibroker] How to use Yahoo fundamental data ?



PureBytes Links

Trading Reference Links

 
There is a different call for the extra Fundamental Data.  Take a look at my
code below, and I think you will see how it works.
 
Enjoy,
Don Lindberg  
// This is a sample Exploration using the Fundamental Data collected by
AmiBroker written by Don Lindberg 08-16-2006
// Exploration is run against all symbols and all quotations (the Status(
lastbarintest") setting limits to current date. 
// I have also include some caluculation on Shares Short at bottom, just
uncomment to use.
// I did this to show that even a programming dummy can great a useful
Exploration.
EPS = GetFnData ("EPS");
EPSEstCurrent = GetFnData("EPSEstCurrentYear") ;
EPSEstNext = GetFnData ("EPSEstNextYear" );
PEGRatio = GetFnData("PEGRatio");
SharesOut = GetFnData("SharesOut");
SharesShort = GetFnData("SharesShort");
SharesShortPrev = GetFnData("SharesShortPrevMonth");
SharesShortChg= SharesShortPrev -SharesShort ;
BookValue = GetFnData("BookValuePerShare");
ReturnOnEquity = GetFnData("ReturnOnEquity");
GrossProfit = GetFnData("GrossProfitPerShare");
ProfitMargin = GetFnData("ProfitMargin");
OneYrTarget = GetFnData("OneYearTargetPrice");
PE = Close / EPS;
UpSidePotential = 100 * ((EPSEstNext / EPS)-1);
ESPEstChange =EPSEstNext -EPSEstCurrent;
InstitutionPercent = GetFnData ("InstitutionHoldPercent");
Filter = Close <= 50 AND Close <= OneYrTarget AND UpSidePotential > 1 
AND ReturnOnEquity > 1 AND GrossProfit > 1 AND ProfitMargin > 1
AND ESPEstChange > 1 AND Status("lastbarintest");
AddColumn (Close, "Close", 1.3);
AddColumn (InstitutionPercent, "InstitutionPercent", 1.2);
AddColumn (PE, "CalculatedPE", 1.2);
AddColumn (OneYrTarget, "OneYrTarget", 1.2);
AddColumn (UpSidePotential, "UpSidePotential", 1.2);
AddColumn (BookValue, "BookValue",1.2);
AddColumn (ReturnOnEquity,"ReturnOnEquity",1.2);
AddColumn (GrossProfit, "GrossProfitPerShare",1.2);
AddColumn (ProfitMargin, "ProfitMargin",1.2);
AddColumn (EPS, "EPSCurrent", 1.2);
AddColumn (ESPEstChange, "ESPEstChange", 1.2);
//AddColumn (SharesShort, "SharesShort", 1);
//AddColumn (SharesShortPrev, "SharesShortPrev", 1);
//AddColumn (SharesShortChg, "SharesShortChg", 1);
-------Original Message-------
 
From: jnz88
Date: 12/01/06 15:40:26
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] How to use Yahoo fundamental data ?
 
New Amiquote can download all Yahoo fundamental data
But how to use them in AFL?
GetExtraData() seems only to work for QP plugin


 
 


Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.15.3/562 - Release Date: 12/1/2006 1:12 PM