新短线无敌: 本公式是做短线,做中线,都非常不错的必备指标 JRH:=HHV(C,2); JRL:=LLV(C,2); MA3:=MA(CLOSE,3); YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6; VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2)); VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2)); VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1); VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD); 红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW; 离场:=IF(红色持股,JRL,DRAWNULL); 明离场价:=离场,COLORFF99FF,NODRAW; 今离场价:REF(离场,1)COLOR0000FF,NODRAW; 青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW; 进:=IF(青色观望,JRH,DRAWNULL); 明进场价:=进,COLOR33AACC,NODRAW; 今进场价:REF(明进场价,1),COLORFF0000,NODRAW; 短买:VAR19,COLOR33AACC,NODRAW; 品红离场:VAR1A,COLORFF99FF,NODRAW; 急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW; 上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF; 月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF; 日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF; 辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLOR0000FF; 牵牛线:MA(CLOSE,26),COLORFF00FF; 等待:=IF(MA3>辰星线,辰星线,MA3); IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF; IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF; IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00; IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF; IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933; STICKLINE(ISLASTBAR AND (红色持股 OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF; STICKLINE(ISLASTBAR AND (青色观望 OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00; STICKLINE(C>=O,L,H,0,0),COLOR0000CC; STICKLINE(C<O,L,H,0,0),COLOR999900; STICKLINE(1,C,O,3.5,0),COLOR858500; STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5; STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055; STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088; STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA; STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC; STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE; STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500; STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800; STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00; STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00; STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00; CO:=(C-O); STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555; STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888; STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA; STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC; STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE; STICKLINE(短买,O,O+CO/3,2.8,0),COLOR335555; STICKLINE(短买,O,O+CO/3,2,0),COLOR338888; STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA; STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC; STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE; DRAWTEXT(短买,REF(CLOSE,1),'←短买'),COLOR33FFCC; STICKLINE(品红离场,O,O+CO/3,2.8,0),COLOR550055; STICKLINE(品红离场,O,O+CO/3,2,0),COLOR880088; STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA; STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC; STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE; DRAWTEXT(品红离场,REF(CLOSE,1)+0.1,'←离场'),COLORFF99FF; 分时攻击力度: 极好的分时副图( 顶尖财经 股票学院: http://www.58188.com ) 昨收:=DYNAINFO(3); HH:=DYNAINFO(5); LL:=DYNAINFO(6); FK:=MAX(HH-昨收,昨收-LL)*0.1; ZS:=昨收-FK*3.2; Q1:=昨收-FK*3.22; Q2:=昨收-1*FK*3.22; Q3:=昨收-5*FK*3.2; TJ:=FILTER(C,239)>0,NODRAW; TJJ:=SUM(TJ,0),NODRAW; TJA:=CONST(TJJ),NODRAW; 流通盘:CAPITAL*100/100000000,NODRAW; 资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED; 资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00; 资金出入:=资金流入+资金流出,COLORSTICK; NN:=2400; HD:=HHV(资金出入,NN); LD:=LLV(资金出入,NN); 最高:=CONST(HD),NODRAW; 最低:=CONST(LD),NODRAW; HLMAX:=最高; HLMIN:=最低; HLMN1:=(HLMAX+HLMIN)/2; HLMN2:=HLMAX-HLMIN; HLMN3:=(100-0)/2*1.3; HLMN4:=(100-0)/1*1.3; 中间价轴:=(50-HLMN3)*HLMN2/HLMN4+HLMN1; 轴差:=最高-最低; DRAWBAND(资金出入,RGB(150,0,150),0,RGB(0,100,0)); 资金流量:资金出入,COLORFFFFFF,LINETHICK1; 资金比:资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1; 资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2)); 攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN; 攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0; 攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0; 攻击流量:攻击量A+攻击量B,COLORSTICK; NOTEXT攻击线:攻击流量,COLORYELLOW,LINETHICK1; 攻击比:攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1; 资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50))); {STICKLINE(资金流量A>0,资金流量A,0,1,0),COLOR0000FF; STICKLINE(资金流量B<0,资金流量B,0,1,0),COLORFF0000;} DRAWRECTREL(110,10,400,90,RGB(0,75,200)); DRAWRECTREL(110,10,250,90,RGB(0,250,50)); DRAWRECTREL(110,10,100+CONST(资金流量比*300/100),90,RGB(200,50,0)); DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORYELLOW; DRAWRECTREL(610,10,900,90,RGB(0,75,200)); DRAWRECTREL(610,10,750,90,RGB(0,250,50)); DRAWRECTREL(610,10,600+CONST(资金攻击度*300/100),90,RGB(175,50,0)); DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORYELLOW; 量:=VOL,VOLSTICK; 五日量:=MA(量,5),COLORWHITE; TT:=BARSCOUNT(C);{取得有效收盘价} 均价黄:=SUM(C*V,TT)/SUM(V,TT);{分时均线的取值} 量两步:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2); 价两步:= C>=REF(C,1) AND REF(C,1)>REF(C,2); 价上岗量破5:=C>均价黄 AND V>MA(V,5); 量起爆:=V>=REF(V,1)*1; 价创新高:=C>=HHV(C,0); 量创新高:=V>=HHV(V,0); 对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=1.50;{涨幅控制2个点以内} 每日一点:=量两步 AND 价两步 AND 价上岗量破5 AND 量起爆 AND 价创新高 AND 量创新高 AND 对昨日涨幅; {计算收益、已爆分钟} VV:=BARSSINCE(每日一点)+1; 首次起爆价:=REF(C,VV-1),NODRAW; 起爆收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW; 起爆时间:=REF(TIME/10000,VV),NODRAW; 已爆分钟:=VV-1,NODRAW; {画出底线和红球} 首次起爆量:=REF(VOL,VV-1); DRAWICON(已爆分钟>=2,最低,8);{出现8,至少已经确认2分钟了}; MMA30:=EMA(CLOSE,30); 强弱界定:=IF(PERIOD=0 ,EMA(CLOSE,900),DRAWNULL); 分时均价线:=SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2; BGTYU:=IF(DATE<=1150530,1,0); GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95); VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU))))); 二十☆:=EXPMA((DCLOSE/VBNH),20),COLORRED,LINETHICK1; 六十★:=EXPMA((DCLOSE/VBNH),60),COLORLIGREEN,LINETHICK1; FAA:=BARSLAST(TIME=100000); FCC:=REF(HHV(C,0),FAA+1); FVV:=REF(HHV(V,0),FAA+1); ZF:=FCC/DYNAINFO(3)<1.05; XG1:=CROSS(C,FCC) AND V>FVV AND ZF,COLORWHITE; FAA1:=BARSLAST(TIME=110000); FCC1:=REF(HHV(C,0),FAA1+1); FVV1:=REF(HHV(V,0),FAA1+1); ZF1:=FCC1/DYNAINFO(3)<1.05; XG2:=CROSS(C,FCC1) AND V>FVV1 AND ZF1,COLORYELLOW; 突破:=XG1 OR XG2,COLORRED; VT:=BARSSINCE(突破)+1; 首次突破价:=REF(C,VT-1),NODRAW; 突破收益:(DYNAINFO(7)-首次突破价)/首次突破价*100,NODRAW; 拉升量:=IF(C>REF(C,1),VOL,0); 昨拉升最高值:=CONST(FINDHIGH(拉升量,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA; 今拉升最高值:=CONST(REF(HHV(拉升量,FROMOPEN),0)),COLORYELLOW,NODRAW; 攻击力度:=今拉升最高值/昨拉升最高值,NODRAW; STICKLINE(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,最低,1,0),COLORCYAN; STICKLINE(每日一点,最低+轴差*0.65,最低,1,0),COLORMAGENTA; STICKLINE(突破,最低+轴差*0.50,最低,1,0),COLORWHITE; STICKLINE(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),最低+轴差*0.35,最低,1,0),COLORYELLOW; STICKLINE(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低,最低+轴差*0.2,1,0),COLORGREEN; DRAWICON(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,1); DRAWICON(每日一点,最低+轴差*0.65,1); DRAWICON(突破,最低+轴差*0.50,17); DRAWICON(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,9); DRAWTEXT(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.80,'☆攻击'),COLORCYAN; DRAWTEXT(每日一点,最低+轴差*0.65,'∠起爆'),COLORGREEN; DRAWNUMBER(每日一点,最低+轴差*0.55,首次起爆价),COLORGREEN; {DRAWTEXT(CURRBARSCOUNT=160,HHV(V,60)*0.9,'20线上行+日价K线突破+日K线量起爆更好+估换手小于10%时更稳定'),COLORGREEN;}; DRAWTEXT(突破,最低+轴差*0.50,'分时突破'),COLORWHITE; DRAWNUMBER(突破,最低+轴差*0.40,首次突破价),COLORWHITE; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),最低+轴差*0.35,'★迹'),COLORYELLOW; {DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.01),MAX(资金流量,攻击流量),18);} DRAWTEXT(FILTER(BARSLAST(C<MIN(MMA30,强弱界定))<=20 AND CROSS(C,MAX(MMA30,强弱界定)),30),最低+轴差*0.2,'关注'),COLORRED; 回踩25日均线: MA5:=MA(C,5); MA10:=MA(C,10); MA25:=MA(C,25); MA60:=MA(C,60); MA120:=MA(C,120); AA:=MA5<MA10 OR MA5>MA10 AND MA10>MA25 AND MA25>MA60 AND MA60>MA120; BB:=COUNT(REF(C,1)>MA25,5)>=5; CC:=L<=MA25 AND C>=MA25; AA AND MA(C,25)>REF(MA(C,25),1) AND BB AND CC AND V<MA(V,10)*0.7 AND ABS((C-O)*100/C)<1 AND V/REF(V,1)<1; |