突破信号C
2016-7-28 21:36:57点击:
衡量19日内的最高最低价之间的突破与破位
警惕高位死叉
//IF(STRFIND(PERIODNAME,"分钟",1)>0);
//散户数量:=1000000*(ZDMCCS[-1]+BDMCCS[-1]-(ZDMRCS[-1]+BDMRCS[-1]))/(SHGZG/(VOL/VOLAMOUNT));
//CJBS:=MAX(0,SUBSAMEDAY(&VOLAMOUNT));
//a:=SUBSAMEDAY(&MONEY);
//IF(FORMATTIME(1)<1)
//RETURN;
//b:=SUBSAMEDAY(&NEW);
//资流出:-SUM(IF(b< 0,a,0),0)*10,colorgreen;
//VR;
JC:=AMOUNT/VOL;//MONEY;
LC:=REF(JC,1);
VR:=SUM(IF(JC>LC,AMOUNT,0),26)/SUM(IF(JC<=LC,AMOUNT,0),26)*100,colorcyan;
VRM:=EMA(VR,5),coloryellow;
VR1:=CROSS(VR,145) OR ( CROSS(VR,190) AND COUNT(CROSS(VR,145),5)>0 ) OR ( CROSS(VR,245) AND COUNT(CROSS(VR,190),5)>0 );
VR2:IF(VR1,73,DRAWNULL),colormagenta,LINETHICK1,CROSSDOT;//CIRCLEDOT,CROSSDOT;
VR3:IF(VR1,83,DRAWNULL),colormagenta,LINETHICK1,CROSSDOT;
//深市用aa:VOL/VOLAMOUNT; 沪市aa:VOL/CJBSL2[-1];
笔均量:=IF(MARKETTYPE=32,MAX(0,VOL/VOLAMOUNT),IF(MARKETTYPE=16,IF(ISNULL(ALLBUYCOUNT),VOL/CJBSL2[-1],VOL/VOLAMOUNT),0));
笔均量M:=EMA(笔均量,19);
MC:=(H+O)/2;
DC:=(L+O)/2;
空心笔均差:=(笔均量-笔均量M)/笔均量M*100,colorwhite,NODRAW;
STICKLINE(笔均量>笔均量M AND C>MC, MAX(50-空心笔均差,0) ,50,6,1),colorred;
STICKLINE(笔均量>笔均量M AND C<MC AND C<DC, MAX(50-空心笔均差,0) ,50,6,1),colorgreen;
STICKLINE(笔均量>笔均量M AND C<MC AND C>DC, MAX(50-空心笔均差,0) ,50,6,1),colorwhite;
N:=19;
VAR1:=HHV(HIGH,N);
VAR2:=LLV(LOW,N);
//短线:EMA((CLOSE-VAR2)/(VAR1-VAR2),3)*100,colorFF80FF;
操作线:EMA((CLOSE-VAR2)/(VAR1-VAR2),5)*100,colorred,LINETHICK2;
阻力线:EMA((CLOSE-VAR2)/(VAR1-VAR2),19)*100,COLORF0F000,LINETHICK1;
冲刺:=CROSS(操作线,73) AND (操作线-阻力线)<25;//COUNT(CROSS(阻力线,51.5),5)>0;
小顶:=CROSS(操作线,73) AND (操作线-阻力线)>=25;//COUNT(CROSS(阻力线,51.5),5)<1;
大顶:=CROSS(阻力线,73) ;
STICKLINE(大顶,93,73,2,0),colorFF3E3E;//紫罗兰;
STICKLINE(冲刺,93,73,2,0),colormagenta;
STICKLINE(小顶,93,73,2,0),colorgreen;
金叉:=CROSS(操作线,阻力线) AND REF(HHV(阻力线,24),2)<63;
//LONGCROSS(A,B,N); COUNT(VAR8,30)=1
DRAWTEXT(金叉,70,'金叉'),colorred;
死叉区:=COUNT( CROSS(操作线,阻力线),MAX(1,BARSLAST(CROSS(阻力线,操作线))) )<1;
STICKLINE(死叉区 AND 操作线<REF(操作线,1),99,83,10,0),COLOR408000;
//阻力线上移;
STICKLINE(死叉区 AND 操作线>REF(操作线,1),99,93,10,0),color408000;
接近金叉:=(CROSS(操作线,阻力线) OR CROSS(操作线,阻力线-3)) AND REF(死叉区,1);
STICKLINE(接近金叉,99,83,10,0),colorred;
金叉洗盘:=NOT(死叉区) AND 阻力线>REF(阻力线,1) AND REF(操作线,1)=LLV(操作线,3);
XPC:=REF(C,REF(BARSLAST(金叉洗盘),1)+1);
上次洗盘收:=IF(COUNT(金叉洗盘,12)>1,XPC,0),NODRAW;
JCXP:=金叉洗盘 AND IF(阻力线>73,IF(C>上次洗盘收,1,0),1);
STICKLINE(JCXP,93,73,2,0),coloryellow;
DRAWTEXT(金叉洗盘 AND C<上次洗盘收 AND 阻力线>73,70,'顶背'),colorgreen;
//小顶信号内操盘线增幅小于3;
DRAWICON(FILTER( BARSLAST(小顶)<=4 AND 操作线-REF(操作线,1)<2.5,3 ) ,操作线,2);
//高位下80卖出;
//DRAWICON(FILTER( CROSS(83,操作线) OR CROSS(78,操作线),3 ) AND 阻力线<63 ,83,2);
强:73,COLORFF3E3E,DOTLINE;
低位:30,COLORFF3E3E,DOTLINE;
零:0,COLORFF3E3E,DOTLINE;
R10MA20:=REF(MA(C,20),10);
DPO:=200*(C-R10MA20)/R10MA20;
DPO2:=DPO-MA(DPO,6);
PARTLINE(DPO2,DPO2>(低位+4),RGB(255,0,255),DPO2<=(低位+4),RGB(0,255,0));
//QS521:=STRFIND(PERIODNAME,"分钟",1)=0 AND COUNT( CROSS(MA21,MA5),1+BARSLAST(CROSS(MA5,MA21)) )<1;
TA:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=EMA(TA,13);
VAR81:=REF(CLOSE,1)-REF(ATR,1);
VAR82:=REF(CLOSE,1)+REF(ATR,1);
止盈线:=HHV(VAR82,13);
永不套牢线:=HHV(VAR81,13),COLOR408000,NODRAW;
止损:=(C-永不套牢线)/永不套牢线*100;
止盈:=(C-止盈线)/止盈线*100;
STICKLINE(止损<0 AND 止损>-1.5,104,110,8,1),coloryellow;
STICKLINE(止损<-1.5 AND REF(止损>-1.5,1),104,110,8,1),COLOR408000;//深绿;
STICKLINE((止损>0 AND 止盈<-1.5) AND REF(止损<0,1),104,110,10,1),colorred;
STICKLINE(止盈<0 AND 止盈>-1.5,104,110,8,1),colormagenta;
STICKLINE(止盈>0,104,110,10,1),colorFF3E3E;//紫罗兰;
STICKLINE(死叉区 AND 止损<-1.5,50,99,12,0),COLOR7C221C;
//反抽:=(CROSS(操作线,15) OR CROSS(操作线,20)) AND 阻力线-REF(阻力线,1)>-2.5;
//STICKLINE(反抽 AND STRFIND(PERIODNAME,"日线",1)=0,93,73,2,0),colormagenta;
XG:IF( (金叉 OR JCXP OR 冲刺) AND 笔均量>笔均量M*1.03,80,100),coloryellow,LINETHICK1;
SELECT XG;
//{45度攻击};
// X1:=(3*C+L+H+O)/6;
// BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
// EMA8:=EMA(C,8);
// T1:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);