平多信號(hào)還是沒有及時(shí)執(zhí)行 [金字塔]
- 咨詢內(nèi)容:
此主題相關(guān)圖片如下:未命名.jpg
- 金字塔客服:
你指的箭頭那里沒有信號(hào),所以不會(huì)有什么信號(hào)執(zhí)行
- 用戶回復(fù):
還是老問題:平多盈利執(zhí)行不及時(shí),盈利全部吃光:程序源碼
//開多
IF ( stopprice)<l THEN
BEGIN
SELLSHORT( HOLDING<0,HOLDING,market); //平空操作
BUY( HOLDING=0,1,market);//開多操作
maxprofit:=0;
END
//平倉
SELL((stopprice)>h and HOLDING>0,HOLDING,market);//平多
BUYSHORT((stopprice)>h and HOLDING=0,1,market); //開空操作if enterbars>=3 then begin
if c>o and holding>0 then sell(1,holding,market);
if c<o and type(1)= 2 then buy(holding>=0,1,market);
end//空頭為例
if enterbars>=3 then begin
if c>o and holding<0 then sellshort(1,holding,market);
if c<o and type(1)=4 then buyshort(holding<=0,1,market);
end
- 網(wǎng)友回復(fù):
那根k線是陰線,怎么會(huì)出信號(hào)的?
- 網(wǎng)友回復(fù):
此主題相關(guān)圖片如下:未命名.jpg
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容