射线:=SMA((2*C+H+L)/4,3,2);
CL:=射线;
DIR1:=Abs(CL-REF(CL,2));
VIR1:=SUM(ABS(CL-REF(CL,1)),2);
ER1:=DIR1/VIR1;
CS1:=ER1*(0.8-2/8)+2/8;
CQ1:=CS1*CS1;
AMA5:=EMA(DMA(CL,CQ1),2);
成本:=SMA(AMA5,7,2);
CLX:=(AMA5+成本)/2;
N:=7;M:=6;
情绪线:COUNT(CLX>REF(CLX,1),N)/N*100,COLOR0000FF,LINETHICK2;
MA情绪线:MA(情绪线,M),COLOR00AA00;
20;40,LINETHICK2;80;
DRAWTEXT_FIX(C>O,0.45,0.01,0,' 过20关注,过40介入,破80减仓,下破MA清仓。'),COLOR000000;