【通达信源码分享】主力资金散户线幅图指标
2022-07-11未知 编 辑:掌上指标
界线:50,COLORGRAY,POINTDOT,LINETHICK3;
强: 90,COLORCYAN,LINETHICK3,POINTDOT;
弱:10,COLORCYAN,LINETHICK3,POINTDOT;
VAR1:=1;
VAR2:=1/WINNER(CLOSE);
VAR3:=MA(CLOSE,13);
VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,21,1);
VAR9:=SMA((OPEN-VAR5)/VAR7,21,1);
VARA:=3*VAR8-2*SMA(VAR8,13,1);
VARB:=3*VAR9-2*SMA(VAR9,13,1);
VARC:=100-VARB;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
快速散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORCYAN;
快速主力线:EMA(J,6),COLORYELLOW;
走势:=CEILING(SMA(AA5,13,8));
散户线:(100-VARA)*VAR1,COLORGREEN,LINETHICK2;
主力线:MEMA(WINNER(CLOSE*0.95)*100,3)*VAR1,COLORRED,LINETHICK2;
DRAWTEXT(CROSS(主力线,散户线),主力线,'★'),COLORRED;
DRAWICON(FILTER(J>REF(J,1)AND 走势>=REF(走势,1)AND(走势<25),5),走势,1);
DRAWICON(FILTER(J<REF(J,1)AND 走势<=REF(走势,1)AND(J>85) ,5),J,2);
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARR1),走势,15),COLORGREEN;
VARAA:=REF(LOW,1);
VARBB:=SMA(ABS(LOW-VARAA),3,1)/SMA(MAX(LOW-VARAA,0),3,1)*100;
VARCC:=EMA(IF(CLOSE*1.3,VARBB*10,VARBB/10),3);
VARD:=LLV(LOW,30);
VARE:=HHV(VARCC,30);
VARF:=IF(MA(CLOSE,58),1,0);
VARG:=EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3)/618*VARF;
VARH:=IF(VARG>100,100,VARG);
吸筹:STICKLINE(VARH>-120,0,VARH,2,5),COLORMAGENTA;
DRAWTEXT(CROSS(快速主力线,快速散户线),快速主力线,'★'),COLORYELLOW;
主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORMAGENTA,LINETHICK0;
主力筹码:WINNER(C)*100,LINETHICK0;