主图指标
X:=(MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,7)+MA(CLOSE,13)+MA(CLOSE,21))/5;
牛熊线:X,COLORWHITE,LINETHICK2;
ZDF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
TDXSTEP250:STICKLINE(ZDF>9.85,OPEN,CLOSE,3.2,0),COLORRED;
TDXSTEP251:STICKLINE(ZDF<(-9.85),OPEN,CLOSE,3.2,0),COLORBLUE;
TDXSTEP252:DRAWTEXT(ZDF>9.85,LOW*0.95,2),COLORRED;
TDXSTEP253:DRAWTEXT(ZDF<(-9.85),LOW*0.96,3),COLORBLUE;
A4:=MA(CLOSE,20);
A5:=CLOSE>MA(CLOSE,5);
A6:=MA(CLOSE,5)>MA(CLOSE,10);
A7:=CLOSE>MA(CLOSE,10);
A8:=MA(CLOSE,5)>MA(CLOSE,20);
A9:=CLOSE>MA(CLOSE,20);
A10:=REF(A4,1);
A11:=A4>A10;
AVX:=IF(A5,10,0-10)+IF(A6,10,0-10)+IF(A7,10,0-10)+IF(A8,10,0-10)+IF(A9,10,0-10)+IF(A11,10,0-10);
SC:=REF(AVX,1)<=0 AND AVX>0;
A1:=AVX>10 AND AVX>=REF(AVX,1) AND AVX>=REF(AVX,2);
A2:=AVX=60;
A3:=SC OR A1 OR A2;
TDXSTEP254:STICKLINE(A3,OPEN,CLOSE,1.3,0),COLORMAGENTA;
TDXSTEP255:STICKLINE(A2,OPEN,CLOSE,1.3,0),COLORYELLOW;
CX:=BARSLAST(NOT(A3));
CX1:=BARSLAST(NOT(A2));
TDXSTEP256:STICKLINE(A3>0,REF(LOW,CX)*0.96,REF(LOW,CX)*0.965,4,0),COLORRED;
TDXSTEP257:DRAWNUMBER(A2,REF(LOW,CX)*0.95,CX1),COLORYELLOW;
V1:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
HY1:=REF(EMA(V1,3),1);
DK:=MA((CLOSE-HY1)*28,2)*0.1;
HS:=VOL*100/CAPITAL;
ZL:=MA(HS,4);
DH:=MA(HS,9);
ZH:=MA(HS,17);
SH:=MA(HS,34);
JL:=(ZL+DH+ZH+SH)/4;
ZLNL:=ZL-JL;
AA1:=DK>=0 AND DK>=REF(DK,1) AND CLOSE>=X;
AA2:=ZLNL>=0 AND ZLNL>=REF(ZLNL,1) AND CLOSE>=X;
TDXSTEP258:DRAWICON(AA2,LOW*0.97,27);
TDXSTEP259:DRAWTEXT_FIX(1,0,0,0,4),COLORE837EC;
TDXSTEP260:DRAWTEXT_FIX(1,0,0.05,0,12),COLORE837EC;
TDXSTEP261:DRAWTEXT_FIX(1,0,0.1,0,13),COLORE837EC;
副图1
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'11',0);
STICKLINE(1,-1,-2.5,3.9,0),COLORYELLOW;
VAR81:=LLV(LOW,5);
VAR82:=HHV(HIGH,13);
操线:=((EMA((CLOSE-VAR81)/(VAR82-VAR81)*4,3)))*2;
DRAWBAND(操线-3,RGB(250,20,20),-1,RGB(0,0,0));
STICKLINE(1,8.9,6,4,0),COLORYELLOW;
大山:=4*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
大山陈:=-大山;
DRAWBAND(8.9,RGB(0,80,0),大山陈+10,RGB(250,240,25));
DRAWBAND(8.9,RGB(0,80,0),大山陈+11,RGB(250,20,25));
VAR21:=MA(100*(CLOSE-LLV(CLOSE,2))/(HHV(HIGH,2)-LLV(LOW,2)),3)-0.001;
VAR20:=2*ABS(VAR21);
资21:=(IF(VAR21<0,VAR20,0));
STICKLINE(资21,10,11,2,0),COLORBLUE;
VAR22:=MA(100*(CLOSE-LLV(CLOSE,2))/(HHV(HIGH,2)-LLV(LOW,2)),5)-0.001;
VAR25:=2*ABS(VAR22);
资22:=(IF(VAR22<0,VAR25,0));
STICKLINE(资22,8,9,2,0),COLORWHITE;
VAR23:=MA(100*(CLOSE-LLV(CLOSE,2))/(HHV(HIGH,2)-LLV(LOW,2)),8)-0.001;
VAR24:=2*ABS(VAR23);
资23:=(IF(VAR23<0,VAR24,0));
STICKLINE(资23,7,6,2,0),COLORFF00FF;
RS34:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),34,2))/(SMA(ABS(CLOSE - REF(CLOSE,1)),34,2)))*(100);
STICKLINE((RS34 < 25),5,4,2,0),COLORBLACK;
RS343:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),34,3))/(SMA(ABS(CLOSE - REF(CLOSE,1)),34,3)))*(100);
STICKLINE((RS343 < 25),2,3,2,0),COLORRED;
副图2
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'11',0);
30,DOTLINE;
STICKLINE(1,110,0,4,0),COLORLIRED;
STICKLINE(1,0,-60,4,0),COLORLIRED;
RS2:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),2,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),2,1)))*(100);
STICKLINE((RS2 < 25),110,-60,4,0),COLORFFE4E1;
100;STICKLINE(C>0,30,0,4,0),COLORFF00FF;
浮筹:=(WINNER(C*1.1)-WINNER(C*0.89))/WINNER(HHV(H,0))*100,COLORYELLOW,LINETHICK2;
RPY:=(C-LLV(C,5))/(HHV(C,5)-LLV(C,5))*100,COLORWHITE,LINETHICK1;
DRAWBAND(RPY,RGB(255,240,0),30,RGB(80,255,80));
散户资金:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),LINETHICK2;
主力资金:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORRED,LINETHICK2;
锁仓拉升:=RPY>99 AND 浮筹<30,COLORRED;
A11:=MA(CLOSE,2);
A12:=(CLOSE>MA(CLOSE,2));
A13:=(MA(CLOSE,1)>MA(CLOSE,2));
A14:=(CLOSE>MA(CLOSE,5));
A15:=(MA(CLOSE,2)>MA(CLOSE,3));
A16:=(CLOSE>MA(CLOSE,2));
A17:=REF(A11,2);
A18:=(A11>A17);
穿2:(((((IF(A12,10,(0 - 10)) + IF(A13,10,(0 - 10))) + IF(A14,10,(0 - 10))) + IF(A15,10,(0 - 10))) + IF(A16,10,
(0 - 10))) + IF(A18,10,(0 - 10))),COLORLIBLUE,LINETHICK1;
DRAWBAND(穿2,RGB(255,20,0),0,RGB(8,25,8));
-60;
A82:=(CLOSE-MA(CLOSE,3))/MA(CLOSE,3)*100;
TT:=-(IF(A82<0,A82*4,0))*1,COLORGREEN,LINETHICK2;
DRAWBAND(TT+30,RGB(10,80,10),30,RGB(0,0,0));
VAR21:=MA(100*(CLOSE-LLV(CLOSE,2))/(HHV(HIGH,2)-LLV(LOW,2)),1)-0.001;
VAR20:=2*ABS(VAR21);
空:=(IF(VAR21<0,VAR20,0));
STICKLINE(空,110,105,2,0),COLORBLACK;
VAR221:=MA(100*(CLOSE-LLV(CLOSE,2))/(HHV(HIGH,2)-LLV(LOW,2)),2)-0.001;
VAR220:=2*ABS(VAR221);
空1:=(IF(VAR221<0,VAR220,0));
STICKLINE(空1,95,100,2,0),COLORBLUE;
RS3:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),3,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),3,1)))*(100);
STICKLINE((RS3 < 25),90,85,2,0),COLORGREEN;
RS5:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),3,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),3,2)))*(100);
STICKLINE((RS5 < 25),80,75,2,0),COLOR4B0082;
RS8:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),5,2))/(SMA(ABS(CLOSE - REF(CLOSE,1)),5,2)))*(100);
STICKLINE((RS8 < 25),70,65,2,0),COLORLIRED;
RS13:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),8,2))/(SMA(ABS(CLOSE - REF(CLOSE,1)),8,2)))*(100);
STICKLINE((RS13 < 25),60,55,2,0),COLORFF00FF;
RS21:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),13,2))/(SMA(ABS(CLOSE - REF(CLOSE,1)),13,2)))*(100);
STICKLINE((RS21 < 25),50,45,2,0),COLORRED;
VAR2:=(CLOSE-LLV(LOW, 5))/(HHV(HIGH, 5)-LLV(LOW, 5))*100;
VAR3:=SMA(VAR2, 3, 1);
VAR4:=CLOSE<=1*REF(CLOSE, 1);
VAR5:=SMA(VAR3, 3, 1);
人:=3*VAR3-2*VAR5,LINETHICK0;
VAR6:=人>=1*REF(人, 1);
VAR7:=人<=1*REF(人, 1);
和:=MA(人, 3),LINETHICK0;
RSV:=(CLOSE-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3))*100;
K0:=SMA(RSV,2,1);
D0:=SMA(K0,2,1);
J:=3*K0-2*D0;
STICKLINE(人>和 AND VAR6, 人, 和, 2, 1), COLORRED;
STICKLINE(人>和 AND VAR7 AND 和>50, 人, 和, 2, 0), COLORWHITE;
STICKLINE(VAR7, 人, 和,2, 0), COLORWHITE;
STICKLINE(CLOSE>OPEN AND VAR6, 人, 和,2, 1), COLORRED;
STICKLINE(J>REF(J,1),HHV(J,3),LLV(J,3),0,0),COLOR00AAFF;
STICKLINE(J>REF(J,1),J,REF(J,1),0.5,0),COLOR0044FF;
STICKLINE(J>REF(J,1),J,REF(J,1),0.5,0),COLOR0088FF;
STICKLINE(J>REF(J,1),J,REF(J,1),0,0),COLOR00AAFF;
STICKLINE(J<REF(J,1),HHV(J,3),LLV(J,3),0,0),COLORFFAA00;
STICKLINE(J<REF(J,1),J,REF(J,1),0.5,0),COLORFF4400;
STICKLINE(J<REF(J,1),J,REF(J,1),0.5,0),COLORFF8800;
STICKLINE(J<REF(J,1),J,REF(J,1),0,0),COLORFFAA00;
RSVV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
VARB2:=(RSVV/2+13)*1;
量:=EMA(VOL,3);
资金2:=EMA(AMOUNT,3);
过滤:=((资金2 /量) / 100);
提纯:=(((CLOSE -过滤) / 过滤) * 100);
黄金:=(提纯 < (0)) ,COLORRED;
买AA:=黄金 AND RSVV< VARB2-2;
超卖:-(IF(买AA>0 ,30,1))*0.5,COLORGREEN,LINETHICK3;
买A:=黄金 AND RSVV< VARB2-3;
DRAWICON(锁仓拉升,100,1);
主升浪:=(RPY>80 AND 浮筹<40);
DRAWICON(主升浪,20,9);
金叉:=CROSS(RPY,浮筹) ;
DRAWICON(金叉,RPY,34);
副图3
DRAWGBK(C>0, RGB(180,170,170),RGB(183,164,165),0,'8',0);
STICKLINE(1,-13,0,4,0),COLORYELLOW;
STICKLINE(1,-13,-21,4,0),COLORLIRED;
STICKLINE(1,-21,-34,4,0),COLORBLUE;
STICKLINE(1,-34,-55,4,0),COLORFF00FF;
STICKLINE(1,-65,-55,4,0),COLORWHITE;
STICKLINE(1,50,0,4,0),COLORLIRED;
N21:=5;
WR2:=-110*(HHV(HIGH,N21)-CLOSE)/(HHV(HIGH,N21)-LLV(LOW,N21));
DRAWBAND(WR2+50,RGB(250,20,20),0,RGB(0,0,0));
RS2:=((SMA(MAX(CLOSE - REF(CLOSE,1),0),2,1))/(SMA(ABS(CLOSE - REF(CLOSE,1)),2,1)))*(100);
STICKLINE((RS2 < 25),0,50,4,0),COLORFFE4E1;
VAR21:=MA(100*(CLOSE-LLV(CLOSE,3))/(HHV(HIGH,3)-LLV(LOW,3)),2)-0.001;
VAR20:=2*ABS(VAR21);
资21:=(IF(VAR21<0,VAR20,0));
STICKLINE(资21,42,50,2,0),COLORBLACK;
VAR22:=MA(100*(CLOSE-LLV(CLOSE,3))/(HHV(HIGH,3)-LLV(LOW,3)),5)-0.001;
VAR25:=2*ABS(VAR22);
资22:=(IF(VAR22<0,VAR25,0));
STICKLINE(资22,30,38,2,0),COLORBLUE;
VAR23:=MA(100*(CLOSE-LLV(CLOSE,3))/(HHV(HIGH,3)-LLV(LOW,3)),8)-0.001;
VAR24:=2*ABS(VAR23);
资23:=(IF(VAR23<0,VAR24,0));
STICKLINE(资23,30,22,2,0),COLORRED;
VAR224:=MA(100*(CLOSE-LLV(CLOSE,3))/(HHV(HIGH,3)-LLV(LOW,3)),13)-0.001;
VAR256:=2*ABS(VAR224);
资54:=(IF(VAR224<0,VAR256,0));
STICKLINE(资54,14,5,2,0),COLORFF00FF;
VAR521:=MA(100*(CLOSE-LLV(CLOSE,5))/(HHV(HIGH,5)-LLV(LOW,5)),4)-0.001;
VAR520:=2*ABS(VAR521);
资521:=(IF(VAR521<0,VAR520,0));
STICKLINE(资521,-15,-5,2,0),COLORGREEN;
VAR522:=MA(100*(CLOSE-LLV(CLOSE,5))/(HHV(HIGH,5)-LLV(LOW,5)),6)-0.001;
VAR525:=2*ABS(VAR522);
资522:=(IF(VAR522<0,VAR525,0));
STICKLINE(资522,-35,-25,2,0),COLORWHITE;
VAR523:=MA(100*(CLOSE-LLV(CLOSE,5))/(HHV(HIGH,5)-LLV(LOW,5)),7)-0.001;
VAR524:=2*ABS(VAR523);
资523:=(IF(VAR523<0,VAR524,0));
STICKLINE(资523,-65,-58,2,0),COLORFF00FF;