以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 哪位能人帮我看看为什么没有交易信号? (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=8886) |
-- 作者:manbutianya -- 发布时间:2011/11/9 19:57:09 -- 哪位能人帮我看看为什么没有交易信号? input:N(9,1,100,10),P1(3,2,50,5),P2(3,2,50,5),P3(5,1,20,2); RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,P1,1); D:=SMA(K,P2,1); J:=3*K-2*D; kddo:=cross(K,D); kdko:=cross(D,K) and D>=60; kaiduo:=cross(K,D); kaikon:=cross(D,K); if holding=0 and cross(K,D) then buy(1,1,mkt); if holding=0 and kaikon then buyshort(c>o,1,lmt,c); if holding>0 then begin if c<ENTERPRICE-20*MINDIFF then sell(1,1,mkt); if kdko then sell(1,1,mkt); if time>145800 then sell(1,1,mkt); end if holding<0 then begin if c>ENTERPRICE+20*MINDIFF then sellshort(1,1,mkt); if kddo then sellshort(1,1,mkt); if if time>145800 then sellshort(1,1,mkt); end |
-- 作者:阿火 -- 发布时间:2011/11/9 20:31:03 -- mkt lmt 错误,这是后台用的。图标请用 market 和 limitr |
-- 作者:manbutianya -- 发布时间:2011/11/9 20:51:11 -- 把mkt\\lmt改过来一样没信号,为什么? |
-- 作者:manbutianya -- 发布时间:2011/11/9 21:31:42 -- 真是想不出来,为什么没信号 |
-- 作者:manbutianya -- 发布时间:2011/11/9 21:46:01 -- 没人帮忙啊 |
-- 作者:阿火 -- 发布时间:2011/11/9 22:02:26 -- 这种人 自己用心找找错误啊 自己帮自己,别人才能帮你
if holding<0 then begin |