- UID
- 2
- 积分
- 2892887
- 威望
- 1396475 布
- 龙e币
- 1496412 刀
- 在线时间
- 13326 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-12-26
|
如果不是用在wh3请去掉最后一行。上次发帖现在找不到怎么跟帖所以重新发新贴。
程序化交易模型源码:
- MA5:=MA(CLOSE,5);
- RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
- K:=SMA(RSV,M1,1);
- D:=SMA(K,M2,1);
- DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
- DEA: EMA(DIFF,M);
- CROSS(DIFF,DEA)&&MA5>REF(MA5,2),BK;
- CROSS(K,D),BP;
- CROSS(DEA,DIFF)&&MA5<REF(MA5,2),SK;
- CROSS(D,K),SP;
- AUTOFILTER;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|