资金MACD,抓量价背离(原创)(源码 副图 贴图)介绍
资金MACD,抓量价背离(原创)(源码 副图 贴图)
资金MACD,抓量价背离(原创)
{参数:SHORT:2 200 12;LONG:2 200 26;MID:2 200 9}
q:=34;
RJJ := (HIGH + LOW + CLOSE)/3;
RS:=SUM(IF(RJJ>REF(RJJ,1),RJJ*VOL,0),q)/SUM(IF(RJJ<=REF(RJJ,1),RJJ*VOL,0),q);
BL:=100-100/(1+RS);
资金流:BL,NODRAW;
A1:=SUM(IF(BL>REF(BL,1),VOL,IF(BL<REF(BL,1),-VOL,0)),0);{OBV}
DIF:EMA(A1,SHORT)-EMA(A1,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
{SHORT:2 200 12
LONG:2 200 26
MID:9}
使用方法:
出现量价背离即暗示股价即将见顶或者见底;随时做好撤退或买入准备;
(即股价继续走高,但资金MACD已经开始下滑。暗示资金出逃,最后的上涨时诱多。反则同理!!!)
喜欢干净的就用上面的源码。喜欢花花绿绿的就用下面修改的源码。
另外,金叉不是买点,该指标不提示买卖点。切莫当傻瓜指标使用。
修改后源码:
N:=34;
SHORT:=12;
LONG:=26;
MID:=9;
RJJ := (HIGH + LOW + CLOSE)/3;
RS:=SUM(IF(RJJ>REF(RJJ,1),RJJ*VOL,0),N)/SUM(IF(RJJ<=REF(RJJ,1),RJJ*VOL,0),N);
BL:=100-100/(1+RS);
资金流:BL,NODRAW;
A1:=SUM(IF(BL>REF(BL,1),VOL,IF(BL<REF(BL,1),-VOL,0)),0);{OBV}
DIF:EMA(A1,SHORT)-EMA(A1,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED;
STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORYELLOW;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORGREEN;
STICKLINE(MACD>=REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORWHITE;
DRAWTEXT(CROSS(DIF,DEA)AND DEA<0,DEA,'↖注意底部')COLORYELLOW;
DRAWTEXT((MACD>=REF(MACD,1) AND MACD<0),MACD,'.'),COLORRED;
DRAWTEXT(CROSS(DIF,DEA) AND DEA>0,DEA,'.加油'),COLORGREEN;
DRAWTEXT((MACD<=REF(MACD,1) AND MACD>0),MACD,'.'),COLORGREEN;
gd13275