同花顺黑马抄底逃顶指标公式
VAR8:=VOL》2*MA(VOL,30);
VAR9:=“DMI.ADX”(12,6);
VARA:=“DMI.ADXR”(12,6);
VARB:=CLOSE》MA(CLOSE,30) AND CLOSE《MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30)》REF(MA(CLOSE,30),1);
VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))《BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARF:=TROUGHBARS(3,15,1)《4;
VARF1:=PEAKBARS(3,15,1)《4;
VAR10:=EMA(CLOSE,30)》REF(EMA(CLOSE,30),2);
VAR11:=IF(VARF=1,50,0);
多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),colorwhite;
IF(多空》0,多空,0),LINETHICK3,colorred;
IF(多空《0,多空,0),LINETHICK3,colorgreen;
IF((多空《0 AND 多空》REF(多空,1)),多空,0),LINETHICK3,colormagenta;
STICKLINE(FILTER(VARF=1,5) AND 多空《-10,31,0,6,0),colorred;
STICKLINE(FILTER(VARF=1,5),28,0,4,0),coloryellow;
STICKLINE(FILTER(VARF1=1,5) AND 多空》10,31,0,5,0),colormagenta;
STICKLINE(FILTER(VARF1=1,5),28,0,4,0),colorgreen;
DRAWTEXT(FILTER(VARF=1,3),25,‘大黑马’),colormagenta;
DRAWTEXT(FILTER(VARF1=1,3),25,‘大黑驴’),colorgreen;
大黑马:FILTER(VARF=1,3),NODRAW;
大黑驴:FILTER(VARF1=1,3),NODRAW;
STICKLINE(多空《-10,0,多空,1.1,0),coloryellow;
STICKLINE(多空》10,0,多空,0.9,0),colorred;
STICKLINE(多空》0,0,0.1,5,0),colorred;
STICKLINE(多空《0,0,0.1,5,0),colorgreen;
STICKLINE (VARF=1,0,VARF,8,0),colormagenta;
STICKLINE (VARF1=1,0,VARF1,8,0),colorwhite;
同花顺SKDJ逃顶指标公式
N:=9;
M:=3;
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
K:EMA(RSV,M);
D:MA(K,M);
DRAWICON(CROSS(D,K),K,'SELL');
DRAWICON(CROSS(K,D),D,'BUY');
短趋势线:MA(CLOSE,13),colorred,LINETHICK2;
涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),colorred,LINETHICK2;
平:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK2;
跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLOR80FF00,LINETHICK2;
A:=EMA(C,14),colorwhite,LINETHICK1;
B:=(A-REF(A,1))/REF(A,1)*100,NODRAW;
支撑:IF(B>=0,REF(EMA(C,14),BARSLAST(CROSS(B,0))+1),DRAWNULL),colorred,LINETHICK2;
阻力:IF(B<0,REF(EMA(C,14),BARSLAST(CROSS(0,B))+1),DRAWNULL),colorgreen,LINETHICK2;
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,coloryellow;
VAR21:IF(VAR2<20,40,20),colorbrown;
VAR22:IF(VAR2>80,60,80),COLORFFFF50;
VAR2↑:STICKLINE(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),20,40,8,0),colorred;
VAR2↓:STICKLINE(FILTER(REF(VAR2,1)>80 AND VAR2<REF(VAR2,1),5),60,80,8,0),COLORFFFF50;
DRAWTEXT(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),40 ,'买入' ),COLORFFFFFF;
DRAWTEXT(FILTER(REF(VAR2,1)>80 AND VAR2<REF(VAR2,1),5),60 ,'卖出' ),COLORFFFFFF;
80,colorgreen;
20,colorred;
MACD2:(EXPMA(CLOSE,30)-REF(EXPMA(CLOSE,30),1))/REF(EXPMA(CLOSE,30),1),COLORSTICK;
DIF2:EMA(SUM(MACD2,2),3),LINETHICK2,coloryellow;
入1:IF(DIF2>REF(DIF2,1),DIF2,DRAWNULL),colorred,LINETHICK2;
入2:IF(DIF2<REF(DIF2,1),DIF2,DRAWNULL),COLOR00FF00,LINETHICK2;
DEA2:MA(DIF2,5);