eps

量化投资学习(一)

淺唱寂寞╮ 提交于 2019-12-10 01:43:13
一、双均线策略 通过建立m天移动平均线,n天移动平均线,则两条线必有交点。若m>n,n天平均线上穿越m天均线则为买入点,反之为卖出点。该策略基于不同天数均线的交叉点,抓住股票的强势和弱势时刻,进行交易。 金叉和死叉 由时间短的均线(如上图蓝色的线)在下方向上穿越时间长一点的均线(如上图黄色的线),为“金叉”,反之为“死叉”。 双均线金叉的时候,表明股票很强势,反之很弱势,强势时买入,弱势时卖出。 二、PEG估值法 计算每只股票的PEG值,并排序,取PEG值最小的前n支股票,作为待买股票即可。 1. EPS(Earnings Per Share)表示每股收益(一般按年计算): EPS = 归属于普通股股东的当期净利润 / 当期实际发行在外的普通股加权平均数 2. PE (Price to Earning Ratio)表示市盈率,是当前股价(P)相对每股收益(EPS)的比值: PE = P / EPS EPS按照不同的计算方法取出,可以得出使用范围不同的PE(市盈率): 若每股收益(EPS)取最近四次的季报的每股收益的平均值,计算出“滚动市盈率”(又称市盈率TIM); 若每股收益(EPS)取去年的12个月的每股收益,则计算出“静态市盈率”(又称市盈率LYR); 若每股收益(EPS)取预测下一年的每股收益,则计算出“动态市盈率”。 3. G(Growth Rate of Expected

How to setup Xfig onto a Mac machine? [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-09 19:01:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . The user manual said that I need to Get the source of xfig (xfig.3.2.5-alpha3.full.tar.gz) and gunzip and untar the file: Either do: gunzip -c xfig.3.2.5-alpha3.full.tar.gz | tar xvf - or gunzip xfig.3.2.5-alpha3.full.tar.gz tar xvf xfig.3.2.5-alpha3.full.tar It also said that There is a version of xfig ported

Inkscape screws up EPS files

倖福魔咒の 提交于 2019-12-09 17:28:12
问题 I have been trying to use Inkscape to prepare artwork graphics for my scientific papers. I use LaTeX, and I need my figures to be prepared as high-quality Encapsulated PostScript (EPS) images. The work order is as follows. First, I plot parts of my figure using matplotlib and save them in EPS format. Second, I launch Inkscape and import the EPS files. Using Inkscape I compose a figure, leaving needed objects, killing unneeded, and adding some markups. So I used to do when I worked with

How to export umlaut (or any foreign character) in Matlab eps format?

核能气质少年 提交于 2019-12-07 01:03:24
问题 I'm trying to use an umlaut within a legend command in MATLAB. A quick Google tells me the form I want is char(146) , and that works fine for displaying the file, or printing it to tif. But when I print to EPS format (or epsc, eps2, epsc2) then a different character is displayed in the file. I've tried printing the first 300-odd characters, and they certainly change (albeit very slowly, a good half of which are "A" with a symbol immediately afterward), but this seems a pretty slow approach,

How to resize an EPS file with free software or command line utility

£可爱£侵袭症+ 提交于 2019-12-06 12:14:56
问题 I use Matlab to generate EPS (Encapsulated PostScript) files. I would like to resize these files so they render at a different size than they are generated. I would like to specify the resized dimensions in inches or centimeters, ideally. Is there an option for doing this using free software or a command line utility? I am looking for something compatible with OSX, but would settle for Windows. I am aware of EPSViewer.org but it only works in pixels and constrains the dimensions to be

How to set the physical size of PDF pages with Ghostscript?

送分小仙女□ 提交于 2019-12-06 08:55:38
问题 I want to convert a bunch of .eps images to a single PDF using Ghostscript. But when I look at the PDF file in a PDF viewer and set view to 100% to physical size of the file is huge! I would like to force gs to create the PDF in letter size, but everything I tried failed. Here's the command I'm using: gs -dBATCH -dNOPAUSE -dEPSFitPage -dEPSCrop \ -q -sDEVICE=pdfwrite -sOutputFile=out.pdf \ file1.eps file2.eps All my attempts with -sPAPERSIZE=legal and -dDEVICEWIDTHPOINTS=w

Plus/minus symbol in gnuplot?

。_饼干妹妹 提交于 2019-12-05 16:59:54
I'm generating .eps figures in gnuplot for inclusion into papers typeset with LaTeX, using set terminal postscript eps enhanced "Helvetica" 14 This generally works perfectly, but i'm now trying to put together a figure using a label that includes a ± symbol. If I use it directly, e.g. set label "-56±2" then it appears correctly on the default 'wxt' terminal but is prefixed by an A with a circumflex (i.e. -56±2) in the postscript output. Using set label "-56^+/-2" works but looks rubbish. In the past i've used the 'Angstrom' character (Å) by doing set encoding iso_8859_1 set xlabel "wavelength

How to export umlaut (or any foreign character) in Matlab eps format?

好久不见. 提交于 2019-12-05 04:51:05
I'm trying to use an umlaut within a legend command in MATLAB. A quick Google tells me the form I want is char(146) , and that works fine for displaying the file, or printing it to tif. But when I print to EPS format (or epsc, eps2, epsc2) then a different character is displayed in the file. I've tried printing the first 300-odd characters, and they certainly change (albeit very slowly, a good half of which are "A" with a symbol immediately afterward), but this seems a pretty slow approach, and I'm not guaranteed to actually find the symbol I want. So, does anyone here have any ideas on what I

Third party library to convert image into pdf and eps format on the fly?

一笑奈何 提交于 2019-12-04 14:10:10
问题 I have an upcoming .NET project that would require conversion from image (bitmap) into .pdf and .eps format. We would prefer to use third party library tool to do this rather than spending the time to reinvent the wheel. Here is the basic requirement: Preferrably a pure .NET library (we might put this converter code in Silverlight application, which won't have access to unmanaged code). Ability to read the input and generate the output on the fly (in memory). Any recommendation? 回答1: I've had

How to setup Xfig onto a Mac machine? [closed]

别等时光非礼了梦想. 提交于 2019-12-04 13:35:00
The user manual said that I need to Get the source of xfig (xfig.3.2.5-alpha3.full.tar.gz) and gunzip and untar the file: Either do: gunzip -c xfig.3.2.5-alpha3.full.tar.gz | tar xvf - or gunzip xfig.3.2.5-alpha3.full.tar.gz tar xvf xfig.3.2.5-alpha3.full.tar It also said that There is a version of xfig ported to run on the MacIntosh under the Darwin port of XFree86. But I didn't find how to setup the XFree86 and even the xfig since I am very new to either Mac OS or UNIX. The easiest way is probably to use a package manager like Macports , Fink , Homebrew etc. For macports the steps are