相關(guān)標(biāo)簽:突破交易策略,惠比特交易和配種專區(qū),夢三國交易專區(qū),夢三國交易專區(qū)速秒,靈緹格力交易專區(qū),中京交易市場下載專區(qū),古幣銀元交易專區(qū),長毛德牧交易專區(qū),夢三國交易專區(qū)在哪里,
模型策略源碼: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; 資產(chǎn):myasset,noaxis,colormagenta; 次數(shù):totaltrade,linethick0; 收益:(myasset-30000)/30000,linethick0; 勝率:percentwin,linethick0; 連虧:maxseqloss,linethick0; 連贏:maxseqwin,linethick0; 點擊復(fù)制上述代碼粘貼到到公式管理器
{別忘了將本網(wǎng)告訴您身邊的朋友,向朋友傳達有用資料,也是一種人情,你朋友會感謝你的。}