Rss & SiteMap

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

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

标题:[求助]请问下,我怎么过滤不掉10日内的交易信号。求解

1楼
zk7777777 发表于:2012/5/20 11:51:11
ENTERLONG:c>ma(close,a) and ma(close,a)>REF(MA(C,18),1),tfilter;
EXITLONG:c<ma(close,a) and ma(close,a)<REF(MA(C,18),1),tfilter; 
filter(exitlong,10); 
filter(enterlong,10); 
请问下,我怎么过滤不掉10日内的交易信号。求解
2楼
just 发表于:2012/5/21 10:10:53

ENTERLONG1:=c>ma(close,a) and ma(close,a)>REF(MA(C,18),1);
EXITLONG1:=c<ma(close,a) and ma(close,a)<REF(MA(C,18),1);
ENTERLONG:c>ma(close,a) and ma(close,a)>REF(MA(C,18),1),tfilter;
EXITLONG:c<ma(close,a) and ma(close,a)<REF(MA(C,18),1),tfilter; 
aa:filter(exitlong1,10),linethick0;
bb:filter(enterlong1,10),linethick0;

 

改成这样试试

3楼
董小球 发表于:2012/5/21 10:18:52
楼上 楼主你们用法都不对
ENTERLONG:filter(c>ma(close,a) and ma(close,a)>REF(MA(C,18),1),10);
EXITLONG:filter(c<ma(close,a) and ma(close,a)<REF(MA(C,18),1),10); 

这样就可以了
共3 条记录, 每页显示 10 条, 页签: [1]


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