相关标签:突破交易策略,惠比特交易和配种专区,梦三国交易专区,梦三国交易专区速秒,灵缇格力交易专区,中京交易市场下载专区,古币银元交易专区,长毛德牧交易专区,梦三国交易专区在哪里,
模型策略源码:runmode:0; input:period(20,5,100,5); variable:myasset=30000; entertime:=time>=092500 and time<=145500; exittime:=time>=150000; highest:=ref(hhv(high,period),1); lowest:=ref(llv(low,period),1); buycond:=entertime and high>=highest; buyprice:=max(open,highest); buyshortcond:=entertime and low<=lowest; buyshortprice:=min(open,lowest); if holding=0 and buycond then begin buy(1,1,limitr,buyprice); end if holding=0 and buyshortcond then begin buyshort(1,1,limitr,buyshortprice); end if holding>0 and exittime then begin sell(1,holding,limitr,close); end if holding<0 and exittime then begin sellshort(1,holding,limitr,close); end if exittime then myasset:=asset; 资产:myasset,noaxis,colormagenta; 次数:totaltrade,linethick0; 收益:(myasset-30000)/30000,linethick0; 胜率:percentwin,linethick0; 连亏:maxseqloss,linethick0; 连赢:maxseqwin,linethick0; 点击复制上述代码粘贴到到公式管理器
{别忘了将本网告诉您身边的朋友,向朋友传达有用资料,也是一种人情,你朋友会感谢你的。}