附策略代码:
#获得当前时间
date = datetime.date.today()
now = datetime.datetime.now()
ye = context.current_dt.date().year
mo = context.current_dt.date().month
da = context.current_dt.date().day
if mo==1:
ye1=ye
ye2=ye
mo1=3
mo2=6
mon1 = str(mo1)
mon2 = str(mo2)
yea1=str(ye1)[2:4]
yea2=str(ye2)[2:4]
g.code1="IF"+yea1+"0"+mon1+".CCFX"
g.code2="IF"+yea2+"0"+mon2+".CCFX"
elif mo