請版主看看這個下單組件是否有問題 [金字塔]
- 咨詢內容:
我的想法是買點條件成立時,賣一價開倉,賣點條件成立時,買一價開倉,都是1單。幫忙看看會不會反復開倉
if holding=0 then begin if longcond then buy(1,N1,C+MINDIFF);end
if holding=0 then begin if shortcond then buyshort(1,N1,C-MINDIFF);end
if holding>0 then begin if shortcond then begin sell(1,holding,C-MINDIFF); buyshort(1,N1,C-MINDIFF); end
end
if holding<0 then begin if longcond then begin sellshort(1,holding,C+MINDIFF); buy(1,N1,C+MINDIFF); end
end
- 金字塔客服:
請問反復開倉的意思是longcond滿足后反復下多單?
- 用戶回復:
是的
- 網友回復: 圖表上的信號是有很多個信號還是一個信號開了很多次?
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容