乖离24:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
向上:=REF(乖离24,1)0;
没涨:=(MA(C,2)-REF(MA(C,2),10))/MA(C,2)*100>0 AND (MA(C,2)-REF(MA(C,2),10))/MA(C,2)*100<20;
拐点:=VALUEWHEN(向上=1 AND 没涨=1,C);
平衡线1:=拐点*1.5;
ASD:=MA(CYC.CYC3,20);
多空平衡点:=ASD*1.4;
第一防守:=ASD*1;
第二防守:=ASD*0.9;
CG:WMA(C,N),LINETHICK2,COLORRED;
FL:=HHV(CG,5);
FS:=CG-(FL-CG);
IF(CGFS,CG,DRAWNULL),COLORGREEN,LINETHICK2;
AMV0:=VOL*(O+C+H+L)/4;
NOTEXT势:EMA(AMV0,21)/EMA(VOL,21),NODRAW;
NOTEXT压:6*HHV(NOTEXT势,2)-5*NOTEXT势,NODRAW;
NOTEXT托:2*NOTEXT势-NOTEXT压,NODRAW;
IF(NOTEXT势NOTEXT托,NOTEXT托,DRAWNULL),NODRAW;
{NOTEXT压=NOTEXT托 AND REF(NOTEXT压,1)>REF(NOTEXT托,1);}
A1:=EMA(AMV0,21)/EMA(VOL,21);
A2:=6*HHV(A1,2)-5*A1;
A3:=2*A1-A2;
A4:=A1=A3;
XD:REF(A3>C AND A2>A3,1) AND C>O AND A4,NODRAW;
防守线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,DOTLINE,COLORLIGRAY LINETHICK1;
VAR6:=(( ABS((OPEN-CLOSE))/(HIGH-LOW))*VOL);
VAR7:=(( (HIGH-IF((CLOSE>OPEN),CLOSE,OPEN))/(HIGH-LOW))*VOL);
VAR8:=(( (IF((CLOSE>OPEN),OPEN,CLOSE)-LOW)/(HIGH-LOW))*VOL);
NOTEXT加仓:VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE>OPEN,NODRAW,COLORRED;
NOTEXT减仓:VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE<OPEN,NODRAW,COLORBLUE;
NOTEXT洗盘:VAR8>VAR6 AND VAR8>VAR7,NODRAW,COLORMAGENTA;
NOTEXT高抛:VAR7>VAR6 AND VAR7>VAR8,NODRAW,COLORMAGENTA;
NOTEXT地量:{VAR9>2 AND }VOL<MA(VOL,5)/2,NODRAW,COLORWHITE;
STICKLINE(NOTEXT加仓,O,C,1,0),COLORRED;
STICKLINE(NOTEXT洗盘,O,C,1,0),COLORMAGENTA;
STICKLINE(NOTEXT减仓,O,C,1,0),COLORBLUE;
STICKLINE(NOTEXT高抛,O,C,1,0),COLORMAGENTA;
STICKLINE(NOTEXT地量,O,C,1,0),COLORWHITE;
JJ:=(3*C+H+L+O)/6;
VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);
LJL:=FILTER(TJ1,5);
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
HD:=COUNT(涨停,13)>=1;
STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORYELLOW;
DRAWTEXT(XD,LOW*0.95,’ 上坡路’),COLORYELLOW,NODRAW;
DRAWICON(XD,(L * 0.97),26);
STICKLINE(XD,C,O,3,0 ),COLOR00AAFF;
STICKLINE(XD,C,O,2.1,0 ),COLOR00BBFF;
STICKLINE(XD,C,O,1.5,0 ),COLOR00CCFF;
STICKLINE(XD,C,O,1,0 ),COLOR00DDFF;
STICKLINE(XD,C,O,0.6,0 ),COLOR00EEFF;
STICKLINE(XD,C,O,0.2,0 ),COLOR00FFFF;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
平空开多:CROSS(MACD,0),COLORRED,NODRAW;
平多开空:CROSS(0,MACD),COLORGREEN,NODRAW;
SELL_SELLSHORT(平多开空,H);
STICKLINE((C+O)/2>多空平衡点 AND NOTEXT减仓=1,O,C,2.2,0),COLORGREEN;
DRAWTEXT((C+O)/2>多空平衡点 AND NOTEXT减仓=1,H,’ 下坡路’),COLORCYAN,NODRAW;
DRAWICON((C+O)/2>多空平衡点 AND NOTEXT减仓=1,H*1.03,27);
小目标:ASD*1.4,DOTLINE,COLORMAGENTA;
防守:ASD*0.9,DOTLINE,COLORYELLOW;
DRAWRECTREL(920,750,1000,790,RGB(255,0,255)),NOFRAME;
DRAWTEXT_FIX(1,0.94,0.76,0,’★七彩钻石★’),COLORWHITE;
DRAWTEXT_FIX(1,0.94,0.79,0,’ 金:启’),COLOR00CCFF;
DRAWTEXT_FIX(1,0.94,0.82,0,’ 黄:拉’),COLORYELLOW;
DRAWTEXT_FIX(1,0.94,0.85,0,’ 红:吸’),COLORRED;
DRAWTEXT_FIX(1,0.94,0.88,0,’ 紫:T’),COLORFF00FF;
DRAWTEXT_FIX(1,0.94,0.91,0,’ 蓝:洗’),COLORBLUE;
DRAWTEXT_FIX(1,0.94,0.94,0,’ 白:洗完’),COLORWHITE;
DRAWTEXT_FIX(1,0.94,0.97,0,’ 绿:出’),COLORGREEN;
DRAWTEXT_FIX(1,0.85,0.88,0,’ 紫线:小目标’),COLORMAGENTA;
DRAWTEXT_FIX(1,0.85,0.91,0,’ 黄线:防守线’),COLORYELLOW;
DRAWTEXT_FIX(1,0.85,0.94,0,’ 红线:多’),COLORRED;
DRAWTEXT_FIX(1,0.85,0.97,0,’ 绿线:空’),COLORGREEN;
评论(0)