Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共6 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:哪位能人帮我看看为什么没有交易信号?

1楼
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
2楼
阿火 发表于:2011/11/9 20:31:03
mkt lmt 错误,这是后台用的。图标请用 market 和 limitr
3楼
manbutianya 发表于:2011/11/9 20:51:11
 把mkt\lmt改过来一样没信号,为什么?
4楼
manbutianya 发表于:2011/11/9 21:31:42
真是想不出来,为什么没信号
5楼
manbutianya 发表于:2011/11/9 21:46:01
没人帮忙啊
6楼
阿火 发表于:2011/11/9 22:02:26

这种人

自己用心找找错误啊

自己帮自己,别人才能帮你

 

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);//这里多了一个if
end

共6 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.02734 s, 3 queries.