通达信一品界文副图公式
{界文KD}
STICKLINE(C>0,40,60,4,0),COLOR808080;
DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIF,9);
多头:=COUNT(MA(CLOSE,20)>MA(CLOSE,10),10)=10;
GX:=MAX(MA(CLOSE,5),MAX(MA(CLOSE,20),MA(CLOSE,10)));
DX:=MIN(MA(CLOSE,5),MIN(MA(CLOSE,20),MA(CLOSE,10)));
粘合:=ABS(GX/DX-1)*100<=15;
MACD:=2*(DIF-DEA);
庄股:=COUNT(MACD<0,10)=10;
目标:=IF(多头 AND 粘合 AND 庄股,5,0);
STICKLINE(CROSS(0.1,目标) AND CROSS(MACD,0),10,40,3,0),COLORWHITE;
RSV2:=(CLOSE-LLV(LOW,99))/(HHV(HIGH,99)-LLV(LOW,99))*100;
长K:SMA(RSV2,3*11,1);
长D:SMA(长K,3*11,1);
RSV1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
中K:SMA(RSV1,5,1);
中D:SMA(中K,10,1);
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
短K:SMA(RSV,3,1);
短D:SMA(短K,3,1);
DRAWBAND(长D,RGB(0,255,0),长K,RGB(255,0,0));
DRAWBAND(中D,RGB(0,104,154),中K,RGB(255,0,0));
STICKLINE(短K>短D,短K,短D,1,1),COLORYELLOW;
STICKLINE(短K<=短D,短K,短D,1,1),COLORCCDD33;
216211393.png
|