請問隔日開倉,怎么表達 [金字塔]
- 咨詢內容:
比如今天開倉有利持有的情況下,隔日再開第二筆。
- 金字塔客服:
當天開倉一筆有利,就不開第二筆了,如果當天第一筆止損,就還開第二筆。
- 用戶回復:
variable:n=0;variable:m=0;if date<>ref(date,1) then n:=0;
if duo and n<=1 and m=0 and h>=cpj+qatr/3 and (holding=0 or holding=1*ENTERVOL) and time<145500 then begin sellshort(1,0,market); buy(1,1,market); n:=n+1; m:=1; ends:=ref(qatr,enterbars); if L<=ENTERPRICE-s/3 and enterbars>0 then begin sell(1,entervol,market); m:=0; end if hhv(h,enterbars+1)>=ENTERPRICE+s/3 and l<=ENTERPRICE and enterbars>0 then begin sell(1,entervol,market); m:=0; end
if time>=150000 then beginn:=0;m:=0;end
這樣寫,第一筆有利的情況下,為什么還會開第二筆,請幫我看一下哪里寫錯了?
- 網友回復:
我的思路是日內交易限制兩次,有利的交易限制一次。第一筆止損或保本,可以開第二筆,第一筆有利,日內就不可以開第二筆了。
- 網友回復: 你把類似的 enterprice+s/3的,都給括號括起來
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容