1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
| 周期:=13; 文字位置:=30; N:=9; 乖离24:=(C-MA(C,24))/MA(C,24)*100; 向上:=REF(乖离24,1)<0 AND 乖离24>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(CG<>FS,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(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,DOTLINE,COLORLIGRAY LINETHICK1; VAR6:=((ABS((O-C))/(H-L))*VOL); VAR7:=(((H-IF((C>O),C,O))/(H-L))*VOL); VAR8:=(((IF((C>O),O,C)-L)/(H-L))*VOL); NOTEXT加仓:VAR6>=VAR7 AND VAR6>=VAR8 AND C>O,NODRAW,COLORRED; NOTEXT减仓:VAR6>=VAR7 AND VAR6>=VAR8 AND C<O,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(涨停,O,C,4,0),COLORRED; STICKLINE(涨停,O,C,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(C,12)-EMA(C,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; DRAWTEXT_FIX(C>O,0.01,0.9,0,'SGZBK.TOP'),COLORWHITE; DRAWRECTREL(920,750,1000,790,RGB(255,0,255)),NOFRAME; DRAWTEXT_FIX(1,0.94,0.69,0,'★七彩钻石★'),COLORWHITE; DRAWTEXT_FIX(1,0.94,0.73,0,' 金:启'),COLOR00CCFF; DRAWTEXT_FIX(1,0.94,0.77,0,' 黄:拉'),COLORYELLOW; DRAWTEXT_FIX(1,0.94,0.81,0,' 红:吸'),COLORRED; DRAWTEXT_FIX(1,0.94,0.85,0,' 紫:T'),COLORFF00FF; DRAWTEXT_FIX(1,0.94,0.89,0,' 蓝:洗'),COLORBLUE; DRAWTEXT_FIX(1,0.94,0.93,0,' 白:洗完'),COLORWHITE; DRAWTEXT_FIX(1,0.94,0.98,0,' 绿:出'),COLORGREEN; DRAWTEXT_FIX(1,0.85,0.73,0,' 紫线:小目标'),COLORMAGENTA; DRAWTEXT_FIX(1,0.85,0.77,0,' 黄线:防守线'),COLORYELLOW; DRAWTEXT_FIX(1,0.85,0.81,0,' 红线:多'),COLORRED; DRAWTEXT_FIX(1,0.85,0.85,0,' 绿线:空'),COLORGREEN;
|