免費論壇 繁體 | 簡體
公告:SCLUB雲端專屬主機己開放租用
分享
Board logo

標題: 怎樣可以將股票的市值及財務數據 等輸入到Ab [打印本頁]

作者: gogogo    時間: 2015-2-7 18:28     標題: 怎樣可以將股票的市值及財務數據 等輸入到Ab

Please Refer
http://www.amibroker.com/guide/d_ascii.html

1st you just edit a *.format file and put under the \formats directory
      ex.Fundamental.format
      and the following is an example inside fundamental.format

# Fundamental Format definition
$FORMAT TICKER,FULLNAME,MARKET,CURRENCY,GROUP,BOOK_VALUE_PER_SHARE,REVENUE,GROSS_PROFIT
$NOQUOTES 1
$SKIPLINES 1
$SEPARATOR ,
$CONT 1
$OVERWRITE 1
$DEBUG 1


2nd edit the import.types file which is under the \formats directory
      and put Fundamental.format as one of the list

ex: add new line as below after Default ASCII (*.*)|*.*|default.format

      Fundamental (*.csv)|*.csv|Fundamental.format


3rd  Generate  a new csv file ready for the importing
       for example:
號,股名,交易所,幣別,GROUP,每股淨值,今年以來累計營收(億),近一年營業毛利(百萬)
1101.TW,台泥,TAISE,NTD,水泥,30.2,1183.26,22823
1102.TW,亞泥,TAISE,NTD,水泥,39.81,777.62,9013.84
1103.TW,嘉泥,TAISE,NTD,水泥,26.65,39.38,234.95
1104.TW,環泥,TAISE,NTD,水泥,24.37,58.2,461.77
1108.TW,幸福,TAISE,NTD,水泥,11.12,50.99,542.4
1109.TW,信大,TAISE,NTD,水泥,13.95,50,805.12
1110.TW,東泥,TAISE,NTD,水泥,15.56,20.78,257.67

And last, Use File>Import ASCII
when the Pop up window shows up, select the fundamental  before choosing the csv file.




歡迎光臨 【美股最權威投資國外期貨/程式交易/最佳外匯交易平台指南】【GoForTrading/GO交易】 (http://gofortrading.gain.tw/) Powered by Discuz! 7.2