分鐘級(jí)別當(dāng)天開倉(cāng)平倉(cāng)后不再開倉(cāng) [金字塔]
- 咨詢內(nèi)容:
請(qǐng)教如何編寫分鐘級(jí)別上,當(dāng)日開平1次后不再開倉(cāng)了? 謝謝!
- 金字塔客服:
variable:n=0;
variable:m=0;
if n=0 and 開多條件 and holding=0 then begin
buy........;
n:=n+1;
end
if n=0 and 開空條件 and holding=0 then begin
buyshort........;
n:=n+1;
end
if time=closetime(0) then begin
n:=0;
m:=0;
end
if m=0 and 平多條件 and holding>0 then begin
sell..........;
m:=m+1;
end
if m=0 and 平空條件 and holding<0 then begin
sellshort......;
m:=m+1;
end
- 用戶回復(fù):
如果一天就開平2次倉(cāng),怎么修改
[此貼子已經(jīng)被作者于2014/1/30 9:20:36編輯過]
- 網(wǎng)友回復(fù):
m=0和n=0改成m=1和n=1
- 網(wǎng)友回復(fù):
如果把成m=1和n=1 ,模型日內(nèi)也只能交易一次,怎么回事?
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容