1、超级量能 {超级量能} DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1,2,1); SAT:=(AMOUNT/C)/(HHV(AMOUNT,180)/HHV(C,180)); 量能饱和度:=IF(SAT>1,1,SAT)*100+50,,COLORYELLOW,LINETHICK2; 量能:=EMA(量能饱和度,3),COLORYELLOW,LINETHICK2; 量能正负:=量能-90; W1:STICKLINE(量能正负>0,量能正负,0,3,1),COLORRED; W2:STICKLINE(量能正负<0,量能正负,0,3,1),COLORCYAN; VA1:=HHVBARS(量能正负,BARSLAST(量能正负<0)+1); VA2:=CROSS(BACKSET(CROSS(0,量能正负),REF(VA1,1)+2),0.5); QG:=CROSS(BACKSET(CROSS(0,量能正负) OR (ISLASTBAR AND 量能正负>0),REF(VA1,1)+2),0.5); 前高:DRAWLINE(VA2,量能正负,REF(VA2,1),REF(量能正负,1),1),COLORMAGENTA; VA3:=LLVBARS(量能正负,BARSLAST(量能正负>0)+1); VA4:=CROSS(BACKSET(CROSS(量能正负,0),REF(VA3,1)+2),0.5); BD:=BARSLAST(FILTERX(CROSS(0,量能正负),BARSCOUNT(C))); 前低:DRAWLINE(VA4,量能正负,REF(VA4,1),REF(量能正负,1),1); BDTJ:=IF(量能正负<0,FILTERX(量能正负=LLV(量能正负,BARSLAST(量能正负>0)), BARSCOUNT(C)),DRAWNULL); TSBDTJ:=BARSLAST(BDTJ); BDZH:=FILTERX(量能正负<CONST(LLV(量能正负,BD+1)),BARSCOUNT(C)); BDTS:=BARSLAST(BDZH); 本低:IF(BD+1>=1,CONST(LLV(量能正负,BD+1)),DRAWNULL); BDCL:=CROSS(COUNT(CROSS(量能正负>本低/2 AND 量能正负<0,0.5),TSBDTJ)=1,0.5) AND TSBDTJ>=0; 终点:=IF(ISLASTBAR AND 量能正负>0 AND 量能正负=HHV(量能正负,BARSLAST(量能正负<0)),1, IF(FILTERX(QG,BARSCOUNT(C)),2,DRAWNULL)); UU:=(终点=1 OR 终点=2) AND 量能正负>0; ZZ:=FILTERX(UU,BARSCOUNT(C)); 本高:DRAWLINE(ZZ,量能正负,REF(ZZ,1),REF(量能正负,1),1),COLORWHITE; 横线:=CONST(REF(量能正负,BARSLAST(ZZ))); WW:=量能正负>横线; 起始点:=FILTERX(REFX(BARSLAST(WW),1)=1,BARSCOUNT(C)); 天数:=BARSLAST(起始点),COLORYELLOW,NODRAW; 上横线:=DRAWLINE(起始点,横线,ZZ,横线,0),COLORGREEN,DOTLINE; 下横线:=DRAWLINE(BDZH,CONST(LLV(量能正负,BD+1)),BDTJ=1,量能正负,0),COLOR8080FF,DOTLINE; DRAWNUMBER(BDTJ,CONST(LLV(量能正负,BD+1))*0.9,BDTS); DRAWNUMBER(ZZ,上横线*1.1,天数); TJ:=IF(起始点,BARSNEXT(ZZ),DRAWNULL); 红柱数量:=IF(天数>0 AND 天数<=REF(TJ,天数),SUM(量能>0,天数),DRAWNULL),COLORWHITE,NODRAW; 横线起始价:=REF(C,天数),NODRAW; 空间评估:=(横线起始价-C)/C*100,NODRAW; TT:=BARSLAST(ZZ); WQG:=CROSS(COUNT(CROSS(量能正负<本高/2 AND 量能正负>0,0.5),ZZ)=1,0.5) AND ZZ>=0; STICKLINE(量能正负>前高 AND 本高>前高 AND BARSLAST(CROSS(量能正负<本高/2,0.5))>0 AND 量能正负>(前高+本高)/2,量能正负,前高,1,0),COLORYELLOW; 前高本高二分位:IF(量能正负>0 AND 本高!=前高,DRAWLINE(WQG,(前高+本高)/2,REF(WQG,1),REF((前高+本高)/2,1),1) ,DRAWNULL),COLORC0C000,DOTLINE; AA:=STRCAT(STRCAT(STRCAT('〖','上升空间'),'〗'),CON2STR(IF(空间评估,空间评估, DRAWNULL),2)); DRAWTEXT(WQG,量能正负*1.1,'本高成立'),COLORWHITE; DRAWTEXT(BDCL,量能正负*1.1,'本低成立'),COLORWHITE; STICKLINE(量能正负>前高,量能正负,前高,1,0),COLORYELLOW; STICKLINE(WQG,量能正负,0,1,0),COLORGREEN; STICKLINE(量能正负<0 AND 量能正负<前低 AND 前低<0,量能正负,前低,1,0),COLORBLUE; B1:=IF(CROSS(量能正负<0,0.5),BARSNEXT(BDTJ),DRAWNULL); TSB1:=BARSLAST(量能正负>0)-1; STICKLINE(BARSLAST(BDCL)>=0 AND 量能正负<前低 AND 量能正负<0,量能正负,前低,1,0),COLORGREEN; STICKLINE(BDCL,量能正负,0,1,0),COLORWHITE; STICKLINE(量能正负>前高 AND 本高>前高 AND BARSLAST(WQG)>0, 量能正负,前高,1,0),COLORRED; DRAWTEXT(VA2 AND VA2!=UU,(量能正负/10)*9,'前'); DRAWTEXT(VA2 AND VA2!=UU,量能正负/10,'高'); DRAWTEXT(ZZ,(量能正负/10)*9,'本'),COLORWHITE; DRAWTEXT(ZZ,量能正负/10,'高'),COLORWHITE; DRAWTEXT(BDTJ,(量能正负/10)*9,'低'),COLORRED; DRAWTEXT(BDTJ,量能正负/10,'本'),COLORRED; IF(BARSLAST(BDCL)>=0,本低/2,DRAWNULL),COLORRED,DOTLINE; DRAWICON(CROSS(量能正负,0),0,9); {DRAWTEXT_FIX(1,0.05,0.04,0,'【黑马拉升由两个阶段构成:同步上涨阶段(黄芯柱) 和惯性上涨阶段(背离阶段、红芯柱)】'),COLORFFFF00;}; 2、超级大黑马 {超级大黑马} VAR0:=6; VAR1:=80; VAR2:=REF(CLOSE,1); VAR3:=((SMA(MAX((CLOSE - VAR2),0),18,1) / SMA(ABS((CLOSE - VAR2)),13,1)) * 100); VAR4:=((SMA(MAX((CLOSE - VAR2),0),24,1) / SMA(ABS((CLOSE - VAR2)),20,1)) * 100); VAR5:=((BARSLAST((VAR4 < 48)) <= 3) AND CROSS(VAR3,VAR4)); VAR6:=((((CLOSE - MA(CLOSE,48)) / MA(CLOSE,20)) * 100) < -12.5); VAR7:=LLV(LOW,5); VAR8:=HHV(HIGH,10); VAR9:=EMA((((CLOSE - VAR7) / (VAR8 - VAR7)) * 100),4); VAR10:=EMA(((0.667 * REF(VAR9,1)) + (0.333 * VAR9)),2); {VAR11:=1011131; VAR12:=(IF((1 <= VAR11),VAR6,0) OR IF((1 <= VAR11),VAR1,0));} VAR13:=REF(CLOSE,1); VAR14:=((SMA(MAX((CLOSE - VAR13),0),7,1) / SMA(ABS((CLOSE - VAR13)),7,1)) * 100); VAR15:=((SMA(MAX((CLOSE - VAR13),0),13,1) / SMA(ABS((CLOSE - VAR13)),13,1)) * 100); VAR16:=((BARSLAST((VAR15 < 43)) <= 3) AND CROSS(VAR14,VAR15)); VAR17:=((((CLOSE - MA(CLOSE,43)) / MA(CLOSE,20)) * 100) < -12.5); VAR18:=LLV(LOW,5); VAR19:=HHV(HIGH,10); VAR20:=EMA((((CLOSE - VAR18) / (VAR19 - VAR18)) * 100),4); VAR21:=EMA(((0.667 * REF(VAR20,1)) + (0.333 * VAR20)),2); {VAR22:=1011131; VAR23:=(IF((1 <= VAR22),VAR17,0) OR IF((1 <= VAR22),VAR1,0));} VAR24:=((((0 - (-1 * VAR16)) AND VAR17) AND CROSS(VAR20,VAR21)) AND (VAR20 <= 25)); VAR25:=REF(CLOSE,1); VAR26:=((SMA(MAX((CLOSE - VAR25),0),7,1) / SMA(ABS((CLOSE - VAR25)),7,1)) * 100); VAR27:=((SMA(MAX((CLOSE - VAR25),0),13,1) / SMA(ABS((CLOSE - VAR25)),13,1)) * 100); VAR28:=((BARSLAST((VAR27 < 33)) <= 3) AND CROSS(VAR26,VAR27)); VAR29:=((((CLOSE - MA(CLOSE,33)) / MA(CLOSE,20)) * 100) < -12.5); VAR30:=LLV(LOW,5); VAR31:=HHV(HIGH,10); VAR32:=EMA((((CLOSE - VAR30) / (VAR31 - VAR30)) * 100),4); VAR33:=EMA(((0.667 * REF(VAR32,1)) + (0.333 * VAR32)),2); {VAR34:=1011131; VAR35:=(IF((1 <= VAR34),VAR29,0) OR IF((1 <= VAR34),VAR1,0));} 大黑马:((((0 - (-1 * VAR28)) AND VAR29) AND CROSS(VAR32,VAR33)) AND (VAR32 <= 25)),COLOR80FF00; STICKLINE(大黑马,0,3,3,0),COLOR80FF00; STICKLINE(大黑马,0,3,1.5,0),COLOR80FF00; STICKLINE(大黑马,0,3,0.8,0),COLOR80FF00; STICKLINE(大黑马,0,3,0.1,0),COLOR80FF00; VAR41:=REF(CLOSE,1); VAR42:=((SMA(MAX((CLOSE - VAR41),0),7,1) / SMA(ABS((CLOSE - VAR41)),7,1)) * 100); VAR43:=((SMA(MAX((CLOSE - VAR41),0),13,1) / SMA(ABS((CLOSE - VAR41)),13,1)) * 100); VAR44:=((BARSLAST((VAR43 < 23)) <= 3) AND CROSS(VAR42,VAR43)); VAR45:=((((CLOSE - MA(CLOSE,23)) / MA(CLOSE,20)) * 100) < -12.5); VAR46:=LLV(LOW,5); VAR47:=HHV(HIGH,10); VAR48:=EMA((((CLOSE - VAR46) / (VAR47 - VAR46)) * 100),4); VAR49:=EMA(((0.667 * REF(VAR48,1)) + (0.333 * VAR48)),2); 超级大黑马:((((0 - (-1 * VAR44)) AND VAR45) AND CROSS(VAR48,VAR49)) AND (VAR48 <= 25)),COLORRED; STICKLINE(超级大黑马,0,3,3,0),COLORRED; {股民学院 www.58188.com 整理} 3、吴剑量能,量能指标 倍量柱 {吴剑量能} VOLUME:VOL,VOLSTICK; 降:COUNT(CLOSE>REF(CLOSE,1),2)=2 AND COUNT(VOL<REF(VOL,1),2)=2; T:=DYNAINFO(8)>0; VO:VOL=LLV(VOL,100) AND T; 地量柱:T AND VO,COLORMAGENTA; STICKLINE(地量柱,0,V,3,0),COLORMAGENTA; DRAWTEXT(地量柱,VOL+3000,'地'),COLORMAGENTA; BLZ:=VOL>REF(V,1)*1.9; BLZ1:=VOL<REF(LLV(VOL,13),1); BLZ2:=VOL<REF(LLV(VOL,55),1); STICKLINE(BLZ,0,V,1,0),COLORYELLOW; 倍量柱:BLZ,COLORYELLOW; STICKLINE(倍量柱,0,V,3,0),COLORYELLOW; DRAWTEXT(倍量柱,VOL+3000,'倍'),COLORYELLOW; HJZ:=(3*C+H+L+O)/6; HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36; HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O; 生命线:FILTER(HJZ3,5),STICK,COLORRED; STICKLINE(生命线,0,V,3,0),COLORRED; DRAWTEXT(生命线,VOL+10000,' '),COLORRED; 倍缩量:VOL/REF(VOL,1)<0.5,COLORBLUE; STICKLINE(倍缩量,0,V,3,0),COLORBLUE; {股民学院 www.58188.com 整理} |