主图
{灰色K}
STICKLINE(O>=C,H,L,0,0),COLOR909090;
STICKLINE(O>=C,C,O,3.1,0),COLOR606060;
STICKLINE(O>=C,C,O,3.1,0),COLOR707070;
STICKLINE(O>=C,C,O,1.2,0),COLOR808080;
STICKLINE(O>=C,C,O,0.2,0),COLOR909090;
STICKLINE(O<=C,H,L,0,0),COLOR666B6F;
STICKLINE(C>O,C,O,3.1,1),COLOR666B6F;
V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);
MA1:=EXPMEMA(CLOSE,3);
MA2:=EXPMEMA(CLOSE,5);
MA3:=EXPMEMA(CLOSE,8);
MA4:=EXPMEMA(CLOSE,10);
MA5:=EXPMEMA(CLOSE,12);
MA6:=EXPMEMA(CLOSE,35);
MA7:=EXPMEMA(CLOSE,40);
MA8:=EXPMEMA(CLOSE,45);
MA9:=EXPMEMA(CLOSE,50);
MA10:=EXPMEMA(CLOSE,60);
跌:=EMA(C,120),LINETHICK1,POINTDOT,COLORGREEN;
{涨:IF (跌>REF(跌,1),跌,0),LINETHICK2,CIRCLEDOT,COLORGREEN;}
红:=MA(C,120),LINETHICK1,POINTDOT,COLORGREEN;
{绿:IF (红>REF(红,1),红,0),LINETHICK2,CIRCLEDOT,COLORFF0080;}
A24:=EMA(C,24);
IF(A24>=REF(A24,1),A24,DRAWNULL),COLORFF00FF,LINETHICK1;
A55:=EMA(C,55);
IF(A55>=REF(A55,1),A55,DRAWNULL),COLORCYAN,LINETHICK1;
A77:=EMA(C,77),DOTLINE;
IF(A77>=REF(A77,1),A77,DRAWNULL),COLORRED,LINETHICK1;
效果:=O<=MIN(MA1,MIN(MA2,MIN(MA3,MIN(MA4,MA5))))AND
C>=MAX(MA1,MAX(MA2,MAX(MA3,MAX(MA4,MA5))));
A01:=MIN(O,C);
B01:=ABS(O-C);
A02:=MAX(O,C);
共振:=O<=MIN(MA1,MIN(MA2,MIN(MA3,MIN(MA4,MIN(MA5,MIN(MA6,MIN(MA7,MIN(MA8,
MIN(MA9,MA10)))))))))AND C>=MAX(MA1,MAX(MA2,MAX(MA3,MAX(MA4,MAX(MA5,
MAX(MA6,MAX(MA7,MAX(MA8,MAX(MA9,MA10)))))))));
STICKLINE(共振,H,L,0,1),COLORYELLOW;
STICKLINE(共振,C,O,3.1,0),COLOR117777;
STICKLINE(共振,C,O,2.6,0),COLOR119999;
STICKLINE(共振,C,O,1.9,0),COLOR11BBBB;
STICKLINE(共振,C,O,1.1,0),COLOR11DDDD;
STICKLINE(共振,C,O,0.3,0),COLOR44FFFF;
STICKLINE(效果,A01,A01+B01/6,3.1,0),COLOR880088;
STICKLINE(效果,A01,A01+B01/6,2.5,0),COLOR990099;
STICKLINE(效果,A01,A01+B01/6,2.0,0),COLORBB00BB;
STICKLINE(效果,A01,A01+B01/6,1.5,0),COLORDD00DD;
STICKLINE(效果,A01,A01+B01/6,0.7,0),COLORFF00FF;
主力筹码估算:=EMA(WINNER(CLOSE)*70,3),NODRAW,LINETHICK0;
散户筹码估算:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3),NODRAW;
散户套牢比率:=散户筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;
主力控盘比率:=主力筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.85,0.84,0,'■ 主力筹码估算:'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.92,0.84,0,' %'),COLORMAGENTA;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.90,0.84,0,主力筹码估算),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.85,0.93,0,'■ 主力控盘比率:'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.92,0.93,0,' %'),COLORMAGENTA;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.90,0.93,0,主力控盘比率),COLORMAGENTA;
{风险系数}
X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;{盈余公积用资本公积金代替}
X3:=FINANCE(23)/FINANCE(10)*3.3;
X4:=FINANCE(19)/FINANCE(15)*0.6;{缺长期负债或负债总额}
X5:=FINANCE(20)/FINANCE(15)*0.999;
LC:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
获利筹码:=CONST(WINNER(C)*100);
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和:=(IF(SAT>1,1,SAT)*100);
WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活跃:=(WRSI-WR10);
活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2));
DRAWTEXT_FIX(1,0.992,0.84,1,STRCAT(STRCAT('量能饱和:',CON2STR(量能饱和,2)),'%')),COLORMAGENTA;
DRAWTEXT_FIX(1,0.992,0.88,1,STRCAT(STRCAT('活跃度比:',CON2STR(活跃度比,2)),'%')),COLORMAGENTA;
DRAWTEXT_FIX(1,0.992,0.92,1,STRCAT(STRCAT('获利筹码:',CON2STR(获利筹码,2)),'%')),COLORMAGENTA;
{DRAWTEXT_FIX(1,0.82,0.00,1,'大盘趋势:'),COLORRED;
DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.85,0.00,1,'∧向上∧'),COLORRED;
DRAWTEXT_FIX( CONST(INDEXC) >SAR(4,2,20),0.85,0.03,1,'∧∧∧∧'),COLORRED;
DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.85,0.00,1,'∨向下∨'),COLORGREEN;
DRAWTEXT_FIX( CONST(INDEXC) <SAR(4,2,20),0.85,0.03,1,'∨∨∨∨'),COLORGREEN;}
{DRAWTEXT_FIX(CURRBARSCOUNT=1,0.60,0.93,0,'数据日期:'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.80,0.93,0,' 财报更新第:'),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.90,0.93,0,FINANCE(37)),,COLORMAGENTA;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.70,0.93,0,MACHINEDATE+19000000),COLORMAGENTA;};
副图1
筹码密集度:(COST(90+(100-90)/2)-COST((100-90)/2))/(COST(90+(100-90)/2)+COST((100-90)/2))+CLOSE,COLORYELLOW,LINETHICK3;
X_1:=REF(HHV(筹码密集度,20),0);
X_2:=REF(HHV(筹码密集度,3),0);
X_3:=REF(LLV(筹码密集度,20),0);
X_4:=REF(LLV(筹码密集度,3),0);
筹码线:EMA(COST(99),181),POINTDOT,COLORFF0080,LINETHICK5;
X_5:=LONGCROSS(筹码密集度,筹码线,60);
DRAWICON(LONGCROSS(筹码密集度,筹码线,60),筹码线,42);
X_6:=VOL/CAPITAL*100;
X_7:=VOL/CAPITAL*100;
X_8:=MA(X_7,30);
X_9:=MA(X_7,60);
X_10:=MA(X_7,250);
X_11:=MIN(X_9*1.1,X_10*1.1);
X_12:=25*CROSS(X_6,X_11*2)*2;
X_13:=45*CROSS(X_7,X_8);
X_14:=BARSLAST(X_13);
优选点:(X_12 AND X_14<=2 AND (CLOSE/REF(CLOSE,1)-1)*100>=3)*7,NODRAW;
STICKLINE(优选点,筹码线,筹码线*1.1,1,0),COLORMAGENTA;
副图2
历史量比:VOL/MA(VOL,5);
换手:VOL*100/CAPITAL,STICK;
二日换手:SUM(换手,2);
三日换手:SUM(换手,3);
五日换手:SUM(换手,5);
十日换手:SUM(换手,10);
二十日换手:SUM(换手,20);
三十日换手:SUM(换手,30);
STICKLINE(换手<=1,0,VOL,3,0),COLORWHITE;
STICKLINE(换手>1 AND 换手<=3 ,0,VOL,3,0),COLOR00FF00;
STICKLINE(换手>3 AND 换手<=5 ,0,VOL,3,0),COLORF0F000;
STICKLINE(换手>5 AND 换手<=8 ,0,VOL,3,0),COLOR8788F6;
STICKLINE(换手>8 AND 换手<=10 ,0,VOL,3,0),COLORYELLOW;
STICKLINE(换手>10 AND 换手<=15 ,0,VOL,3,0),COLORFF00FF;
STICKLINE(换手>15 ,0,VOL,3,0),COLORRED;
DRAWTEXT(换手<=1,VOL+1000,'1'),COLORYELLOW;
DRAWTEXT(换手>1 AND 换手<=3,VOL+1000,'1'),COLORYELLOW;
DRAWTEXT(换手>3 AND 换手<=5,VOL+1000,'3'),COLORYELLOW;
DRAWTEXT(换手>5 AND 换手<=8,VOL+1000,'5'),COLORYELLOW;
DRAWTEXT(换手>8 AND 换手<=10,VOL+1000,'8'),COLORYELLOW;
DRAWTEXT(换手>10 AND 换手<=15,VOL+1000,'10'),COLORYELLOW;
DRAWTEXT(换手>15,VOL-15000,' 15'),COLORYELLOW;
主力1:=IF(换手>10,V*0.9,V*0.1);
主力2:=IF(BETWEEN(换手,8,10),V*0.8,V*0.2);
主力3:=IF(BETWEEN(换手,5,8),V*0.6,V*0.4);
主力动向:(主力1+主力2+主力3)/3,COLORRED,LINETHICK0;
散户1:=IF(BETWEEN(换手,5,3),V*0.6,V*0.4);
散户2:=IF(BETWEEN(换手,3,1),V*0.8,V*0.2);
散户3:=IF(换手<1,V*0.9,V*0.1);
散户动向:(散户1+散户2+散户3)/3,COLORYELLOW,LINETHICK0;
MV1:EMA(V,9),COLOR0057FF;
MV2:EMA(V,34),COLORF1910E;
IF(MV1>MV2,MV1,DRAWNULL),COLORYELLOW;
IF(MV1<MV2,MV2,DRAWNULL),COLORFF9900;
DRAWBAND(MV1,RGB(155,0,0),MV2,RGB(0,100,0));
DRAWBAND(主力动向,RGB(255,0,0),散户动向,RGB(0,150,0));
副图3
X_1:=EMA(CLOSE,6)-EMA(CLOSE,13);
X_2:=EMA(X_1,4);
X_4:=CROSS(X_1,X_2);
X_5:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_6:=SMA(X_5,3,1);
X_7:=SMA(X_6,3,1);
X_9:=CROSS(X_6,X_7);
X_10:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,30))/4;
X_11:=CROSS(CLOSE,X_10);
X_12:=6;
X_13:=REF(CLOSE,1);
X_14:=ABS(HIGH-X_13);
X_15:=ABS(LOW-X_13);
X_16:=ABS(HIGH-REF(LOW,1));
X_17:=ABS(X_13-REF(OPEN,1));
X_18:=IF(X_14>X_15 AND X_14>X_16,X_14+X_15/2+X_17/4,IF(X_15>X_16 AND X_15>X_14,X_15+X_14/2+X_17/4,X_16+X_17/4));
X_19:=CLOSE-X_13+(CLOSE-OPEN)/2+X_13-REF(OPEN,1);
X_20:=16*X_19/X_18*MAX(X_14,X_15);
X_21:=SUM(X_20,0);
X_22:=X_12;
X_23:=CROSS(X_21,X_22);
X_24:=CLOSE-REF(CLOSE,12);
X_25:=CROSS(X_24,0);
X_26:=X_4+X_9+X_11+X_23+X_25=3;
X_27:=X_4+X_9+X_11+X_23+X_25=4;
X_28:=X_4+X_9+X_11+X_23+X_25=5;
X_29:=C>MA(C,20) AND MA(C,20)>REF(MA(C,20),1);
X_26 OR X_27 OR X_28 AND X_29;