以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  金字塔软件问题提交  (http://weistock.com/bbs/list.asp?boardid=2)
----  为什么都是白箭头  (http://weistock.com/bbs/dispbbs.asp?boardid=2&id=144354)

--  作者:LCY
--  发布时间:2016/12/8 14:18:45
--  为什么都是白箭头
 Formula3
 n:selfdata(\'涨幅排\')+1,linethick0;
sell(holding>0 and ref(c<o,1),holding,o);
buy(holding=0 and ref(c>o,1) and ref(n=1,1),1,o);
 公式3加载股票或期货上都出现白色箭头

--  作者:gxx978
--  发布时间:2016/12/8 14:26:28
--  

1,  缺少限价指令  sell(holding>0 and ref(c<o,1),holding,limit,o);
                        buy(holding=0 and ref(c>o,1) and ref(n=1,1),1,limit,o);

2,出现白色箭头,是因为指定的价格超出K线最高价和最低价的范围,使用IGNORECHECKPRICE函数,忽略价格检查。


--  作者:pyd
--  发布时间:2016/12/8 14:26:40
--  

加上limitr,

例如
sell(1,holding,limitr,o);
buy(1,1,limitr,o);