牛熊百彩K线: M30: MA(CLOSE,30); M60: MA(CLOSE,60); AA10:MA(CLOSE,8),COLOR00FF00; AA12:MA(CLOSE,12),COLOR0000FF; VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3); VAR2222:=CROSS(VAR1111,0.9); VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3); VAR4444:=CROSS(VAR3333,0.9); 压力:= REF(HIGH,BARSLAST(VAR2222)); STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222)),2,1),COLOREA91B5,LINETHICK3; 支撑:= REF(LOW,BARSLAST(VAR4444)); STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF(LOW,BARSLAST(VAR4444)),2,1),COLOR00B4FF,LINETHICK3; BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10); BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10); IF((((AA12 <= AA10) AND (BB12 >= 1)) AND (BB10 >= 1)),AA12,DRAWNULL),COLOR0080FF,LINETHICK2; 下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1); KKK:=SMA(RRRSV,3,1); DDD:=((3 * RRRSV) - (2 * KKK)); JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1); K24:=SMA(RSV24,3,1); D24:=((3 * RSV24) - (2 * K24)); 压力2:=IF(CROSS(D24,DDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDD)))),COLORFFFFFF; 压力位:=IF(ISLASTBAR,压力2,DRAWNULL); STICKLINE(ISLASTBAR ,压力位,压力位,120,1),LINETHICK3,COLORFFFFFF; 底部:=LLV(HIGH,30),COLOR00FF00; 底部位:=IF(ISLASTBAR,底部,DRAWNULL); STICKLINE(ISLASTBAR ,底部位,底部位,100,1),LINETHICK3,COLOR00FF00; AA:=IF(C>=REF(C,3),1,0); BB:=IF(C>=REF(C,5),1,0); CC:=IF(C>=REF(C,7),1,0); DD:=IF(C>=REF(C,8),1,0); EE:=IF(C>=REF(C,13),1,0); FF:=IF(C>=REF(C,21),1,0); GZ2:=AA+BB+CC+DD+EE+FF; M5:= EMA(CLOSE,5); M10:= EMA(CLOSE,10); VAR1:=EMA(CLOSE,3)-EMA(CLOSE,6)-(EMA(CLOSE,6)-EMA(CLOSE,12))*(-100); VAR2:=EMA(VAR1,3); VAR5:=CROSS(VAR1,VAR2); VAR6:=CROSS(VAR2,VAR1); 乖离5:=(C-M5)/M5*100; 斜率5:=ATAN((M5/REF(M5,1)-1)*100)*57.29583; 速度5:=SMA(EMA((M5-REF(M5,1))/REF(M5,1),3)*100,3,1); 加速度5:=EMA((速度5-REF(速度5,1)),3); 斜率10:=ATAN((M10/REF(M10,1)-1)*100)*57.29583; 乖离30:=(C-M30)/M30*100; 斜率30:=ATAN((M30/REF(M30,1)-1)*100)*57.29583; 强势狙击:=FILTER(斜率30>30 AND 斜率10>45 AND CROSS(斜率5,60),10); 加仓:=FILTER(COUNT(CROSS(斜率5,30),5)>=1 AND M5>REF(M5,1) AND 乖离30>REF(乖离30,1) AND M10>REF(M10,1) AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ; JC:=CROSS(0,乖离5) AND 乖离30<REF(乖离30,1) AND M10>REF(M10,1) ; 减仓:=FILTER(JC,10); MR:=COUNT(CROSS(乖离5,0),3)>=1 AND 乖离30>REF(乖离30,1) AND M5>REF(M5,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<M30; 买入:=FILTER(MR,10) OR FILTER(KKK=0 AND GZ2>0 AND C>REF(C,1),10); 清仓:=FILTER(COUNT(CROSS(30,斜率5),5)>=1 AND (C>M30 OR O>M30) AND M5<REF(M5,1) AND 乖离30<REF(乖离30,1) AND M10<REF(M10,1),10) OR FILTER((KKK=6 AND GZ2<6),10); DRAWICON(买入 OR 强势狙击 OR 加仓,LOW*0.995,1); DRAWICON(减仓 OR 清仓,HIGH*1.005,2); DRAWKLINE(H,O,L,C); STICKLINE(VAR6,OPEN,CLOSE,2.8,0), COLORBLUE; STICKLINE(VAR5,OPEN,CLOSE,2.8,0), COLORYELLOW; STICKLINE(VAR5,OPEN,CLOSE-(CLOSE-OPEN)*0.33,2.8,0), COLORAACCDD; STICKLINE(VAR5,OPEN,CLOSE-(CLOSE-OPEN)*0.66,2.8,0), COLORRED; GJ:=(C+H+L+O)/4; 明日阻力:=L+(GJ-L)+(C-L),LINETHICK0; 明日支撑:=L+(C-GJ),LINETHICK0; 今日阻力:=REF(明日阻力 , 1),LINETHICK0; 今日支撑:=REF(明日支撑 , 1),LINETHICK0; STICKLINE(ISLASTBAR,今日阻力,今日阻力,10,1),LINETHICK2,COLOR0000FF; STICKLINE(ISLASTBAR,今日支撑,今日支撑,10,1),LINETHICK2,COLOR00FFFF; 股性叠加: 可在K线图上显示股性等各项指标,非常实用 {股性叠加} {K线主图} MA5:MA(CLOSE,5); MA10:MA(CLOSE,10); MA20:MA(CLOSE,20); MA60:MA(CLOSE,60); Z1:=STRCAT(HYBLOCK,' '); Z2:=STRCAT(Z1,DYBLOCK); Z3:=STRCAT(Z2,' '); DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW; P:=1000; 涨停价:=ZTPRICE(REF(CLOSE,1),0.1); 跌停价:=DTPRICE(REF(CLOSE,1),0.1); 开板:=((HIGH>=涨停价) AND (CLOSE<涨停价)); 涨停数:=COUNT((C>=涨停价) AND L!=C,P) NODRAW; 开板数:=COUNT(开板,P) NODRAW; 跌停数:=COUNT(C<=跌停价,P) NODRAW; 封板率:=ROUND((1-(开板数/(涨停数+开板数)))*100); 涨停:=C>=涨停价 AND L!=C; 多连板:=HHV(BARSLAST(NOT(涨停)),P); 股性分数:=ROUND(多连板*3+涨停数*2+开板数-跌停数+封板率); DRAWTEXT_FIX(CLOSE>0,0.100,0.07,0,STRCAT('多连板:',CON2STR(多连板,0)))COLORRED; DRAWTEXT_FIX(CLOSE>0,0.100,0.14,0,STRCAT('涨停数:',CON2STR(涨停数,0)))COLORRED; DRAWTEXT_FIX(CLOSE>0,0.100,0.21,0,STRCAT('开板数:',CON2STR(开板数,0)))COLORRED; DRAWTEXT_FIX(CLOSE>0,0.100,0.28,0,STRCAT('跌停数:',CON2STR(跌停数,0)))COLORRED; DRAWTEXT_FIX(CLOSE>0,0.100,0.35,0,STRCAT(STRCAT('封板率:',CON2STR(封板率,0)),'%'))COLORRED; DRAWTEXT_FIX(CLOSE>0,0.100,0.42,0,STRCAT('股性分:',CON2STR(股性分数,0)))COLORRED; MACD趋势: 指标作用: 柱状上增加了红绿多空信号,关注与原有DIF和DEA线的共振使用 原有MACD参数不变( 顶尖财经 股票学院: http://www.58188.com ) DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),LINETHICK2; DEA:EMA(DIF,MID),LINETHICK2; MACD:(DIF-DEA)*2,COLORSTICK; HA:REF(HHV(MACD,20),1),DOTLINE,COLORRED; LA:REF(LLV(MACD,20),1),DOTLINE,COLORGREEN; MED:EMA(MACD,3),COLORYELLOW; IF(MED>REF(MED,1),MED,DRAWNULL),COLORRED; IF(MED<REF(MED,1),MED,DRAWNULL),COLORGREEN; |