年线:EXPMA(C,250),LINETHICK2,COLORWHITE;
半年线:EXPMA(C,120),LINETHICK2,COLORRED;
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(涨停,O,C,2.5,0),COLORYELLOW;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,O,C,2.5,0),COLORBLUE;
中轴线:(EMA(C,3)+EMA(C,6)+EMA(C,12)+EMA(C,24))/4,LINETHICK1,COLORYELLOW;
安全线:MA(C,30),LINETHICK1,COLORGREEN;
DRAWTEXT(CROSS(中轴线,安全线),安全线*0.98,'←买'),COLORRED;
中:=MA(CLOSE,21), POINTDOT,COLORWHITE;
上1:中 + 1.96*STDP(CLOSE,21), POINTDOT,COLORGREEN;
下1:中 - 1.96*STDP(CLOSE,21), POINTDOT,COLORGREEN;
上2:=中 + 2.58*STDP(CLOSE,21), POINTDOT,COLORLIRED;
下2:=中 - 2.58*STDP(CLOSE,21), POINTDOT,COLORLIRED;
DRAWTEXT(((上1-中)/中<0.05),下2,'.'),COLORWHITE;
BIAS1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
DRAWTEXT(乖离<-5.5 AND CROSS(BIAS,乖离),C*0.98,'←底'), COLORRED;
VAR51:=LLV(LOW,60);
VAR61:=HHV(HIGH,60);
VAR71:=EMA((CLOSE-VAR51)/(VAR61-VAR51)*100,5);
VAR5:=EMA(0.667*REF(VAR71,1)+0.333*VAR71,2);
VAR6:=OPEN=1.06 AND CLOSE/OPEN>1.12 AND HIGH/ CROSS(VAR71,VAR5) AND VAR71<13;
DRAWTEXT(VAR71>85 AND CROSS(VAR5,VAR71),H,'←顶'), COLORWHITE;
{1}
VAR10:=MA(C,2)>REF(MA(C,2),1);
VAR11:=MA(C,10)>MA(C,20);
VAR12:=(CLOSE*2+HIGH+LOW)/4;
VAR13:=EMA(VAR12,12)-EMA(VAR12,50);
VAR14:=EMA(VAR13,2);
VAR15:=(CROSS(VAR13,VAR14) AND VAR13<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)
OR (CROSS(VAR13,VAR14) AND VAR13<=-0.14 ) OR (CROSS(VAR13,VAR14) AND VAR13<=0.05
AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) AND VAR10 AND VAR11;
DRAWTEXT(VAR15,H,'←黑马'),COLORYELLOW;
{2}
VAR16:=REF(LOW,1);
VAR17:=(SMA(ABS(LOW-VAR16),13,1))/(SMA(MAX(LOW-VAR16,0),13,1))*100;
VAR18:=MA(VAR17,13);
VAR19:=LLV(LOW,34);
VAR20:=EMA(IF(LOW<=VAR19,VAR18,0),3);
VAR21:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
VAR22:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR21*10.9;
VAR23:=FILTER(IF(VAR22<=VAR21 AND VAR20>REF(VAR20,1),VAR20*8,0),20);
DRAWTEXT(VAR23,C*0.98,'←洗盘'),COLORGREEN;
{3}
VAR26:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR27:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR28:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR29:=VAR27<REF(VAR28,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
VAR30:=(HIGH+LOW+CLOSE)/3;
VAR31:=(VAR30-MA(VAR30,14))/(0.015*AVEDEV(VAR30,14));
VAR32:=(VAR30-MA(VAR30,70))/(0.015*AVEDEV(VAR30,70));
VAR33:=IF(VAR31>=150 AND VAR31<200 AND VAR32>=150 AND VAR32<200,10,0);
VAR34:=IF(VAR31<=-150 AND VAR31>-200 AND VAR32<=-150 AND VAR32>-200,-10,VAR33);
VAR35:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR36:=100-ABS(VAR35);
VAR37:=IF(VAR36<90,VAR36,100);
VAR38:=IF(VAR26>0,VAR26,0);
VAR39:=IF(VAR32>=200 AND VAR31>=150,15,IF(VAR32<=-200 AND VAR31<=-150,-15,VAR34))+60;
VAR40:=VAR38>60 AND VAR39>70 AND VAR37<100;
DRAWTEXT(VAR29 AND COUNT(VAR29,30)=1,H*1.05,'←筹码进入注意'),COLORMAGENTA;
DRAWTEXT(VAR40 AND COUNT(VAR40,30)=1,H*1.05,'←筹码逃出小心'),COLORCYAN;
|