-- 作者:xxb398
-- 发布时间:2012/3/15 16:07:46
--
runmode:0; variable:cw=0;//仓位自管理参数
input:JumpNum(5,0,15,1);//下单跳点数
input:lots(1,1,30,1);//下单手数
...
JumpOffset:=JumpNum*mindiff; B_HiBand:=ref(hhv(h,B_Length1),1);//向上突破该线作多
//多头首次进场条件 if cw=0 and TimeCond and h>B_HiBand then begin MyPrice:=if(islastbar,c+JumpOffset,min(h,max(o,B_HiBand)+JumpOffset)); buy(1,lots,limitr,MyPrice),ignorecheckprice; hl:=h; cw:=cw+lots; end
请帮忙检查下,谢谢.
|