> if (hs300increase<=0 and hold300>0) or (zz500increase<=0 and hold500>0):
> return 'sell_the_stocks'
> elif hs300increase>zz500increase and hs300increase>0 and (hold300==0 and hold500==0):
> return 'ETF300'
> elif zz500increase>hs300increase and zz500increase>0 and (hold300==0 and hold500==0):
> return 'ETF500'
@小兵哥 兵哥,这段码,如果先触发300increase>500increase,且300increase>0,而买入300ETF后,是不是之后即使出现500increase>300increase,且500increase>0的条件,也不会将300ETF换成500ETF啊,而是继续持有300,等触发清仓后,再看先触发买入300还是500?