主图指标
X_1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
B:(20*X_1+19*REF(X_1,1)+18*REF(X_1,2)+17*REF(X_1,3)+16*REF(X_1,4)+15*REF(X_1,5)+14*REF(X_1,6)+13*REF(X_1,7)+12*REF(X_1,8)+11*REF(X_1,9)+10*REF(X_1,10)+9*REF(X_1,11)+8*REF(X_1,12)+7*REF(X_1,13)+6*REF(X_1,14)+5*REF(X_1,15)+4*REF(X_1,16)+3*REF(X_1,17)+2*REF(X_1,18)+REF(X_1,20))/210,LINETHICK3;
D:MA(B,15),LINETHICK3;
DRAWBAND(B,RGB(200,0,0),D,RGB(0,200,0));
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
板块类别:=STRCAT(STRCAT(STRCAT(STRCAT(DYBLOCK,HYBLOCK),FGBLOCK),ZHBLOCK),GNBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,板块类别),COLORWHITE;
多空王:B>=D AND LOW<B AND CLOSE>B AND CLOSE>OPEN AND CLOSE/REF(CLOSE,1)>=1.05 AND VOL>REF(VOL,1)*1.5,COLORWHITE,NODRAW;
副图1 新版六彩神龙
A01:=(C+O+L+H)/4;
A02:=(WINNER((A01 *(1+K1/1000))) * 100.000);
A03:=(WINNER((A01 * (1-K2/1000))) * 100.000);
A04:=A03,NODRAW;
获利筹码:A04,NODRAW;
A08:=A02-A03,NODRAW;
浮筹:A08,NODRAW;
A06:=( 100.000 - A02),NODRAW;
套牢筹码:A06,NODRAW;
STICKLINE( 1.000,0,A04, 2,0),COLORRED;
STICKLINE( 1.000, 100.000,A02, 2,0),COLORGREEN;
STICKLINE( 1.000,A04,(100-A06), 2,0),COLORYELLOW;
A0A:=(((((HHV(A04, 15.000) - A03) / A03) * 100.000) > N) AND (HHV(A04, 15.000) > 50.000));
STICKLINE(A0A,(0 - 2.000), 2.000, 4,1),COLORYELLOW;
STICKLINE(NOT(A0A),(0 - 2.000), 2.000, 4,1),COLORMAGENTA;
MA1:MA(A03,M),COLORBLUE,LINETHICK1;
MA2: (MA(A02,M) - MA(A03,M)),COLORFFFFFF,LINETHICK1;
MA3: (100.000 - MA(A02,M)),COLORGREEN,LINETHICK1;
DRAWICON((MA1>AN AND CROSS(A04,AN)),MA1*0.95,11);
DRAWICON((A04>AN AND CROSS(MA1,AN)),MA1*0.90,11);
背离王副图
A1:=FORCAST(EMA(CLOSE,5),6);
A2:=FORCAST(EMA(CLOSE,8),6);
A3:=FORCAST(EMA(CLOSE,11),6);
A4:=FORCAST(EMA(CLOSE,14),6);
A5:=FORCAST(EMA(CLOSE,17),6);
B:=A1+A2+A3+A4-4*A5;
TOWERC:=EMA(B,2);
FORCAST(EMA(B,3),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,4),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,5),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,6),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,7),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,8),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,9),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,10),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,11),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,12),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,13),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,14),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,15),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,16),6),POINTDOT,COLORGREEN;
FORCAST(EMA(B,17),6),POINTDOT,COLORGREEN;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),3,0),COLORRED;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),3,0),COLORGREEN;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),3,0),COLORRED;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),3,0),COLORRED;
STICKLINE(TOWERC>=REF(TOWERC,1),TOWERC,REF(TOWERC,1),0,0),COLORRED;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),3,0),COLORGREEN;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),3,0),COLORGREEN;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),2,0),COLORGREEN;
STICKLINE(TOWERC<REF(TOWERC,1),TOWERC,REF(TOWERC,1),0,0),COLORGREEN;
0,POINTDOT;
神龙妖底副图
A1:=((MA(C,60)-L)/MA(C,20))*200;
B1:=((MA(C,60)-L)/MA(C,60))*200;
C1:=((MA(C,30)-L)/MA(C,60))*200;
M1:=REF(CLOSE,1);
M2:=SMA(MAX(CLOSE-M1,0),7,1)/SMA(ABS(CLOSE-M1),7,1)*100;
G1:=FILTER(REF(M2,1)< 20 AND M2> REF(M2,1),5);
TU:=C/MA(C,40)< 0.74;
PER1:=5;
MMA:=EMA(C,PER1);
SMMA:=EMA(MMA,PER1);
IMPETMMA:=MMA - REF(MMA,1);
IMPETSMMA:=SMMA - REF(SMMA,1);
DIVMA:= ABS(MMA - SMMA);
TDJ:=(H-L)/REF(C,1)> 0.05;
AVERIMPET:= (IMPETMMA+IMPETSMMA)/2;
TDF:= POW(DIVMA,1)*POW(AVERIMPET,3);
NTDF:=TDF/HHV(ABS(TDF),PER1*3);
YUL:=COUNT(TDJ,5)> 1;
启动:=TU AND TDJ AND YUL;
确定:=CROSS(NTDF,-0.9);
波段:=FILTER((G1 AND C1> 20 OR C> REF(C,1)) AND REF(启动,1),10);
选股:=FILTER(REF(启动,1) AND (确定 OR C> REF(C,1)) AND "MACD.MACD"> -1.5,10);
神龙妖底:COUNT(选股,13)>= 1 AND 波段,LINETHICK2,COLORGRAY;
STICKLINE(神龙妖底> 0.1,0,0.19,4.8,0),COLORWHITE;
STICKLINE(神龙妖底> 0.1,0,0.19,4.8,0),COLORYELLOW;
STICKLINE(神龙妖底> 0.1,0,0.16,5,1),COLORYELLOW;
STICKLINE(神龙妖底> 0.1,0.16,0.6,4,1),COLORBLUE;
STICKLINE(神龙妖底> 0.1,0,0.1,7,0),COLORBROWN;
STICKLINE(神龙妖底> 0.1,0,0.05,8,0),COLORRED;
STICKLINE(神龙妖底> 0.1,0.6,0.985,0.1,0);
STICKLINE(神龙妖底> 0.1,0.985,0.989,0,0);
DRAWTEXT(神龙妖底> 0.1,0.5,'升龙在天妖底'),COLORYELLOW;
DRAWICON(神龙妖底> 0.1,0.56,34),COLORRED;
DRAWICON(神龙妖底> 0.1,0.41,31),COLORRED;
DRAWTEXT(神龙妖底> 0.1,0.346,'稳健关注'),COLORRED;
DRAWTEXT(神龙妖底> 0.1,0.216,'急进买入'),COLORRED;
DRAWICON(神龙妖底> 0.1,0.267,38),COLORRED;
副图4
VAR1:=(CLOSE+HIGH+LOW+OPEN)/4;
VAR2:=SUMBARS(VOL,CAPITAL);
VAR3:=HHV(VAR1,VAR2);
VAR4:=LLV(VAR1,VAR2);
VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);
VAR6:=(VAR1-VAR4)/(VAR3-VAR4);
VAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60);
VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
VAR9:=EMA(VAR8,7);
VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
VARC:=HHV(HIGH,9)-LLV(LOW,9);
VARD:=HHV(HIGH,9)-CLOSE;
VARE:=CLOSE-LLV(LOW,9);
VARF:=VARD/VARC*100-70;
VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR11:=(2*CLOSE+HIGH+LOW)/4;
VAR12:=SMA(VARE/VARC*100,3,1);
VAR13:=LLV(LOW,34);
VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);
VAR15:=IF(VAR14>100,VAR14-100,0);
VAR16:=HHV(HIGH,34);
VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);
VAR18:=EMA(VAR17,5);
STICKLINE(VAR17-VAR18>0,VAR17,VAR18,8,1), ,COLORRED ;
STICKLINE(VAR17-VAR18<0,VAR17,VAR18,8,1), ,COLORGREEN ;