绝密大盘风控指标····彩色满仓灰色空仓
TJ:=ISLASTBAR AND C<500;
LTB:=FINANCE(7)*100/FINANCE(1);
ZGB:=FINANCE(1)/100000000;
定向增发:=LTB<REF(LTB,1)*0.95 AND ZGB>REF(ZGB,1),NODRAW,COLORWHITE;
回购:=ZGB<REF(ZGB,1)*0.95 AND LTB>REF(LTB,1),NODRAW,COLORWHITE;
大小非:=LTB>REF(LTB,1)*1.05 AND ZGB=REF(ZGB,1),NODRAW,COLORWHITE;
公开发行:=LTB>REF(LTB,1)*1.05 AND ZGB>REF(ZGB,1),NODRAW,COLORWHITE;
变数:=定向增发 OR 回购 OR 大小非 OR 公开发行,NODRAW,COLORWHITE;
DRAWTEXT(定向增发,L*0.990,'定向增发'),COLORMAGENTA;
DRAWTEXT(回购,L*0.990,'回购'),COLORGREEN;
DRAWTEXT(大小非,L*0.990,'大小非'),COLORMAGENTA;
DRAWTEXT(公开发行,L*0.990,'公开发行'),COLORMAGENTA;
所属板块:=STRCAT('所属板块:',STRCAT(STRCAT(STRCAT(' 【行业】:',HYBLOCK),STRCAT(' 【地域】:',DYBLOCK)),STRCAT(' 【概念】:',GNBLOCK)));
风格板块:=STRCAT('【风格】:',FGBLOCK);
DRAWTEXT_FIX(TJ,0.005,0.00,0,所属板块);
DRAWTEXT_FIX(TJ,0.067,0.12,0,风格板块),COLORGREEN;
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
通线:MA(CLOSE,17),COLORFF00FF;
子线:MA(CLOSE,26);
MA51:MA(CLOSE,51);
MA117:MA(CLOSE,117),COLORBLUE,LINETHICK2;
X_4:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_5:=EMA(X_4,9);
X_6:=(X_4-X_5)*2;
{DRAWTEXT_FIX(1,0.004,0.002,0,'【大盘个股风控指标】 K线灰色空仓,彩色加仓持仓;"小心"减仓,"破位"清仓,找重要支撑线做短线,次新看60分钟'),COLORRED;}
{MACD 12 26 9}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;
{MACD};
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;
NGH:=(CLOSE<SAR(4,2,20) OR X_6<0 OR MA5<MA10);
STICKLINE(NGH,O,C,3,0),COLOR808080;
STICKLINE(NGH,L,H,0,0),COLOR808080;
STICKLINE(NGH=0 AND C>O,O,C,2,0),COLORRED;
STICKLINE(NGH=0 AND C>O,L,H,0,0),COLORRED;
STICKLINE(NGH=0 AND C<O,O,C,2,0),COLORGREEN;
STICKLINE(NGH=0 AND C<O,L,H,0,0),COLORGREEN;
STICKLINE(NGH=0 AND C=O,O,C,2,0),COLORWHITE;
STICKLINE(NGH=0 AND C=O,L,H,0,0),COLORWHITE;
IF(NGH,MA5,DRAWNULL),COLOR353535,LINETHICK1;
IF(NGH,MA10,DRAWNULL),COLOR353535,LINETHICK1;
DRAWICON(REF(NGH,1)=0 AND J>100 AND REF(COUNT(J>100,3),1)=0,H*1.05,2);
DRAWTEXT(REF(NGH,1)=0 AND J>100 AND REF(COUNT(J>100,3),1)=0,H*1.05,'小'),COLORYELLOW;
DRAWTEXT(REF(NGH,1)=0 AND J>100 AND REF(COUNT(J>100,3),1)=0,H*1.02,'心'),COLORYELLOW;
DRAWICON(REF(NGH,1)=0 AND CROSS(MA10,C),H*1.1,8);
VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
趋势:=SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1);
趋势1:=IF(VAR6>45,VAR6-45,0),COLOR00FFFF;
MD:=(趋势>趋势1 AND CROSS(趋势1,85)) OR (趋势>趋势1 AND CROSS(趋势,90)) OR (REF(趋势<趋势1,1) AND CROSS(趋势1,79)) ;
DRAWICON(C>O AND MD,H*1.02,6);DYBP:=0;
YTDG:=NGH=0 AND DYBP;
YTDG1:=REF(COUNT(YTDG,2),1)=0 AND YTDG;
DRAWICON(YTDG1,L,41);
DRAWTEXT(YTDG1,L*0.97,'买'),COLORYELLOW;