龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-11-29 16:23

平均线波段[文华财经公式]

标签: 文华 财经 公式 期货 平均线波段

评价:有趋势的行情,平均线最管用,没有趋势的行情,平均线最无用。



源码:

[code]
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;


[/code]

页: [1]