通達信絕品MACD指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 副圖
- 日期:2024-07-23 來源:互聯(lián)網(wǎng)
通達信絕品MACD指標公式:
N1:=6;N2:=18;N3:=54;N4:=162;
L2:=MA(C,3);
L3:=MA(C,60);
L4:=MA(C,120);
L5:=MA(C,40);
VAR1:=SUM(WINNER(CLOSE)*100,13)/10-(SUM(WINNER(CLOSE)*100,1)/20+10);
狂龍出海: IF(CROSS(L2,L3) AND CLOSE<L4,-60,0);
VAR2:=CLOSE/L5*100<78;
VAR3:=CLOSE/L3*100<74;
VAR4:=HIGH>(LOW*1.051);
VAR5:=VAR4 AND COUNT(VAR4,5)>1;
VAR6:=CLOSE/HHV(HIGH,BARSCOUNT(CLOSE>0))*100;
VAR7:=EMA(EMA(CLOSE,13),13);
控盤:= (VAR7-REF(VAR7,1))/REF(VAR7,1)*5000;
A1:=CROSS(控盤,0);
控盤1:IF(A1,180,0),COLORYELLOW,LINETHICK1;
DRAWTEXT(控盤1>0,160,'★控盤!'),COLORD411FF;
狂龍?zhí)降? IF((REF(C,13)-CLOSE)/REF(C,13)*100*VAR3>15 AND SUM(VOL/CAPITAL,13)
*100<18 AND VOL/CAPITAL*100<2.5 AND (REF(C,1)-CLOSE)/REF(C,1)*100<8 AND
VAR6<=50 AND VAR5 AND (VAR2 OR VAR3),80,0);
{DRAWICON(FILTER(狂龍?zhí)降?6),35,1);}
DRAWTEXT(FILTER(狂龍?zhí)降?6),70,'狂龍?zhí)降?#39;);
DIFF:(EMA(CLOSE,12) - EMA(CLOSE,26))*600,COLOR95008C,LINETHICK2;
DEA:EMA(DIFF,9), COLORFFFFFF,LINETHICK1;
DRAWTEXT(CROSS(DIFF,DEA),DIFF,'▲'),LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS(DEA,DIFF),DEA,'賣'),LINETHICK2,COLORWHITE;
DDIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));
DDEA:=EMA(DDIFF,9);
MACD:=1200*(DDIFF-DDEA);
STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0;
STICKLINE(MACD<0,MACD,0,4,1),COLORWHITE;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR00AAFF;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3.3,0 ),COLOR00BBFF;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR00CCFF;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.65,0 ),COLOR00DDFF;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.1,0 ),COLOR00EEFF;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.55,0 ),COLOR00FFFF;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4 ,0 ),COLOR0000AA;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3.3 ,0 ),COLOR0011BB;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR0022CC;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.65 ,0 ),COLOR0033DD;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.1 ,0 ),COLOR0044EE;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.55 ,0 ),COLOR0055FF;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORAA00BB;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORBB11BB;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORCC22BB;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.65,0 ),COLORDD33BB;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.1,0 ),COLOREE44BB;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFF55BB;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORFFAA00;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORFFBB11;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORFFCC22;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.65 ,0 ),COLORFFDD33;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.1 ,0 ),COLORFFEE44;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFFFF55;
MACD1:=2*(DDIFF-DDEA)*600,COLORRED,LINETHICK1;
MACD2:=MA(MACD1,3);
MACDL:=HHV(MACD2,13);
STICKLINE(MACDL<MACD1,MACD1,MACD2,2,0),COLORRED;
多空生命:=(MA(CLOSE,100)+MA(CLOSE,100)+MA(CLOSE,100)+MA(CLOSE,1000))/4;
日線:=MA(CLOSE,5);
神龍出海: IF(CROSS(日線,多空生命) AND 日線>多空生命,200,0),
COLORWHITE,LINETHICK2;
DRAWTEXT(神龍出海>0,200,'☆開倉!'), COLORWHITE;
VAR03:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR04:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR05:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR06:=(VAR03+VAR04+VAR05)/3;
VAR07:=EMA(VAR06,5);
指標:EMA(EMA(VAR03,5),5)*3, COLORSTICK;
VAR08:=IF(VAR06<=-20,10,0);
VAR09:=HHV(VAR08,10);
STICKLINE(VAR08=10,20,10,5,0),COLOR6666FF;
VARA:=IF(VAR09 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
DRAWTEXT(VAR08=10 AND FILTER(VAR08=10,5),-10{15},'接近底部'),LINETHICK1,COLORYELLOW;
STICKLINE(VAR08=10 AND FILTER(VAR08=10,5),-1.6{20},-10,5,0),COLORYELLOW;
DRAWTEXT(VARA=20,15,'底部'),LINETHICK1,COLORWHITE;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)
+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR010:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)
+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR011:=VARF<REF(VAR010,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR011 AND COUNT(VAR011,30)=1,-25,'大資金'),LINETHICK1,COLORFF00FF;
STICKLINE(VAR011 AND COUNT(VAR011,30)=1,1,20,10,0),COLORFFCC66;
VAR012:=(HIGH+LOW+CLOSE)/3;
VAR013:=(VAR012-MA(VAR012,14))/(0.015*AVEDEV(VAR012,14));
VAR014:=(VAR012-MA(VAR012,70))/(0.015*AVEDEV(VAR012,70));
VAR015:=IF(VAR013>=150 AND VAR013<200 AND VAR014>=150 AND VAR014<200,10,0);
VAR016:=IF(VAR013<=-150 AND VAR013>-200 AND VAR014<=-150 AND VAR014>-200,-
10,VAR015);
VAR017:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR018:=100-ABS(VAR017);
VAR019:=IF(VAR018<90,VAR018,100);
VAR1A:=IF(VARE>0,VARE,0);
VAR1B:=IF(VAR014>=200 AND VAR013>=150,15,IF(VAR014<=-200 AND VAR013<=-150,-
15,VAR016))+60;
VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR019<100;
DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,-30,'出貨'),LINETHICK1,COLORFFCC66;
STICKLINE(VAR1C AND COUNT(VAR1C,30)=1,0,20,10,0),COLORFFFFFF;
通達信絕品MACD指標公式實例圖解:
通達信絕品MACD指標公式