文化财经wh6boll带macd多空转折点提示指标公式源码:
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
MID:MA(CLOSE,26);//求N个周期的收盘价均线,称为布林通道中轨
TMP2:=STD(CLOSE,26);//求M个周期内的收盘价的标准差
TOP:MID+2*TMP2;//布林通道上轨
BOTTOM:MID-2*TMP2;//布林通道下轨
CROSS(MACD,0)&&CROSS(C,MID),ICON(0,'IC01'),VALIGN0;
CROSSDOWN(MACD,0)&&CROSSDOWN(C,MID),ICON(1,'IC02');