通達信莊家控盤MACDDMI結合操盤指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2019-03-06 來源:互聯(lián)網(wǎng)
通達信莊家控盤MACDDMI結合操盤指標公式:含有未來函數(shù)
VAR1:=EMA(EMA(CLOSE,9),9);
VAR2:=100*WINNER(CLOSE*0.95);
控盤:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),NODRAW,COLORWHITE;
DEA:=EMA(DIF,9);
MACD:(DIF-DEA)*2,NODRAW;
TRR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
PDI:= DMP*100/TRR;
MDI:=DMM*100/TRR;
DM:PDI-MDI,COLORWHITE,NODRAW;
ADX:EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6),COLORFF00FF,NODRAW;
ADXR:EXPMEMA(ADX,6),COLORGREEN,NODRAW;
加速:IF(DM>0 AND ADXR>REF(ADXR,1) AND ADXR>20,控盤*1.1,DRAWNULL),CIRCLEDOT,COLORRED{持股};
盤升:IF(DM>0 AND ADXR>REF(ADXR,1) AND ADXR<20,控盤*1.2,DRAWNULL),CIRCLEDOT,COLORYELLOW;
空頭:IF(控盤>0 AND DM<0,控盤*1.2,DRAWNULL),CROSSDOT,COLORGREEN;
多頭:IF(DM>0 AND ADXR<REF(ADXR,1),控盤*1.2,DRAWNULL),CROSSDOT,COLORRED;
DRAWTEXT(CROSS(ADXR,ADX) AND ADXR>60 AND 控盤>0 AND 控盤<REF(控盤,1),控盤*1.3,'←改'),COLORGREEN;
DRAWICON(CROSS(MDI,PDI) AND 控盤>0,控盤*1.3,2);
DRAWTEXT(CROSS(ADXR,ADX) AND ADXR>=20 AND ADXR<60 AND 控盤>0 AND 控盤<REF(控盤,1),控盤*1.3,'←變'),COLORYELLOW;
DRAWTEXT(CROSS(ADXR,ADX) AND ADXR<20 AND DM>0,控盤*1.3,'←變化'),COLORWHITE;
STICKLINE(控盤<0 AND 控盤<REF(控盤,1),控盤,0,1.6,0),COLORWHITE;
無莊:IF(控盤<0,控盤,0),COLORWHITE,NODRAW;
STICKLINE(控盤<0 AND 控盤>REF(控盤,1),控盤,0,1.6,0),COLORFFCC66;
STICKLINE(控盤>REF(控盤,1) AND 控盤>0,控盤,0,1.6,0),COLORRED;
有莊:IF(控盤>REF(控盤,1) AND 控盤>0,控盤,0),COLORRED,NODRAW;
STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盤>0,控盤,0,1.6,0),COLORFF00FF;
高度:IF(VAR2>50 AND COST(85)<CLOSE AND 控盤>0,控盤,0),COLORFF00FF,NODRAW;
STICKLINE(控盤<REF(控盤,1) AND 控盤>0,控盤,0,1.6,0),COLOR00FF00;
出貨:IF(控盤<REF(控盤,1) AND 控盤>0,控盤,0),COLOR00FF00,NODRAW;
DRAWTEXT(CROSS(DIF,DEA) AND DIF>0,控盤*1.1,'B'),COLORRED;
DRAWTEXT(CROSS(DEA,DIF) AND DIF>0,控盤*1.1,'S'),COLORGREEN;
DRAWTEXT(CROSS(DIF,DEA) AND DIF<0,控盤*1.1,'←B'),COLORRED;
DRAWTEXT(CROSS(DEA,DIF) AND DIF<0,控盤*1.1,'←S'),COLORGREEN;
STICKLINE(ADXR>REF(ADXR,1),控盤*0.382,0,1,0),COLORYELLOW;
STICKLINE(ADXR<REF(ADXR,1),控盤*0.382,0,1,0),COLORBLUE;
啟動1:=(CROSS(控盤,0) AND DM>0 AND MACD>0) OR (CROSS(DM,0) AND 控盤>0 AND MACD>0) OR (CROSS(MACD,0) AND DM>0 AND 控盤>0);
啟動:IF(啟動1,5,0),LINETHICK1,COLORYELLOW;
通達信莊家控盤MACDDMI結合操盤指標公式實例圖解:
通達信莊家控盤MACDDMI結合操盤指標公式