1分鐘周期,想在收盤前30秒平掉所有倉(cāng)位 [金字塔]
- 咨詢內(nèi)容:
圖表交易,1分鐘周期,想在實(shí)盤前30秒平掉所有的倉(cāng)位,商品和股指都需要,怎么寫
- 金字塔客服:
t1:=timetot0(dynainfo(207));
t2:=timetot0(closetime(0));
tt:=t2-t1;
if (islastbar and t2-t1<=30) or (not(islastbar) and time=closetime(0)) then begin
sellshort(1,0,market);
sell(1,0,market);
end這個(gè)商品股指通用
- 用戶回復(fù):
not(islastbar) and time=closetime(0)
time=closetime(0) 是什么意思,它會(huì)跟not(islastbar) 同時(shí)滿足條件嗎
- 網(wǎng)友回復(fù): 判斷當(dāng)前k線是否是收盤k線,用來(lái)保持歷史k線上的信號(hào),前面半句是用來(lái)當(dāng)前時(shí)間的,后面半句是用來(lái)保持歷史信號(hào)的
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容