大智慧压力均线主图指标
源码
{48、Z 均线}
日线: MA(CLOSE,4);
周线: MA(CLOSE,13);
月线: MA(CLOSE,13);
半年线: MA(CLOSE,108);
年线: MA(CLOSE,216);
M377: MA(CLOSE,377);
Var3:=(LOW+HIGH+CLOSE)/3;
Var4:=MA(Var3,5);
Var5:=HHV(Var4,13);
Var6:=HHV(Var4,60);
Var7:=LLV(Var4,13);
Var8:=LLV(LOW,60)*1.02;
Var9:=HHV(HIGH,60)*0.98;
DRAWTEXT(CROSS(Var8,Var7),LOW,'小顶'), COLORMAGENTA;
VarA:=EMA(WINNER(COST(50)),4);
VarB:=EMA(WINNER(CLOSE),4)-VarA;
VarC:=EMA(VarB,8);
VarD:=2*(VarB-VarC);
VarE:=3*VarB-2*VarC;
DRAWTEXT(CROSS(VarE,0) OR CROSS(VarE,-0.335),CLOSE,'压力'), COLORYELLOW;
DRAWTEXT(CROSS(VarE,0.249),HIGH*0.95,'冲顶'),
DRAWTEXT(CROSS(VarE,0.524),CLOSE,'小顶'),
DRAWTEXT(CROSS(VarE,0.58),HIGH,'顶部'), COLORRED;
DRAWTEXT(CROSS(0.81,VarE),OPEN,'大顶'),
DRAWTEXT(CROSS(VarE,-0.515),CLOSE,'买'), COLORGREEN;
VarF:=LLV(LOW,36);
Var10:=HHV(HIGH,30);
Var11:=EMA((CLOSE-VarF)/(Var10-VarF)*4,4)*25;
Var12:=(Var11-LLV(Var11,4))/(HHV(Var11,4)-LLV(Var11,4))*4*25;
Var13:=CROSS(Var12,87.5) AND Var11<40;
DRAWTEXT(CROSS(VarE,-0.5) AND Var13,(LOW+HIGH)/2,'KK'), COLORGREEN;
DRAWTEXT(CROSS(VarE,-0.638) OR CROSS(VarE,-0.57) OR CROSS(VarE,-0.478),LOW-0.1,