請問隔日開倉,怎么表達
作者:金字塔 來源:cxh99.com 發布時間:2015年02月09日
- 咨詢內容:
比如今天開倉有利持有的情況下,隔日再開第二筆。
- 金字塔客服:
當天開倉一筆有利,就不開第二筆了,如果當天第一筆止損,就還開第二筆。
- 用戶回復:
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的,都給括號括起來