為什么統一信號反復開倉
作者:金字塔 來源:cxh99.com 發布時間:2018年08月29日
-
咨詢內容:
在螺紋1710 五分鐘圖測試為什么會有開倉信號模糊點呢 ? 求指導
input:grid(60,1,6000,1);
variable:level=0;
dist:=barslast(date<>ref(date,1));
oo:=2900;
n: = -5;
ll: oo + n*grid*mindiff;
hh: oo - n*grid *mindiff;if holding=0? and l > ll+grid*mindiff and h < hh then begin
dnprice:=oo-grid*mindiff;
if low<=dnprice? then begin
buy(1,1,limitr,dnprice);
level:=-1;
end
end
if holding = 1? and h >hh then begin???????? //上漲平一首
?
? sell(1,1,limitr,hh);
? end
?
?if holding > 0 and c < ll then begin??? // 下跌全平
? sell(1,holding,limitr,ll);
? endif holding>0 and? c > ll then begin??????? //下跌加倉
??????
upprice:=oo+(level+1)*grid*mindiff;
dnprice:=oo+(level-1)*grid*mindiff;if high>=upprice? and level >n then begin
sell(1,1,limitr,upprice);
level:=level+1;
endif low<=dnprice and level > n then begin
buy(1,1,limitr,dnprice);
level:=level-1;
endend
?
-
金字塔客服:
用的固定時間間隔嗎?
?
?來源:程序化久久網( www.kzuj.com.cn )
-
用戶回復:
恩 是的, 每次 全部平倉以后再次重新開倉為什么總是反復開倉三首呢?
?
-
網友回復:
恩,是的 ,每次都會在相鄰的三個k線開三首呢? 為什么呢? 那里有問題呢?求解釋
?
-
網友回復:
你用debugfile輸出開倉條件等信息,配合交易日志進行分析。
http://www.weistock.com/bbs/dispbbs.asp?boardid=4&Id=49428
?