|
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.
HOPE this will help
|
|