主图指标(带未来)
参数
N1:=STRCAT(CON2STR(YEAR,0),' 年 ');
Y:=STRCAT(CON2STR(MONTH,0),' 月 ');
R:=STRCAT(CON2STR(DAY,0),' 日 ');
SJ:=STRCAT(STRCAT(N1,Y), R);
DRAWTEXT_FIX(C>0,0.00,0.38,0,SJ);
DRAWTEXT_FIX(1,0.11,0.24,0,FGBLOCK),COLORGRAY;
{涨跌停K线}
STICKLINE((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)),OPEN,CLOSE,2,0),COLORGREEN;
{斐波那契周期}
ZT:=C/REF(C,1)>1.097;
XH:=FILTER(ZT,13);
BH:=BARSLAST(ZT);
CZ:=REF(H,BH)-REF(L,BH);
STICKLINE(C,(REF(L,BH)+CZ*0.5),(REF(L,BH)+CZ*0.5),2,0),COLORRED;
STICKLINE(ZT,REF(O,BH),REF(C,BH),2,0),COLORYELLOW;
DRAWTEXT(ZT,L*1.12,'0'),COLORYELLOW;
VARZT:=BARSLAST(C/REF(C,1)>1.097);
DRAWTEXT(VARZT=1,L*0.99,'1'),COLORYELLOW;
DRAWTEXT(VARZT=2,L*0.97,'2'),COLORYELLOW;
DRAWTEXT(VARZT=3,L*0.95,'3'),COLORYELLOW;
DRAWTEXT(VARZT=5,H*1.00,'5天'),COLORYELLOW;
DRAWTEXT(VARZT=8,L*0.95,'8天'),COLORYELLOW;
DRAWTEXT(VARZT=13,H*1.00,'13天'),COLORYELLOW;
DRAWTEXT(VARZT=21,L*1.00,'21天'),COLORWHITE;
DRAWTEXT(VARZT=34,H*1.00,'34天'),COLORWHITE;
DRAWTEXT(VARZT=55,L*1.01,'55天'),COLORWHITE;
DRAWTEXT(VARZT=89,H*1.06,'89天'),COLORWHITE;
DRAWTEXT(VARZT=144,L*0.95,'144天'),COLORWHITE;
DRAWTEXT(VARZT=233,H*1.06,'233天'),COLORWHITE;
DRAWTEXT(VARZT=377,L*0.95,'377天'),COLORWHITE;
DRAWTEXT(VARZT=610,L*0.95,'610天'),COLORWHITE;
DRAWTEXT(VARZT=987,L*0.95,'987天'),COLORWHITE;
分割:=MA(CLOSE,8);
VAR1A:=LLV(LOW,N);
VAR2:=HHV(HIGH,N);
VAR3:=VAR2-VAR1A;
高点: VAR2,COLORYELLOW;
H809: VAR3*0.809+VAR1A,COLORGREEN;
H618: VAR3*0.618+VAR1A,COLORRED;
H050: VAR3*0.500+VAR1A,COLORMAGENTA;
H382: VAR3*0.382+VAR1A,COLORLIRED;
H191: VAR3*0.191+VAR1A,COLORGRAY;
低点: VAR1A,COLORYELLOW;
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);
B:=ZIG(3,5)*100;
G:=MA(B,2);
D:=CROSS(B,G);
W:=CROSS(G,B);
E:=REF(INDEXC,1);
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR13 AND VAR13<20;
DRAWTEXT(FILTER(D=1,5),LOW-0.1,'上车'),COLORYELLOW;
DRAWTEXT(W=1,HIGH*1.02,'下车'),COLORGREEN;
STICKLINE(W=1,O,C,2,0),COLORGREEN;
STICKLINE(D=1,O,C,2,0),COLORYELLOW;
抄底系列1
VAR2:IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);
VAR3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;
VAR4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;
VAR5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;
VAR6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;
VAR7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;
VAR8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;
VAR9:=(VAR3+VAR4+VAR5+VAR6+VAR7+VAR8)/6;
VARA:=EMA(VAR9,3);
VARB:=ABS(VAR6-VAR8);
VARC:=(VAR9+VARB)/2;
VARD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;
VARE:=VARD+VARC;
VARF:IF(VAR2>0 AND VARE<0,200,0);
VAR10:IF(VARC<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);
VAR11:IF(VARE<0 AND VAR10=-50,100,0);
VAR12:=MA(CLOSE,3);
VAR13:=REF(CLOSE,2)*0.865;
VAR14:=REF(CLOSE,13)*0.772;
VAR15:=MIN(VAR13,VAR14);
VAR16:=100*VOL/CAPITAL;
VAR17:=MA(CLOSE,13);
VAR18:IF((CLOSE-VAR15)/CLOSE<0.03 AND SUM(VAR16,5)/5<1.8,1,0);
VAR19:IF(VAR18>0 AND (VAR10<0 OR VAR2>0),100,0);
抄底系列2
X_1:=CLOSE/MA(CLOSE,40)*100<78;
X_2:=CLOSE/MA(CLOSE,60)*100<74;
X_3:=HIGH>LOW*1.051;
X_4:=X_3 AND COUNT(X_3,5)>1;
X_5:=IF(X_4 AND (X_1 OR X_2),2,0);
X_6:=CLOSE/REF(CLOSE,25)<=1.1;
X_7:=SMA(MAX(CLOSE-REF(CLOSE,2),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,2)),7,1)*100<15;
X_8:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
X_9:=SMA(X_8,2,1);
X_10:=IF(X_9>REF(X_9,1) AND REF(X_9,1)<REF(X_9,2) AND X_9<23,1.5,0);
金龙出海抄底2:X_6 AND X_5 AND X_7 AND X_10,COLORRED,LINETHICK2;
抄底系列3
X_1:=IF(NAMELIKE(1),0,1);
X_2:=IF(NAMELIKE(2),0,1);
X_3:=IF(CODELIKE(3),0,1);
X_4:=X_1 AND X_2 AND X_3;
X_5:=MA(CLOSE,60);
X_6:=(CLOSE-X_5)/X_5*100;
X_7:=LLV(LOW,21);
X_8:=HHV(HIGH,21);
X_9:=EMA((CLOSE-X_7)/(X_8-X_7)*100,5);
X_10:=EMA((CLOSE-X_7)/(X_8-X_7)*50,13);
X_11:=CROSS(X_9,X_10);
X_12:=X_11=1;
X_13:=AMOUNT/VOL;
X_14:=LOW<X_13*0.9;
X_15:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
X_16:=LOW<MA(CLOSE,5)*0.921;
X_17:=VOL<MA(VOL,5)*1.5;
X_18:=SMA((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100,3,1);
X_19:=X_18<50;
X_20:=X_12 OR (X_14 AND X_15 AND X_16 AND X_17);
X_21:=X_4 AND X_19 AND X_20;
XG1:X_21 AND X_6<(-20) AND X_4;
金龙出海吸筹
N1:=9;
N2:=5;
MTM:=C-REF(C,1);
主力轨迹:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORRED;
MAZL:MA(主力轨迹,N2),COLORBLUE;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1,0 ),COLORRED;
洗盘:IF(VAR5< REF(VAR5,1),VAR5,0),COLORBLUE,NODRAW;
STICKLINE(VAR5< REF(VAR5,1),0,VAR5,1,0),COLORBLUE;
VAR21:=SMA(ABS(HIGH-VAR1),13,1)/SMA(MIN(HIGH-VAR1,0),10,1);
VAR31:=EMA(VAR21,10);
VAR41:=HHV(HIGH,33);
VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);
主力拉高:IF(VAR51< REF(VAR51,1),VAR51,0),COLORMAGENTA,NODRAW;
STICKLINE(VAR51< REF(VAR51,1),0,VAR51,1,0),COLORMAGENTA;
出货:IF(VAR51>REF(VAR51,1),VAR51,0),COLORGREEN,NODRAW;
STICKLINE(VAR51>REF(VAR51,1),0,VAR51,1,0 ),COLORGREEN;
逃顶:=IF(CROSS(82,RSI),50,0),COLORRED,LINETHICK1;
D1:=(C+L+H)/3;
D2:=EMA(D1,6);
D3:=EMA(D2,5);
BBUY:=CROSS(D2,D3);
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWTEXT(CROSS(82,VARR1),35,'--出'),COLORRED;
趋势线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
抄底:=IF(CROSS(趋势线,6),50,0),COLORBLUE,LINETHICK1;
DRAWTEXT(FILTER(抄底,10)=1,35,'--抄'),COLORBLUE,LINETHICK1;
A1:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
A2:=SMA(A1,3.1,1);
A3:=SMA(A2,3.1,1);
出击:=3*A2-2*A3,COLORYELLOW,LINETHICK2;
底部吸筹指标:=((((CLOSE - MA(CLOSE,20)) / MA(CLOSE,20)) * 100));
A:=(((((((((((((59 - 59) + 66) - 44) + 20) + 2) + (24 * 100000000)) + 5) - 5) + 1700000) + 1580) + 3) - 3) - 44);
B:=((((6 * 100000000) + 23578500) + 92) + 3);
线:IF((((底部吸筹指标 < 0) && ( A)) && ( B)),(底部吸筹指标 * 4),0),COLORBLUE,NODRAW;
DRAWICON(CROSS(出击,5),5,25);
金龙出海监控副图
A:=IF((CLOSE > 126.32),(AMOUNT / 100000),VOL);
主力:MA(A,4),LINETHICK0,COLORYELLOW;
游资:MA(A,8),LINETHICK0,COLORGREEN;
大户:MA(A,16),LINETHICK0,COLORRED;
散户:MA(A,32),LINETHICK0,COLORLIBLUE;
游资比例:CEILING(((游资 / (((主力 + 游资) + 大户) + 散户)) * 100)),LINETHICK0,COLORGREEN;
大户比例:CEILING(((大户 / (((主力 + 游资) + 大户) + 散户)) * 100)),LINETHICK0,COLORRED;
散户比例:CEILING(((散户 / (((主力 + 游资) + 大户) + 散户)) * 100)),LINETHICK0,COLORLIBLUE;
警戒线:MA(A,180),COLORMAGENTA;
STICKLINE((主力 > 0),0,主力,3,0),COLOR009CFF;
STICKLINE((主力 > 0),0,主力,2.8,0),COLOR009CFF;
STICKLINE((主力 > 0),0,主力,2.5,0),COLOR00C0FF;
STICKLINE((主力 > 0),0,主力,1.5,0),COLOR00D1FF;
STICKLINE((主力 > 0),0,主力,1,0),COLOR00EAFF;
STICKLINE((主力 > 0),0,主力,0.7,0),COLOR00FFFF;
STICKLINE((游资 > 0),0,游资,3,0),COLOR00C100;
STICKLINE((游资 > 0),0,游资,2.8,0),COLOR00CA00;
STICKLINE((游资 > 0),0,游资,2.5,0),COLOR00D300;
STICKLINE((游资 > 0),0,游资,1.5,0),COLOR00DB00;
STICKLINE((游资 > 0),0,游资,1,0),COLOR00EA00;
STICKLINE((游资 > 0),0,游资,0.7,0),COLOR00FF00;
STICKLINE((大户 > 0),0,大户,3,0),COLOR1020AA;
STICKLINE((大户 > 0),0,大户,2.8,0),COLOR1020BB;
STICKLINE((大户 > 0),0,大户,2.5,0),COLOR1020CC;
STICKLINE((大户 > 0),0,大户,1.5,0),COLOR1020DD;
STICKLINE((大户 > 0),0,大户,1,0),COLOR1020EE;
STICKLINE((大户 > 0),0,大户,0.7,0),COLOR1020FF;
STICKLINE((散户 > 0),0,散户,3,0),COLORFF7700;
STICKLINE((散户 > 0),0,散户,2.8,0),COLORFF8800;
STICKLINE((散户 > 0),0,散户,2.5,0),COLORFF9900;
STICKLINE((散户 > 0),0,散户,1.5,0),COLORFFAA00;
STICKLINE((散户 > 0),0,散户,1,0),COLORFFBB00;
STICKLINE((散户 > 0),0,散户,0.7,0),COLORFFCC00;