1 / 5

finance.easychart

programming guide of easy financial chart. http://finance.easychart.net. Easy financial chart class structures. CustomDraw. FormulaArea. FormulaData. FormulaChart. FormulaPackage created by formular script. FormulaArea. FormulaArea. FormulaData. FormulaArea. CustomDraw.

kyrene
Télécharger la présentation

finance.easychart

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. programming guide of easy financial chart http://finance.easychart.net

  2. Easy financial chart class structures CustomDraw FormulaArea FormulaData FormulaChart FormulaPackage created by formular script FormulaArea FormulaArea FormulaData FormulaArea CustomDraw FormulaAxisX FormulaAxisY

  3. YahooDataManager:IDataManager FormulaPackage FML.NATIVE.EMA(10) … … BORL YAHO MSFT … … CSVDataProvider:IDataProvider FormulaPackage FML.NATIVE.EMA(50) FormulaArea FML.NATIVE.MAIN FormulaPackage FML.NATIVE.EMA(200) FormulaSkin Bind Bind FormulaPackage FML.SAR(10,2,20) FormulaChart … … FormulaArea FML.MACD(26,12,9) GetBitmap(…) SaveToStream(…) FormulaArea FML.RSI … … FML.NATIVE.MAIN,FML.MACD(26,12,9),FML.SAR(10,2,20) … … are from formula script system , can be compiled by our compiler.

  4. //Sample code FormulaChart fc = new FormulaChart(); //Create YahooDataManager , Get stock data from yahoo. YahooDataManager ydm = new YahooDataManager(); CSVDataProvider cdp = (CSVDataProvider)ydm[“MSFT”]; //Add stock lines to main stock view fc[0].AddFormula("FML.NATIVE.EMA(10)"); fc[0].AddFormula("FML.NATIVE.EMA(50)"); fc[0].AddFormula("FML.NATIVE.EMA(200)"); fc[0].AddFormula("FML.SAR(10,2,20)"); //Add indicators to stock chart fc.AddArea("FML.MACD(26,12,9)"); fc.AddArea("FML.RSI"); //Apply build-in stock chart skin fc.SetSkin(FormulaSkin.CyanGreen); //Bind stock data fc.DataProvider = cdp; //Output the chart to webbrowser fc.SaveToStream(Response.OutputStream, 640,480);

  5. Formula script sample: Below code is copy from basic_fml.xml MACD: DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG); DEA : EMA(DIFF,M); MACD : 2*(DIFF-DEA), COLORSTICK This formula will create three line DIFF,DEA and MACD. Formula compiler can edit “native-en.xml” and compile the script to Basic_fml.cs and basic_fml.dll, basic_fml.cs can be compiled to Your main program, basic_fml.dll can be load on runtime. For more information about the formula script language, please see “formula-guide.htm”

More Related