2022版启灵副图指标+选股(通达信+源码+分享+无未来+副图+选股 副图指标源码: {背离} 快的:=EMA(CLOSE,12)-EMA(CLOSE,26); 慢的:=EMA(快的,9); 力度:=(快的-慢的)*2; 差距:=ABS(力度-REF(力度,1)); 差距率:=ABS(差距/REF(力度,1)); {IF(UPNDAY(差距,1),差距,DRAWNULL),COLORRED; IF(DOWNNDAY(差距,1),差距,DRAWNULL),COLORGREEN;} 趋势线:=EMA(4*快的-3*慢的,1); {IF(UPNDAY(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK1; IF(DOWNNDAY(趋势线,1), 趋势线,DRAWNULL),COLORGREEN,LINETHICK1;} 准备:=差距率=LLV(差距率,BARSLAST(CROSS(0,力度)OR CROSS(力度,0))) &&DOWNNDAY(差距率,4)&&DOWNNDAY(ABS(差距),4); A:=(C-REF(C,1))/REF(C,1)*100>=9.93; A1:=BARSLAST(A); MA233:=MA(C,233); B:=力度>0 &&((COUNT(REF(力度,1)=LLV(力度,3),BARSLAST(CROSS(力度,0)))>=2 &&力度=HHV(力度,BARSLAST(CROSS(力度,0)))) OR( COUNT(REF(力度,1)=LLV(力度,3),BARSLAST(CROSS(力度,0)))>=3) &&REF(力度,1)=LLV(力度,3)) AND C/REF(C,1)>=1.025 AND V/REF(V,1)>=1.65 AND A1<=7 AND H>L AND C<MA233; STICKLINE(B, 0,10, 2, -1),COLORLIMAGENTA; STICKLINE(B, 0,2, 3, 0),COLORLIMAGENTA; DRAWTEXT(B,5,'启@灵'),COLORYELLOW; STICKLINE(B, 8,10, 3, 0),COLORLIMAGENTA; STICKLINE(B, 6,7.5, 2, 0),COLORGREEN; 选股指标源码: {背离} 快的:=EMA(CLOSE,12)-EMA(CLOSE,26); 慢的:=EMA(快的,9); 力度:=(快的-慢的)*2; 差距:=ABS(力度-REF(力度,1)); 差距率:=ABS(差距/REF(力度,1)); {IF(UPNDAY(差距,1),差距,DRAWNULL),COLORRED; IF(DOWNNDAY(差距,1),差距,DRAWNULL),COLORGREEN;} 趋势线:=EMA(4*快的-3*慢的,1); {IF(UPNDAY(趋势线,1),趋势线,DRAWNULL),COLORRED,LINETHICK1; IF(DOWNNDAY(趋势线,1), 趋势线,DRAWNULL),COLORGREEN,LINETHICK1;} 准备:=差距率=LLV(差距率,BARSLAST(CROSS(0,力度)OR CROSS(力度,0))) &&DOWNNDAY(差距率,4)&&DOWNNDAY(ABS(差距),4); A:=(C-REF(C,1))/REF(C,1)*100>=9.93; A1:=BARSLAST(A); MA233:=MA(C,233); B:力度>0 &&((COUNT(REF(力度,1)=LLV(力度,3),BARSLAST(CROSS(力度,0)))>=2 &&力度=HHV(力度,BARSLAST(CROSS(力度,0)))) OR( COUNT(REF(力度,1)=LLV(力度,3),BARSLAST(CROSS(力度,0)))>=3) &&REF(力度,1)=LLV(力度,3)) AND C/REF(C,1)>=1.025 AND V/REF(V,1)>=1.65 ; |