Rss & SiteMap

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

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

标题:为什么这个只有单边信号啊

1楼
gfqh 发表于:2012/9/11 16:30:19

RSV:= (CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:=3*K-2*D;

 

longd:=cross(K,D); 
longk:=cross(D,K);
buy(holding=0 and longd,1,market);
sell(holding=1 and longk,0,market);

 buyshort(holding=0 and longk,1,market);

 

 sellshort(HOLDING=-1 and longD,1,market);

2楼
jinzhe 发表于:2012/9/11 16:39:37

 sellshort(HOLDING=-1 and longD,1,market);
buy(holding=0 and longd,1,market);
sell(holding=1 and longk,0,market);

 buyshort(holding=0 and longk,1,market);

 

这样写

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


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