-- 作者:aliyun
-- 发布时间:2014/12/26 11:29:08
-- 开最高
if time=103600 then begin buy(1,1,limitr,3407) ignorecheckprice; end 开最高:hhv(h,enterbars+1);
当只有这段代码时,开最高在当K显示
但把这段代码加到模型中使用时(放在开平前)开最高却在下1K才显示
可能是什么问题?
|
-- 作者:aliyun
-- 发布时间:2014/12/26 14:57:14
--
variable:CKJ:=0; variable:PJ:=0; variable:KDKJ:=0; variable:PDKJ:=0;
CK:=holding<0;
aaa:=hhv(h,todaybar); KK:=L<=aaa-1 and CKJ=0 ; if KK then begin buyshort (1,1,limitr,aaa-1)ignorecheckprice; CKJ:=1; end ee:=llv(l,enterbars+1); eeh:hhv(h,enterbars+1);
PKD:=h>ee+7 and PJ=0 and CK ; if PKD then begin sellshort (1,0,limitr,ee+7) ignorecheckprice; PDKJ:=0;KDKJ:=0;PJ:=1; end
KD:=h>=ee+6 and holding=0 and KDKJ=0 ; if KD then begin buy(1,1,limitr,ee+6) ignorecheckprice; KDKJ:=1; end
vertline(todaybar=270),coloryellow,linethick1,pointdot ; sell(time>151200 and holding>0, 0, marketr); sellshort(time>151200 and holding<0, 0,marketr);
if time=closetime(0) then begin CKJ:=0; PJ:=0; KDKJ:=0; PDKJ:=0; end
|