請管理幫個(gè)忙 [金字塔]
- 咨詢內(nèi)容:
n:=(取外部統(tǒng)計(jì)數(shù)值如果數(shù)值低于0.3則取0.3,最高不限);
止贏:檢測真實(shí)賬戶實(shí)際持倉均價(jià)的盈利百分比大于n則止贏;
請幫忙將以上代碼加入下面的交易模塊中,更請優(yōu)化一下開關(guān)倉代碼,萬分感謝!
清倉時(shí)間:= time>=112800 and time<=113000 or (time>=145800 and time<=150000);
開車時(shí)間:=time>090000 and time<112800 or (time>133000 and time<145800);
tsell(tholding>0 and 平多 or 清倉時(shí)間,0,lmtc),orderqueue;
tsellshort(tholding<0 and 平空 or 清倉時(shí)間,0,lmt,c),orderqueue;
tbuy(tholding=0 and 開多 and 開倉時(shí)間,1,Lmt,c),orderqueue;
tbuyshort(tholding=0 and 開空 and 開倉時(shí)間,1,Lmt,c),orderqueue;
- 金字塔客服:
外部數(shù)值為變量S
- 用戶回復(fù):
當(dāng)前品種的當(dāng)日震幅用什么函數(shù)?
- 網(wǎng)友回復(fù):
振幅 DYNAINFO( 13)
- 網(wǎng)友回復(fù):
n:=if(s>=0.3,s,0.3);
if tholding>0 and (dynainfo(7)-avgtenterprice)/avgtenterrpcie>n/100 then tsell(1,0,mkt);
if tholding<0 and (avgtenterprice-dynainfo(7))/dynainfo(7)>n/100 then tsellshort(1,0,mkt);
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容