本文共 1723 字,大约阅读时间需要 5 分钟。
首先说结论:能,而且收益率不低。
采用低估值+长期投资,以宽基基金为主,以行业基金为辅,以复利增长的方式大概率是相当可观的收入。 接下来我把几个热门ETF(场内基金)测试一下,在过去三年内,每个月买1万人民币,到现在到底有多少收益。接下来是市场上近几年的etf代码
etfs = ['512880.XSHG', #证券ETF '510900.XSHG', #H股ETF '159920.XSHE', #恒生ETF '159949.XSHE', #创业板50ETF '512000.XSHG', #券商ETF '512760.XSHG', #芯片ETF '512660.XSHG', #军工ETF '510050.XSHG', #上证50ETF '513100.XSHG'] #纳指ETF
其实这些年场内基金的表现都不错,有涨有跌,总归还是向上走的。
这边用了聚宽平台的API(jqdatasdk)来获取历史行情信息。
import jqdatasdk as jqimport matplotlib.pyplot as pltimport pandas as pdimport timejq.auth('***','****') #聚宽平台账号密码def run(etf): current_date=time.strftime("%Y-%m-%d", time.localtime()) price = jq.get_price(security=etf,frequency='1d',end_date=current_date,skip_paused=True,count=1095) price['close'].plot(title=etf) price.index.name='time' price.reset_index(inplace=True) # we buy a 10000 share ETF every month money = 10000 count =0 # how many times we buy it stock =0 #股市至少买一手,这里简化计算,假设10000可以全部买成股票 for i in price.index: if i%22==0 and not pd.isnull(price.iloc[i]['open']): stock+= money//price.iloc[i]['close'] count+=1 tax = 0.0003*count*money # ETF无印花税,佣金按万三算 profit = round(((price.iloc[-1]['close']*stock)-money*count-tax)/(count*money)*100,2) print ('From {} To {}'.format(price.iloc[0]['time'],price.iloc[-1]['time'])) print('买 {} 次'.format(count)) print('盈利 {} %'.format(profit))run(etfs[0])
收益图如下:
ETF | 3年收益 |
---|---|
证券 | 24.73% |
H股 | 2.87% |
恒生 | 2.35% |
创业板50 | 62.76% |
券商 | 25.46% |
芯片 | 52.92% |
军工 | 33.25% |
上证50 | 35.18% |
纳指 | 80.29% |
不得不说,美帝的股市一直是牛市??
建议定投时分散投资,别梭哈。不建议买支付宝上那些偏股型的大小公司的行业基金,除非你有判断时期,热点,局势的能力。如果有的话,也不用定投了。 场内基金在证券账户购买。转载地址:http://kujgj.baihongyu.com/