以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  一根K线上只能出现一个信号,这个如何写?  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=60604)

--  作者:qq代人发帖
--  发布时间:2014/1/3 14:59:51
--  一根K线上只能出现一个信号,这个如何写?
请教:金字塔一根K线上只能出现一个信号,这个如何写?
--  作者:jinzhe
--  发布时间:2014/1/3 15:06:26
--  
同一个条件出的信号还是多条件成立只出第一个成立的信号?
--  作者:绿草地77
--  发布时间:2014/1/3 15:10:09
--  
多条件成立只出第一个成立的信号
--  作者:jinzhe
--  发布时间:2014/1/3 15:11:21
--  

下单条件里面添加holding=0

这样只操作第一个出现的信号


--  作者:绿草地77
--  发布时间:2014/1/3 15:13:18
--  
比如:开了多,就不能再出现开空或平空信号。
--  作者:绿草地77
--  发布时间:2014/1/3 15:14:17
--  

在同一根K线上,不能有两个以上(含两个)的信号


--  作者:jinzhe
--  发布时间:2014/1/3 15:32:41
--  

variable:n=0;

if 开多条件 and holding=0 then begin

    buy........;

    n:=1;

end

 

if 开空条件 and holding=0 then begin

   buyshort.......;

   n:=1;

end

 

if n=1 and 开多条件 and holding=0 and exitbars>0 then buy.......;

if n=1 and 开空条件  and holding=0 and exitbars>0 then buyshort.......;

if 平多条件 and holding>0 and enterbars>0 then sell.......;

if 平空条件 and holding<0 and enterbars>0 then sellshort.......;


--  作者:绿草地77
--  发布时间:2014/1/3 15:42:58
--  

谢了