金字塔動(dòng)量突破交易系統(tǒng)策略源碼[金字塔模型]
相關(guān)標(biāo)簽:5分鐘動(dòng)量交易系統(tǒng),期貨日內(nèi)動(dòng)量交易,5分鐘動(dòng)量交易法詳解,日內(nèi)動(dòng)量交易,動(dòng)量交易方法,動(dòng)量交易,外匯交易動(dòng)量14是什么,動(dòng)量交易法,動(dòng)量策略,
模型策略源碼:
runmode:0;
input:period(20,5,100,5);
variable:myasset=30000;
entertime:=time>=092500 and time<=145500;
exittime:=time>=150000;
buycond:=entertime and ref(close,1)>ref(close,period);
buyprice:=open;
buyshortcond:=entertime and ref(close,1)<ref(close,period);
buyshortprice:=open;
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;
出擊:totaltrade/(count(date<>ref(date,1),0)+1),linethick0;
連虧:maxseqloss,linethick0;
連贏:maxseqwin,linethick0;
{別忘了將本網(wǎng)告訴您身邊的朋友,向朋友傳達(dá)有用資料,也是一種人情,你朋友會(huì)感謝你的。}
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容