VAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR3:=LLV(LOW,34);
VAR4:=HHV(HIGH,34);
AA:((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)-50)*1.032+50),COLORRED;
BB:EMA((VAR2-VAR3)/(VAR4-VAR3)*100,13),COLORGREEN;
CC:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5;
VAR5:=CROSS(AA,BB)AND BB<25;
DD:STICKLINE(AA<10 AND CC>0,0,30,6,1),COLORBLUE;
STICKLINE(VAR5,0,50,8,0) ,COLOR0099FF;
DRAWTEXT(VAR5,60,'买入点') ,COLOR0099FF;
DRAWICON(VAR5 AND CC>0,60,1);
DRAWTEXT(COUNT(AA<10 AND CC>0,8) AND VAR5,50,'底部'),COLORFF00FF;
DRAWTEXT(CROSS(AA,BB)AND BB>25 AND BB>REF(BB,1),BB,'');
VAR6:=CROSS(AA,BB)AND BB<50;
DRAWTEXT( COUNT(AA<30 AND CC>0,5) AND VAR6,30,'砸锅卖铁买'),COLORBLUE;
同花顺砸锅卖铁副图指标
源码
VAR2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR3:=LLV(LOW,34);
VAR4:=HHV(HIGH,34);
AA:((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)-50)*1.032+50),COLORRED;
BB:EMA((VAR2-VAR3)/(VAR4-VAR3)*100,13),COLORGREEN;
CC:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5;
VAR5:=CROSS(AA,BB)AND BB<25;
DD:STICKLINE(AA<10 AND CC>0,0,30,6,1),COLORBLUE;
STICKLINE(VAR5,0,50,8,0) ,COLOR0099FF;
DRAWTEXT(VAR5,60,'买入点') ,COLOR0099FF;
DRAWICON(VAR5 AND CC>0,60,1);
DRAWTEXT(COUNT(AA<10 AND CC>0,8) AND VAR5,50,'底部'),COLORFF00FF;
DRAWTEXT(CROSS(AA,BB)AND BB>25 AND BB>REF(BB,1),BB,'');
VAR6:=CROSS(AA,BB)AND BB<50;
DRAWTEXT( COUNT(AA<30 AND CC>0,5) AND VAR6,30,'砸锅卖铁买'),COLORBLUE;