2.换10,指的是10天累计换手率,用于研判庄家的强度。大于50为强庄,大于80为较强庄,大于100为超强庄;
A股温度,A股市场涨跌率,大于50为市场多数;
大盘监控,以沪指作为监控目标,以沪指开盘涨幅来研判,当天是做空、还是做多氛围较重一些;
本市大盘涨幅,深市个股显示深证指数涨幅,沪市个股显示沪指涨幅。
3.添加了行业题材显示
指标源码:
{8个综合指标: RSI获利盘综合KDJ}
{左上角不同颜色分别提示字符串: 沪指高开红色/低开绿色}
大盘指数:=("999999$O"-REF("999999$C",1))/REF("999999$C",1)*100,NODRAW;
DRAWTEXT_FIX(ISLASTBAR AND 大盘指数<0,0,0,0,'★今沪指低开,市场做空氛围较重'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND 大盘指数>0,0,0,0,'★今沪指高开,市场做多情绪较大'),COLORRED;
沪涨%:=("999999$C"-REF("999999$C",1))/REF("999999$C",1)*100,COLORMAGENTA,NODRAW;
深涨%:=("399001$C"-REF("399001$C",1))/REF("399001$C",1)*100,COLORWHITE,NODRAW;
本市大盘涨%:IF(CODELIKE('6'),沪涨%,深涨%),COLORWHITE,NODRAW;
字DP:=STRCAT(STRCAT(' ☆本市大盘涨%:',VAR2STR(本市大盘涨%,2)),'%');
DRAWTEXT_FIX(ISLASTBAR,0.2,0,0,字DP),,COLORYELLOW;
DRAWTEXT_FIX(C>0,0,1,0, STRCAT('行业:',HYBLOCK)),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.09,1,0,STRCAT('概念:',GNBLOCK)),COLORCYAN;
获利盘:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),COLOR0000FF,COLORFFCC00,COLORE67010,NODRAW;
LC:=REF(CLOSE,1);
RSI:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLORCC3299,NODRAW;
综合4:=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*100,COLORYELLOW,NODRAW;
综合6:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100,COLORYELLOW,NODRAW;
综合8:=(CLOSE-MA(CLOSE,8))/MA(CLOSE,8)*100,COLORYELLOW,NODRAW;
综合12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100,COLORYELLOW,NODRAW;
综合24:(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,COLORYELLOW,NODRAW;
综合:=IF(综合24=DRAWNULL,综合12,IF(综合12=DRAWNULL,综合8,IF(综合8=DRAWNULL,综合6,
IF(综合6=DRAWNULL,综合4,综合24)))),COLORYELLOW,NODRAW;
{画蓝色背景}
DRAWBAND(50,RGB(0,0,100),RSI,RGB(0,0,0));
{KDJ: 参数9、3、3}
系统RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(系统RSV,3,1),COLORWHITE;
D:=SMA(K,3,1),COLORYELLOW;
J:=3*K-2*D,COLORMAGENTA,NODRAW;
DIF:=(EMA(C,12)-EMA(C,26))*100,NODRAW;
DEA:=EMA(DIF,9),NODRAW;
系统macd:(DIF-DEA)*2,COLORMAGENTA,NODRAW;
LGD:=MAX(DIF,DEA);
系统macdB:=IF(CURRBARSCOUNT<=100,CONST(IF(ISLASTBAR=1,
HHV(LGD,BARSLAST(CURRBARSCOUNT=100)),1)),DRAWNULL);
DIFA:=IF(系统macdB>500,DIF/10,IF(系统macdB>100 AND 系统macdB<200,DIF/2,DIF/5));
DEAA:=IF(系统macdB>500,DEA/10,IF(系统macdB>100 AND 系统macdB<200,DEA/2,DEA/5));
系统macdA:=IF(FINANCE(2)=27,(DIFA-DEAA)/10,(DIFA-DEAA)*2),COLORMAGENTA,NODRAW;
DRAWBAND(J,RGB(139,0,0),D,RGB(0,100,0));
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1)<RSI1 AND CROSS(RSI1,RSI2);
DRAWTEXT(IF(B3>0,1,0),RSI*1.2,'↓RSI底背'),COLORCYAN;
量比:IF(ISLASTBAR,DYNAINFO(17),V/REF(MA(V,5),1)),COLORCYAN,NODRAW;
开%:(O-REF(C,1))/REF(C,1)*100,COLOR6699FF,NODRAW;
高%:(H-REF(C,1))/REF(C,1)*100,COLORMAGENTA,NODRAW;
低%:(L-REF(C,1))/REF(C,1)*100,COLORFFCC00,NODRAW;
换10:SUM(VOL/CAPITAL*100,10),COLORYELLOW,NODRAW;
涨价数:="999999$ADVANCE"+"399001$ADVANCE"; 总跌家:="999999$DECLINE"+"399001$DECLINE";
A股温度:涨价数/(涨价数+总跌家)*100,COLORGREEN,DOTLINE;
综合低距今:BARSLAST(综合24=LLV(综合24,10)),COLORYELLOW,NODRAW;
获利盘低距今:BARSLAST(获利盘=LLV(获利盘,10)),COLOR0000FF,NODRAW;
RSI低距今:BARSLAST(RSI=LLV(RSI,10)),COLORCC3299,NODRAW;
综合A:=IF(综合>0,综合*2,IF(综合<0,综合*2,综合)),COLORYELLOW;
STICKLINE(C>O,0,RSI,3,1),COLORRED;
STICKLINE(C<=O,0,RSI,3,1),COLORGREEN,COLOR008800;
STICKLINE(C>O,0,获利盘,1.2,0),COLOR0000FF,COLOR000088;
STICKLINE(C<=O,0,获利盘,1.2,0),COLOR004000,COLORLICYAN;
STICKLINE(系统macdA,0,系统macdA,1.6,0),COLORFF7700;{0轴线下系统macd天蓝};
STICKLINE(综合>0,0,综合A,0.6,0),COLOR000088,COLORCC3299;
STICKLINE(综合<0,0,综合A,0.8.0,0),COLOR004000,COLORBLUE;
B:RSI,COLORLIGRAY,COLORGREEN,COLORLIGREEN;
A1:获利盘,COLOR0000FF,COLORE67010;
AB:综合A,COLORYELLOW,COLOR6699FF,DOTLINE;
A股温度,COLORGREEN,DOTLINE;
K,COLORWHITE; D,COLORYELLOW; J,COLORMAGENTA,LINETHICK2; J,COLORWHITE,DOTLINE;
DD:=IF(CURRBARSCOUNT<=200,CONST(IF(ISLASTBAR=1,
HHV(换10,BARSLAST(CURRBARSCOUNT=120)),1)),DRAWNULL),COLORBROWN,DOTLINE;
DDB:=100/DD,COLOR0000FF,NODRAW;
换10_:IF(DDB>0,换10*DDB,IF(DDB>3,换10*DDB*0.6,IF(DDB<0,换10/DDB,DRAWNULL))),COLORYELLOW;
换10_,COLORFF6600,LINETHICK2; 换10_,COLORWHITE;
DRAWTEXT(ISLASTBAR=1,综合A,' 综合24'),COLORYELLOW,COLOR6699FF;
DRAWTEXT(ISLASTBAR=1,获利盘,' 获利盘'),COLOR0000FF,COLORE67010;
DRAWTEXT(ISLASTBAR=1,RSI,' RSI'),COLORCC3299;
DRAWTEXT(ISLASTBAR=1,J,' KDJ'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR=1,A股温度,'A股温度'),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,系统macdA,' 系统macd'),COLORFFCC00;
{DRAWTEXT(ISLASTBAR=1,换10_,' 换10'),COLORYELLOW;}
DRAWTEXT(ISLASTBAR,换10_,STRCAT(STRCAT(VAR2STR(换10,0),''),'换10')),COLORYELLOW;