[求助]在一分鐘周期下,開平怎么寫? [金字塔]
- 咨詢內(nèi)容:
每根K線都交易
開盤價(jià)做多 收盤價(jià)平多
請(qǐng)老師寫下
- 金字塔客服:
用開盤價(jià)下單,還是在開盤的時(shí)候下單?
- 用戶回復(fù):
開盤的時(shí)候 開盤價(jià)下單 這個(gè)K的收盤價(jià)平倉
- 網(wǎng)友回復(fù):
t1:time0;
t2:timetot0(dynainfo(207));
d:=t1-t2;
if islastbar and t1-t2>=58 or not(islastbar) then buy(holding=0,1,market);
if islastbar and t1-t2<=2 or not(islastbar) then sell(1,0,market);
- 網(wǎng)友回復(fù):
t1:=time0;t2:=timetot0(dynainfo(207));d:=t1-t2; if islastbar and t1-t2>=58 or not(islastbar) then buy(holding=0 AND O<C,1,market);if islastbar and t1-t2<=2 or not(islastbar) then sell(HOLDING>0,0,market);
if islastbar and t1-t2>=58 or not(islastbar) then buySHORT(holding=0 AND O>C,1,market);if islastbar and t1-t2<=2 or not(islastbar) then sellSHORT(HOLDING<O,0,market);
寫完測(cè)試 怎么出現(xiàn)倉位有 多 空單 都出現(xiàn)的情況?
這個(gè)怎么解決 老師
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容