V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
K1:=3.2*SLOPE(EMA(CLOSE,3),2);
结: EMA(EMA(EMA(HIGH+K1,3),4),4)*1.15,LINETHICK2,COLORWHITE;
止: EMA(EMA(EMA(HIGH+K1,3),4),4)*1.1,LINETHICK1,COLORGRAY;
险: EMA(EMA(EMA(HIGH+K1,3),4),4)*1.05,LINETHICK1,COLORYELLOW;
阻:REF(V3,1),LINETHICK3,COLOR6E6EFF;
平: EMA(EMA(EMA(HIGH+K1,3),4),4),LINETHICK1;
回: EMA(EMA(EMA(HIGH+K1,3),4),4)*0.95,LINETHICK2,COLORGREEN;
支:REF(V2,1),LINETHICK3,COLOR5E5EFF;
反: EMA(EMA(EMA(HIGH+K1,3),4),4)*0.90,LINETHICK1,COLORBLUE;
安: EMA(EMA(EMA(HIGH+K1,3),4),4)*0.85,LINETHICK2,COLORWHITE;
STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLORYELLOW;
STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN;
M1R:AMOUNT/VOL/100,LINETHICK0,COLORWHITE;
M10R:SUM(AMOUNT,10)/SUM(VOL,10)/100,LINETHICK0,COLORWHITE;
摆动比:=(支-REF(支,1))/REF(支,1)*10000;
现抄底:=(C-M10R)/M10R*100;
前抄底:=REF((C-M10R)/M10R*100,1);
现排名:=INTPART(现抄底*100);
前排名:=INTPART(前抄底*100);
排名差:=现排名-前排名;
十日排名差:=SUM(排名差,10);
低点:=C<O AND 摆动比<0 AND C<回 AND 现排名<-30 AND 前排名<-20 AND 排名差<0 AND 现排名>十日排名差 AND 前排名>十日排名差 AND 排名差>十日排名差 AND 十日排名差<-600;
排名低点:=C<O AND 摆动比<0 AND C<回 AND 低点 AND REF(低点,1) AND 十日排名差<REF(十日排名差,1)-125;
低点启动:=C<回 AND 摆动比<0 AND 现排名<-30 AND 前排名<-30 AND 排名差>0 AND 现排名>十日排名差 AND 排名差>十日排名差 AND 十日排名差<-900;
相对高点:=C>回 AND 现排名>0 AND 前排名>0 AND 排名差>0 AND 现排名<十日排名差 AND 前排名<十日排名差 AND 排名差<十日排名差 AND 十日排名差>0;
DRAWTEXT(相对高点=1,H,'*相对高点'),COLORRED;
价幅:=(M1R-M10R)/M10R*100,COLORRED;
幅差:=(价幅-HHV(价幅,10))/2;
BBB:=(C-MA(C,10))/MA(C,10)*100;
HHH:=(BBB+MA(BBB,10))/4;
短线:=HHH;
XG1:=平/C>1.1 AND 低点 AND (回>支 AND (C-支)/C*100<=0) ;
XG2:=平/C>1.1 AND 排名低点 AND (回<支 AND (C-反)/C*100<=0);
XG10:IF(XG1=1 ,L,安*0.95),COLORFF00FF,LINETHICK3;
XG20:IF(XG2=1,L,安*0.95),COLORFF00FF,LINETHICK3;
DRAWICON(CROSS(短线,价幅) AND C<O ,L,12);
DRAWTEXT(CROSS(短线,价幅) AND C<O ,L,'*量背急跌'),COLORRED;
DRAWTEXT(低点=1,L,'*单低点'),COLORGREEN;
DRAWTEXT(排名低点=1,L,'*双低点'),COLORGREEN;
DRAWTEXT(低点启动=1,L,'*低点启动'),COLORRED;
{DRAWICON( CROSS(回,支),回,1);
DRAWICON( CROSS(反,支),反,1);
DRAWICON( CROSS(安,支),安,1);
DRAWICON( CROSS(险,阻),险,1);
DRAWICON( CROSS(平,阻),平,1);
DRAWICON( CROSS(止,阻),止,1);
DRAWICON( CROSS(回,阻),回,1);
DRAWICON( CROSS(支,平),支,7);
DRAWICON( CROSS(平,支),平,7);}
DRAWTEXT( CROSS(支,平),支*0.98,'支平寻底');
DRAWTEXT( CROSS(平,支),平*0.98,'平支启动');
DRAWTEXT( CROSS(回,支),回*0.98,'回支安全');
DRAWTEXT( CROSS(反,支),反*0.98,'反支平稳');
DRAWTEXT( CROSS(安,支),安*0.98,'安支风险');
DRAWTEXT( CROSS(险,阻),险*0.98,'险阻平稳');
DRAWTEXT( CROSS(平,阻),平*0.98,'平阻持股');
DRAWTEXT( CROSS(止,阻),止*0.98,'止阻安全');
DRAWTEXT( CROSS(回,阻),回*0.98,'回阻涨板');
{DRAWICON( CROSS(支,回) AND C<支 AND C<回,回,2);
DRAWICON( CROSS(支,反),反,2);
DRAWICON( CROSS(支,安),安,2);
DRAWICON( CROSS(阻,平),平,2);
DRAWICON( CROSS(阻,险),险,2);
DRAWICON( CROSS(阻,止) AND C<支 AND C<回,止,2);
DRAWICON( CROSS(阻,回),回,2);}
DRAWTEXT( CROSS(支,回) AND C<支 AND C<回,回*0.98,'支回反弹');
DRAWTEXT( CROSS(支,反),反*0.98,'支反观望');
DRAWTEXT( CROSS(支,安),安*0.98,'支安离场');
DRAWTEXT( CROSS(阻,平),平*0.98,'阻平离场');
DRAWTEXT( CROSS(阻,险),险*0.98,'阻险观望');
DRAWTEXT( CROSS(阻,止) AND C<支 AND C<回,止*0.98,'阻止反弹');
DRAWTEXT( CROSS(阻,回),回*0.98,'阻回快逃');
DRAWTEXT( CROSS(阻,C) OR CROSS(回,C) OR CROSS(支,C) OR CROSS(反,C) ,(H+L+C)/3,'下'),COLORWHITE;
DRAWTEXT( CROSS(C,阻) OR CROSS(C,回) OR CROSS(C,支) OR CROSS(C,反) OR CROSS(C,安) ,(H+L+C)/3,'上'),COLORWHITE; |