以下是分布(主图)指标源码
筹码分布(主图)指标源码:
DA1:=IF(130 TOTALBARSCOUNT,TOTALBARSCOUNT,130);
DA:=IF(CURRBARSCOUNT DA1,0,DA1);
HI:=REFDATE(HHV(H,DA),DATE);
LO:=REFDATE(LLV(L,DA),DATE);
C1:=IF(CURRBARSCOUNT =DA,C,DRAWNULL);
GZ:=EXP(LN(HI/LO)/10);
LH1:=SUM(IF(C1 =(HI/GZ),V,0),DA);
LH2:=SUM(IF(C1 =(HI/POW(GZ,2))ANDC1 (HI/GZ),V,0),DA);
LH3:=SUM(IF(C1 =(HI/POW(GZ,3))ANDC1 (HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1 =(HI/POW(GZ,4))ANDC1 (HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1 =(HI/POW(GZ,5))ANDC1 (HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1 =(HI/POW(GZ,6))ANDC1 (HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1 =(HI/POW(GZ,7))ANDC1 (HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1 =(HI/POW(GZ,8))ANDC1 (HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1 =(LO*GZ)ANDC1 LO*POW(GZ,2),V,0),DA);
LH10:=SUM(IF(C1 =LOANDC1 LO*GZ,V,0),DA);
L1:=REFDATE(HHV(LH1,DA),DATE);
L2:=REFDATE(HHV(LH2,DA),DATE);
L3:=REFDATE(HHV(LH3,DA),DATE);
L4:=REFDATE(HHV(LH4,DA),DATE);
L5:=REFDATE(HHV(LH5,DA),DATE);
L6:=REFDATE(HHV(LH6,DA),DATE);
L7:=REFDATE(HHV(LH7,DA),DATE);
L8:=REFDATE(HHV(LH8,DA),DATE);
L9:=REFDATE(HHV(LH9,DA),DATE);
L10:=REFDATE(HHV(LH10,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);
STICKLINE(CEILING(DA*L1/SS)*3 =CURRBARSCOUNT,HI*99/100,HI/GZ,9,0),
,COLOR002288,LINETHICK3;
STICKLINE(CEILING(DA*L2/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,1)*99/100
,HI/POW(GZ,2),9,0),COLOR800600,LINETHICK3;
STICKLINE(CEILING(DA*L3/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,2)*99/100
,HI/POW(GZ,3),9,0),COLOR808300,LINETHICK3;
STICKLINE(CEILING(DA*L4/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,3)*99/100
,HI/POW(GZ,4),9,0),COLOR883D88,LINETHICK3;
STICKLINE(CEILING(DA*L5/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,4)*99/100
,HI/POW(GZ,5),9,0),COLOR777700,LINETHICK3;
STICKLINE(CEILING(DA*L6/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,5)*99/100
,HI/POW(GZ,6),9,0),COLOR804000,LINETHICK3;
STICKLINE(CEILING(DA*L7/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,6)*99/100
,HI/POW(GZ,7),9,0),COLOR003377,LINETHICK3;
STICKLINE(CEILING(DA*L8/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)
*99/100,9,0),COLORLICYAN,LINETHICK3;
STICKLINE(CEILING(DA*L9/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)
*99/100,9,0),COLORLIMAGENTA,LINETHICK3;
STICKLINE(CEILING(DA*L10/SS)*3 =CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0)
,COLORBROWN,LINETHICK3;
DRAWKLINE(H,O,L,C);
STICKLINE(C =O,C,O,4,0),COLOR0000AA;
STICKLINE(C =O,C,O,3.5,0),COLOR0000BB;
STICKLINE(C =O,C,O,3,0),COLOR0000CC;
STICKLINE(C =O,C,O,2.5,0),COLOR0000DD;
STICKLINE(C =O,C,O,2,0),COLOR0000EE;
STICKLINE(C =O,C,O,1.5,0),COLOR0000FF;
STICKLINE(C =O,C,O,1,0),COLOR0000FF;
STICKLINE(C =O,H,L,0.5,0),COLORRED;
STICKLINE(C =O,C,O,4,0),COLORAAAA00;
STICKLINE(C =O,C,O,3.5,0),COLORBBBB00;
STICKLINE(C =O,C,O,3,0),COLORCCCC00;
STICKLINE(C =O,C,O,2.5,0),COLORDDDD00;
STICKLINE(C =O,C,O,2,0),COLOREEEE00;
STICKLINE(C =O,C,O,1.5,0),COLORFFFF00;
STICKLINE(C =O,C,O,1,0),COLORFFFF00;
STICKLINE(C =O,H,L,0.5,0),COLORFFFF00;
STICKLINE(C/REF(C,1) 1.05,(C+O)/2,C,3,0),COLOR00AAAA;
STICKLINE(C/REF(C,1) 1.05,(C+O)/2,C,2,0),COLOR00CCCC;
STICKLINE(C/REF(C,1) 1.05,(C+O)/2,C,1,0),COLOR00EEEE;
STICKLINE(C/REF(C,1) 1.05,(C+O)/2,C,0.5,0),COLORYELLOW;
DH:=(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1))*100);
STICKLINE(DH =-4,(C+O)/2,C,3,0),COLORAA0000;
STICKLINE(DH =-4,(C+O)/2,C,2,0),COLORCC0000;
STICKLINE(DH =-4,(C+O)/2,C,1,0),COLOREE0000;
STICKLINE(DH =-4,(C+O)/2,C,0.5,0),COLORFF0000;
DA1:=IF(130 TOTALBARSCOUNT,TOTALBARSCOUNT,130);
DA:=IF(CURRBARSCOUNT DA1,0,DA1);
HI:=REFDATE(HHV(H,DA),DATE);
LO:=REFDATE(LLV(L,DA),DATE);
C1:=IF(CURRBARSCOUNT =DA,C,DRAWNULL);
GZ:=EXP(LN(HI/LO)/10);
LH1:=SUM(IF(C1 =(HI/GZ),V,0),DA);
LH2:=SUM(IF(C1 =(HI/POW(GZ,2))ANDC1 (HI/GZ),V,0),DA);
LH3:=SUM(IF(C1 =(HI/POW(GZ,3))ANDC1 (HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1 =(HI/POW(GZ,4))ANDC1 (HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1 =(HI/POW(GZ,5))ANDC1 (HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1 =(HI/POW(GZ,6))ANDC1 (HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1 =(HI/POW(GZ,7))ANDC1 (HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1 =(HI/POW(GZ,8))ANDC1 (HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1 =(LO*GZ)ANDC1 LO*POW(GZ,2),V,0),DA);
LH10:=SUM(IF(C1 =LOANDC1 LO*GZ,V,0),DA);
L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;
L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;
L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;
L4:=REFDATE(HHV(LH4,DA),DATE);
L5:=REFDATE(HHV(LH5,DA),DATE);
L6:=REFDATE(HHV(LH6,DA),DATE);
L7:=REFDATE(HHV(LH7,DA),DATE);
L8:=REFDATE(HHV(LH8,DA),DATE);
L9:=REFDATE(HHV(LH9,DA),DATE);
L10:=REFDATE(HHV(LH10,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);
STICKLINE(CEILING(DA*L1/SS)*3 =CURRBARSCOUNT,HI*99/100,HI/GZ,9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L2/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L3/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L4/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L5/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L6/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L7/SS)*3 =CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L8/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L9/SS)*3 =CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*99/100,9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L10/SS)*3 =CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0)COLOR3C3C3A,LINETHICK3;
DRAWKLINE(H,O,L,C);
DRAWTEXT_FIX(1,0,0,0,4658),COLORFF60FF;
DRAWTEXT_FIX(1,0.05,0,0,HYBLOCK),COLORFF60FF;
DRAWTEXT_FIX(1,0.1,0,0,FGBLOCK),COLORFF60FF;
DRAWTEXT_FIX(1,0,0.08,0,4659),COLOR6F59FF;
DRAWTEXT_FIX(1,0.05,0.08,0,DYBLOCK),COLOR6F59FF;
股东数:FINVALUE(242),NODRAW;
C90:COST(90),DOTLINE,COLORRED;
X_1:=IF(DYNAINFO(8) 0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
X_2:=DYNAINFO(5) 0.01ORDYNAINFO(6) 0.01;
X_3:=IF(X_2,1,X_1 DYNAINFO(5)+0.01ANDX_1 DYNAINFO(6)-0.01);
CYC243:IF(X_3,0.01*EMA(AMOUNT,243)/EMA(VOL,243),EMA((HIGH+LOW+CLOSE)/3,243)),COLORWHITE,LINETHICK3;
DRAWICON(CROSS(CLOSE,CYC243),HIGH*1.09,42);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_4:=IF(CLOSE/REF(CLOSE,1) =1.0992,1,0);
STICKLINE(X_4,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(X_4,OPEN,CLOSE,0.5,0),COLORYELLOW;
筹码分布(主图)指标截图