short:=close<=zll ;
if short and position=0 then begin
myentryprice:= if(open<zll ,open-mindiff,zll ) ;
buyshort( _debug,posnum,limitr,myentryprice) ignorecheckprice;
1.模拟交易时,走完k线模式,上面开仓指令用 本周期限价limitr或者次周期限价limit,开仓指令价都是zll触发价,往往open价小于zll触发价,出现挂单无法成交。
2.上根k线满足zll开仑条件,本根k线开盘时,开盘价<zll 时按 open-mindiff委托;否则按 zll 委托,按照这思路怎样才能实现?
buyshort(ref( _debug,1),posnum,limitr,myentryprice) ignorecheckprice
固定时间模式