以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  开仑指令价  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=141619)

--  作者:tanyongde
--  发布时间:2016/10/21 11:53:40
--  开仑指令价
   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 委托,按照这思路怎样才能实现?

--  作者:jinzhe
--  发布时间:2016/10/21 13:08:42
--  

buyshort(ref( _debug,1),posnum,limitr,myentryprice) ignorecheckprice

固定时间模式