通達信操盤高手壓力與支撐買賣主圖指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 趨勢
- 畫線方法: 主圖
- 日期:2021-07-29 來源:互聯(lián)網(wǎng)
通達信操盤高手壓力與支撐買賣主圖指標公式:
N1:=6;N2:=12;N3:=26;
MA13:MA(CLOSE,13),,LINETHICK2;
MA17:MA(CLOSE,17),,LINETHICK2;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
{買賣}
買:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0),COLORRED,LINETHICK0;
賣:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0),COLOR00FF00,LINETHICK0;
DRAWTEXT(FILTER(買=1,5),LOW-0.03,'▲'),COLORRED;
STICKLINE(FILTER(買=1,5),HIGH,LOW,0,1),COLORRED,LINETHICK2;
STICKLINE(FILTER(買=1,5),OPEN,CLOSE,4,1),COLORRED,LINETHICK2;
DRAWTEXT(FILTER(賣=1,1),HIGH*1.02,'¥'),COLOR00FF00;
STICKLINE(FILTER(賣=1,1),HIGH,LOW,0,1),COLOR00FF00,LINETHICK2;
STICKLINE(FILTER(賣=1,1),OPEN,CLOSE,4,1),COLOR00FF00,LINETHICK2;
{加倉}
加倉A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
加倉B:=加倉A;{白K突破追漲要用}
DRAWTEXT(FILTER((CROSS(加倉A,0) AND 買!=1) OR (CROSS(CLOSE,MA13) AND 買!=1),3),LOW-0.03,'♂'),COLORFF00FF;
STICKLINE(FILTER((CROSS(加倉A,0) AND 買!=1) OR (CROSS(CLOSE,MA13) AND 買!=1),3),HIGH,LOW,0,1),COLORFF00FF,LINETHICK2;
STICKLINE(FILTER((CROSS(加倉A,0) AND 買!=1) OR (CROSS(CLOSE,MA13) AND 買!=1),3),OPEN,CLOSE,4,1),COLORFF00FF,LINETHICK2;
加倉:FILTER((CROSS(加倉A,0) AND 買!=1) OR (CROSS(CLOSE,MA13) AND 買!=1),3),COLORBROWN,NODRAW;
{注意}
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0),COLORYELLOW,LINETHICK0;
DRAWTEXT(注意 AND 賣!=1,HIGH*1.02,'¤'),COLORYELLOW;
STICKLINE(注意 AND 賣!=1,HIGH,LOW,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(注意 AND 賣!=1,OPEN,CLOSE,4,1),COLORYELLOW,LINETHICK2;
{機構建倉}
建倉區(qū)域:=((3 * SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1)) - (2 * SMA(SMA((((CLOSE - LLV(LOW,27)) / (HHV(HIGH,27) - LLV(LOW,27))) * 100),5,1),3,1)));
DRAWTEXT(建倉區(qū)域<5,LOW-0.03,'■'),COLORFF0033;
DRAWTEXT(建倉區(qū)域<5,LOW-0.03,'='),COLORWHITE;
機構建倉區(qū):建倉區(qū)域<5,COLORFF0033,NODRAW;
{支撐與壓力線}
RSV1:=(C-LLV(LOW,13))/(HHV(H,13)-LLV(L,13))*100;
K1:=SMA(RSV1,3,1);
D1:=SMA(K1,3,1);
J1:=3*K1-2*D1;
RSV2:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K2:=SMA(RSV2,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
支撐:IF(CROSS(J1,J2),L,REF(L,BARSLAST(CROSS(J1,J2)))),COLORRED,LINETHICK2;
壓力:IF(CROSS(J2,J1),H,REF(H,BARSLAST(CROSS(J2,J1)))),COLOR00FF00,LINETHICK2;
{白K突破追漲}
DRAWTEXT((CROSS(C,壓力) AND 加倉B!=加倉A) OR (CROSS(C,壓力) AND 買!=1),LOW-0.03,'↑'),COLORWHITE;
STICKLINE((CROSS(C,壓力) AND 加倉B!=加倉A) OR (CROSS(C,壓力) AND 買!=1),HIGH,LOW,0,1),COLORWHITE,LINETHICK2;
STICKLINE((CROSS(C,壓力) AND 加倉B!=加倉A) OR (CROSS(C,壓力)AND 買!=1),OPEN,CLOSE,4,1),COLORWHITE,LINETHICK2;
突破壓力位:IF((CROSS(C,壓力) AND 加倉B!=加倉A) OR (CROSS(C,壓力)AND 買!=1),1,0),COLORWHITE,NODRAW;
通達信操盤高手壓力與支撐買賣主圖指標公式實例圖解:
通達信操盤高手壓力與支撐買賣主圖指標公式