以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  为什么这样写起来,多头信号正常,而空头不断的出现信号  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=155962)

--  作者:qq代人发帖
--  发布时间:2017/7/14 10:05:13
--  为什么这样写起来,多头信号正常,而空头不断的出现信号
为什么这样写起来,多头信号正常,而空头不断的出现信号?
图片点击可在新窗口打开查看此主题相关图片如下:qq图片20170714100532.png
图片点击可在新窗口打开查看

--  作者:pyd
--  发布时间:2017/7/14 10:07:05
--  
空的代码贴出来看下
[此贴子已经被作者于2017/7/14 10:07:32编辑过]

--  作者:草原狼99
--  发布时间:2017/7/14 10:10:02
--  
if l<ll2 then sell(holding>0,1,LIMIT,min(ll2,o));
if l<sx then sell(holding>0,1,limit,min(sx,o));
if h>hh2 then SELLSHORT(holding<0,1,limit,max(hh2,o));
if h>jx then SELLSHORT(holding<0,1,limit,max(jx,o));
buy(jdd and holding=0,1,THISCLOSE);
BUYSHORT(jkd and holding=0,1,THISCLOSE);


--  作者:qq代人发帖
--  发布时间:2017/7/14 10:17:59
--  
 if l<ll2 then sell(holding>0,1,LIMIT,min(ll2,o));
if l<sx then sell(holding>0,1,limit,min(sx,o));
if h>hh2 then SELLSHORT(holding<0,1,limit,max(hh2,o));
if h>jx then SELLSHORT(holding<0,1,limit,max(jx,o));
buy((kd or zkd)and holding=0,1,THISCLOSE);
BUYSHORT((kk or zkk) and holding=0,1,THISCLOSE);