- UID
- 2
- 积分
- 2869185
- 威望
- 1384620 布
- 龙e币
- 1484565 刀
- 在线时间
- 13082 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-14
|
标签: 文华 财经 公式 期货 平均线波段
评价:有趋势的行情,平均线最管用,没有趋势的行情,平均线最无用。
源码:
- DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
- DEA:=EMA(DIFF,9);
- MA(CLOSE,5),COLORWHITE;
- MA(CLOSE,15),COLORYELLOW;
- STICKLINE(DIFF>DEA,CLOSE,OPEN,COLORRED,0);
- STICKLINE(DIFF>DEA,HIGH,LOW,COLORRED,0);
- STICKLINE(DIFF<=DEA,CLOSE,OPEN,COLORGREEN,0);
- STICKLINE(DIFF<=DEA,HIGH,LOW,COLORGREEN ,0);
- DRAWTEXT(CROSS(DIFF,DEA),LOW-0.2,'买入'),COLORWHITE;
- DRAWTEXT(CROSS(DEA,DIFF),HIGH+0.2,'卖出'),COLORGREEN;
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|