金字塔改寫 [文華財(cái)經(jīng)]
- 咨詢內(nèi)容:
//股指期貨自動(dòng)交易程序
{//加密及期限有效期:1121230,linethick0;賬號(hào):11111,linethick0;qq1:=strtonum(taccount( 1));if qq1<>賬號(hào) or date>=有效期 or datatype<>18 then exit;}if datatype<>17 then exit;
//交易控制變量variable:a1=0;variable:a2=0;
//交易手?jǐn)?shù):tn:=1;
//持續(xù)下單次數(shù)cx:=1;
//提前下單量(秒)xd:=3;
//交易時(shí)間區(qū)間 www.tumamayizhan.comp1:=time>091500 and time<=150000;p2:=if(islastbar,dynainfo(207),time);p3:time0-timetot0(p2)linethick0;
//r1:=barslast(date<>ref(date,1));r2:=ref(o,r1);
if c>o and p1 and p3<=xd then begin buy(holding=0,tn,thisclose); endif c<o and p1 and p3<=xd then begin buyshort(holding=0,tn,thisclose); end
//止損r20:=enterbars+1;r21:=ref(hhv(c,r20),1);r22:=ref(llv(c,r20),1);r23:=8;if holding>0 and r21-l>r23 and r20>1 and p3<=xd then begin sell(1,tn,thisclose); endif holding<0 and h-r22>r23 and r20>1 and p3<=xd then begin sellshort(1,tn,thisclose); end
//收盤前清倉 來源 www.tumamayizhan.comr50:=abs(holding);if p2>150800 then begin sellshort(holding<0,r50,limitr,c); sell(holding>0,r50,limitr,c); end 持倉:holding,colorwhite,linethick0;交易總數(shù):totaltrade,colorwhite,linethick0;盈虧:asset-1000000,noaxis,colorred,linethick1;日盈虧:asset-ref(asset,r1),noaxis,colorred,linethick0;
//狀態(tài)1:a1,linethick0,colorwhite;//狀態(tài)2:a2,linethick0,colorwhite;
- 文華技術(shù)人員: 請(qǐng)參考以下編寫:P1:=TIME>0915 AND TIME<=1500;R1:=BARSLAST(DATE<>REF(DATE,1));R2:=REF(O,R1);C>O&&P1,BK;C<O&&P1,SK;R20:=IFELSE(MIN(BARSBK,BARSSK)=BARSBK,BARSBK+1,BARSSK+1);R21:=REF(HHV(C,R20),1);R22:=REF(LLV(C,R20),1);R23:=8;BKVOL>0&&R21-L>R23&&R20>1,SP;SKVOL>0&&H-R22>R23 && R20>1,BP;TIME>=1508,CLOSEOUT;CHECKSIG_SEC(BK,'B',3,'D',0);CHECKSIG_SEC(SK,'B',3,'D',0);CHECKSIG_SEC(BP,'B',3,'D',0);CHECKSIG_SEC(SP,'B',3,'D',0);CHECKSIG_SEC(CLOSEOUT,'B',3,'D',0);//表示當(dāng)根K線走完前3秒確定信號(hào)下單不進(jìn)行信號(hào)復(fù)核AUTOFILTER;
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容