老師幫我看看 [金字塔]
- 咨詢內(nèi)容:
老師好 我這樣為什么不能實(shí)現(xiàn)每個(gè)信號(hào)下只開(kāi)平倉(cāng)一次呢 只要止盈或者止損后就會(huì)繼續(xù)開(kāi)平倉(cāng) 麻煩老師幫忙給改正一下 謝謝 SS:=1;//ss
if B8<=0 then begin,sellshort(1,holding,thisclose),orderqueue;
buy(holding=0 and bj=0,ss,thisclose),orderqueue;
end
if bj=1 and B8<=0 and holding=0 and exitbars>1 then begin
buy(1,ss,thisclose);
bj:=0;
endif B8>0 then beginsell(1,holding,thisclose),orderqueue;
buyshort(holding=0 and bj=0,ss,thisclose),orderqueue;
end
if bj=1 and B8>0 and holding=0 and exitbars>1 then begin
buyshort(1,ss,thisclose);
bj:=0;
end - 金字塔客服:
就是止盈或者止損后本信號(hào)內(nèi)不再開(kāi)倉(cāng)
- 用戶回復(fù):
你代碼里平倉(cāng)后就反手開(kāi)倉(cāng)了,那個(gè)平倉(cāng)是你的止盈止損嗎?
如果這個(gè)是止盈止損 怎么緊接著就反手開(kāi)倉(cāng) 這和你要求的止盈止損后本根不再開(kāi)倉(cāng)不是剛好相反嗎?
- 網(wǎng)友回復(fù):
貼出你完整的代碼,不知道你其中的部分條件是什么。
圖表每條交易語(yǔ)句只會(huì)在同一根K上開(kāi)倉(cāng)一次。不知道你說(shuō)的指的是什么意思、
- 網(wǎng)友回復(fù): 回三樓 就是止盈止損后 沒(méi)有反手開(kāi)倉(cāng)是接著上次的信號(hào)繼續(xù)開(kāi)倉(cāng)了
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容