分享一下“波段为王”公式的通达信版
{Z波段鬼王Z}
VAR4:=100-ABS((C-MA(C,13))/MA(C,13)*100);
VARC:=100-KDJ.J(75,20,15);
看我实力:(100-KDJ.J(75,20,15)),LINETHICK6,COLORRED ;
散户:MA(WINNER(CLOSE*0.95)*100,3),COLORYELLOW;
新庄:(100-IF(1/WINNER(C)>5,IF(1/WINNER(C)<100,1/WINNER(C),VAR4-10),0)), ,COLORGREEN;
VARD:=散户>VAR4;
VARE:=REF(L,1)*0.9;
VARF:=LOW*0.9;
VAR10:=(VARF*V+VARE*(CAPITAL-V))/CAPITAL;
VAR11:=EMA(VAR10,30);
VAR15:=RSI.RSI1(7,13,13);
VAR16:=RSI.RSI2(7,13,13);
VAR17:=BARSCOUNT(C);
VAR19:=100-2*WR.WR1(60,60);
VAR1B:=SMA((KDJ.K(15,4,4)-50)*2,3,1);
VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VAR1D:=SMA(VAR1C,4,1);
VAR1E:=SMA(VAR1D,3,1);
VAR1F:=(HHV(H,30)-C)/C*100;
VAR20:=RSI.RSI1<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;
VAR22:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14));
VAR23:=((H+L+C)/3-MA((H+L+C)/3,70))/(0.015*AVEDEV((H+L+C)/3,70));
VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200,10,0);
VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 AND VAR23>-200,-10,VAR24);
绝处逢生: IF(VAR23>=200 AND VAR22>=150,15,IF(VAR23<=-200 AND VAR22<=-150,-15,VAR25))+50,LINETHICK2,CROSSDOT;
STICKLINE(VARD,VAR4,散户,5,0), , COLORRED;
STICKLINE(1,散户,0,1,0), ,COLORYELLOW;
STICKLINE(1,新庄,100,1,0), , COLORGREEN;
STICKLINE(VAR20,0,80,5,0),LINETHICK3,COLORRED,;
DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,60,'有钱不赚傻!'),LINETHICK7 , COLORYELLOW;
DRAWTEXT(CROSS(VARD,0.5) AND COUNT(VARD=1,10)=1,70,'**我走啦!!!'),LINETHICK7 , COLORGREEN;
波段王:KDJ.D(27,3,3),LINETHICK2 ;
波段鬼: SMA(KDJ.D(27,3,3),3,1),LINETHICK2 , COLORYELLOW;
地狱: IF(CROSS(波段王,波段鬼) AND 波段王<40,35,0),LINETHICK2 , COLORRED;
天堂: IF(CROSS(波段鬼,波段王) AND 波段鬼>75,70,100),LINETHICK2 , COLORGREEN;
DRAWTEXT(CROSS(波段王,波段鬼) AND 波段王<40,25,'逢低吸呐'),LINETHICK4 , COLORWHITE;
DRAWTEXT(CROSS(波段鬼,波段王) AND 波段鬼>75,85,'减磅是老师!'),LINETHICK4 ;