Main control
N:=35;M:=35;N1:=3;
B1:=(HHV(H,N)-C)/(HHV(H,N)-LLV(LOW,N))*100- M;
B2:=SMA(B1,N,1)+100;
B3:=(C-LLV(L,N))/(HHV(H,N)- LLV(L,N))*100;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
Control degree: (IF(B6>N1,B6-N1+2,0))*2.5,COLORYELLOW;
Controller: 100, COLORRED;
STICKLINE (disk control degree, 0, disk control degree, 1.7,0), COLOR00FFFF;
STICKLINE (Disk control degree ANDD Disk control degree>100,100,Disk control degree,1.7,0),COLORRED;
Main state
ZLCM:=EMA(WINNER(CLOSE)*70,3);{//Main chip estimation}
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//Retail investors' chip estimation}
ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//Retail investors are trapped in chip ratio}
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//Main control chip ratio}
ZCMZL:=MA(ZLCM+SHCM,13);{//Total market chips}
ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//Number of days}
ZSHJJ:=EMA(ZSHTL,89);{//Retail investors' alert}
ZZLJJ:=EMA(ZZLKP,89);{//Main Warning}
ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//Intensity of capital inflow}
SH8:=EMA(ZSHTL,8);
DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);
{Retail investors are trapped in chips}
STICKLINE(C>0,ZSHTL,ZZLKP,1,0),COLORFFFFFF;
{Retail investors' chip warning}
STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLOR00FF00;
{Main control chips}
STICKLINE(C>0,ZZLKP,0,1,0),COLORA4A4A4;
{Pinto Risk Area}
STICKLINE(ZZLKP>75,ZZLKP,0,1,0),COLORFFFFFF;
{Top:(ZZLKP>75),COLORFFFFF;}
{Main chip alert}
STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED;
{Bottom-building foxglove}
STICKLINE(ZSHTL>=90,ZZLKP,0,2,0),COLOR66FFCC;
{Bottom:(ZSHTL>=90),COLOR66FFCC;}
{The total amount of chips increased}
IF(ZCMZL,ZCMZL>REF(ZCMZL,1),0),COLOR0066FF,LINETHICK1;
{Incremental Fund};
{//------【Numerical Display】}
Retail investors' trap coefficient: INTPART (ZSHTL), COLORCYAN, LINETHICK2;
Main disk control coefficient: INTPART (ZZLKP), COLORYELLOW, LINETHICK2;
Fund inflow intensity: ZJLRQD, LINETHICK2, COLORRED;
Fund inflow intensity 2: IF(ZJLRQD<10,ZJLRQD,0),LINETHICK2,COLORWHITE;
Total market chips: INTPART (ZCMZL), COLORWHITE, LINETHICK0;
DRAWICON (CROSS (main control coefficient, retail investor trap coefficient), retail investor trap coefficient -5,11);
DRAWICON (CROSS (intensity of capital inflow, retail investor trap coefficient), retail investor trap coefficient -5,17);