以下是指标公式源码和截图
主力散户选股筹码指标公式源码:
N:=5;
VAR1:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*Sma(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),coloryellow,LINETHICK0;
VAR2:8,colorgreen,LINETHICK0;
准备拉升:IF(crOSS(VAR1,VAR2),80,0),stICK,COLOR0000CC,LINETHICK2;
干死:IF(VAR1 =8,25,0),STICK,colorwhite,LINETHICK2;
DRAWTEXT(CROSS(VAR1,VAR2),80,'建仓'),COLOR00FFFF;
VARO5:=LLV(LOW,27);
VARO6:=HHV(HIGH,34);
VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;
建仓区:IF((VARO7 10),80,100),COLOR00CCFF,LINETHICK1;
0,LINETHICK2,COLORFFCC00;
{
选股公式:
N:=5;
VAR1:=4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1);
建仓:CROSS(VAR1,8);
}
JE:=VOL;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
主买:=(QJ0*(JJ-MIN(CLOSE,OPEN)));
主卖:=(QJ0*(MIN(OPEN,CLOSE)-LOW));
TMP:=主买-主卖;
主力活跃度:(主买+主卖)*10000/(2*FINANCE(7)),NODRAW;
STICKLINE(TMP 0,0,主力活跃度,2,0),COLORRED;
STICKLINE(TMP 0,0,主力活跃度,2,0),COLORGREEN;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE OPEN,AA*(HIGH-LOW),IF(CLOSE OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;
卖量:=IF(CLOSE OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;
主力净流入亿元:MA(买量+卖量/2,3)*AMO/V/100000000,COLORYELLOW,LINETHICK1;
主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),colorff00ff,linethick2;
指数:
EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;
强弱分界:80,coloryellow;
主力筹码集中度:WINNER(C)*100,colorred,linethick2;
散筹筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100,colorgreen,linethick2
HH:=IF(C REF(C,1)ANDH REF(L,1),REF(L,1),H);
LL:=IF(C REF(C,1)ANDL REF(H,1),REF(H,1),L);
穿越筹码:=(WINNER(HH)-WINNER(LL))*100,COLORBLUE;
STICKLINE(1,穿越筹码/2,穿越筹码/2,2.5,0),COLORBLUE;
STICKLINE(1,穿越筹码/2,穿越筹码/2,3.2,0),COLOR990000;
STICKLINE(1,穿越筹码/2,-穿越筹码/2,2.5,0),COLORCC0000;
STICKLINE(1,穿越筹码/2,-穿越筹码/2,1.9,0),COLORFF4400;
STICKLINE(1,穿越筹码/2,-穿越筹码/2,1.4,0),COLORFF8800;
STICKLINE(1,穿越筹码/2,-穿越筹码/2,0.4,0),COLORFFCC00;
获利出货码:(PWINNER(1,LL)-WINNER(LL))*100,POINTDOT,COLOR000099;
套牢割肉码:(WINNER(HH)-PWINNER(1,HH))*100,POINTDOT,COLORGREEN;
STICKLINE(获利出货码 0,0,获利出货码,2.5,0),COLORRED;
STICKLINE(获利出货码 0,0,获利出货码,2.8,0)COLOR000066;
STICKLINE(获利出货码 0,0,获利出货码,2.3,0)COLOR000077;
STICKLINE(获利出货码 0,0,获利出货码,1.7,0)COLOR000099;
STICKLINE(获利出货码 0,0,获利出货码,1.2,0)COLOR0000CC;
STICKLINE(获利出货码 0,0,获利出货码,0.1,0)COLORCC66FF;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,2.5,0),COLORGREEN;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,3.2,0),COLOR007700;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,2.8,0),COLOR009900;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,2.1,0),COLOR00BB00;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,1.6,0),COLOR00DD00;
STICKLINE(套牢割肉码 0,0,-套牢割肉码,0.4,0),COLOR00FF00;
A:=90+(100-90)/2;
B:=(100-90)/2;
CC:=COST(A);
DD:=COST(B);
CMJZD:=(CC-DD)/(CC+DD)*100/2;
筹码集中度:MA(CMJZD,3),COLORGRAY;
筹码集中度升:IF(筹码集中度 =REF(筹码集中度,3),筹码集中度,DRAWNULL),COLORRED,LINETHICK2;
筹码集中度降:IF(筹码集中度 REF(筹码集中度,3),筹码集中度,DRAWNULL),COLORFAABEC,LINETHICK2;
比例变化:(筹码集中度-REF(筹码集中度,1))/REF(筹码集中度,1)*100,COLORYELLOW,LINETHICK2;
拉高加仓:IF(筹码集中度 REF(筹码集中度,3)ANDMA(C,20) REF(MA(C,20),3),1,0),COLOR0095FF;
拉高加仓1:STICKLINE(拉高加仓 0,0,筹码集中度*0.33,2.7,0),COLOR0095FF;
STICKLINE(拉高加仓 0,0,筹码集中度*0.33,2.1,0),COLOR0064FF;
STICKLINE(拉高加仓 0,0,筹码集中度*0.33,1.5,0),COLOR0093FF;
STICKLINE(拉高加仓 0,0,筹码集中度*0.33,0.9,0),COLOR00C2FF;
STICKLINE(拉高加仓 0,0,筹码集中度*0.33,0.3,0),COLOR00FFFF;
下跌加仓:IF(筹码集中度 REF(筹码集中度,3)ANDMA(C,20) REF(MA(C,20),3),1,0),COLORFF0066;
下跌加仓1:STICKLINE(下跌加仓 0,0,筹码集中度*0.33,2.7,0),COLORFF0033;
STICKLINE(下跌加仓 0,0,筹码集中度*0.33,2.7,0),COLORFF0066;
STICKLINE(下跌加仓 0,0,筹码集中度*0.33,1.5,0),COLORFF0099;
STICKLINE(下跌加仓 0,0,筹码集中度*0.33,0.9,0),COLORFF00CC;
STICKLINE(下跌加仓 0,0,筹码集中度*0.33,0.3,0),COLORFF00FF;
底:0;
线1:10,COLORLIBLUE,POINTDOT;
线2:20,COLORFF00FF,POINTDOT;
VAR02:=LLV(LOW,10);
VAR03:=HHV(HIGH,25);
支撑线:EMA((CLOSE-VAR02)/(VAR03-VAR02)*4,4),COLORBLUE;
VAR01:=支撑线 REF(支撑线,1)AND支撑线
MA3:=MA(C,3);
VAR04:=HIGH MA3*1.1;
买进:FILTER(CROSS(C,MA3)ANDVAR01,5),STICK,LINETHICK3,COLOR0099FF;
DRAWICON(FILTER(CROSS(C,MA3)ANDVAR01,5),10,35);
卖出:FILTER(VAR04AND支撑线 3,10),STICK,LINETHICK3,COLORFFAA66;
DRAWICON(FILTER(VAR04AND支撑线 3,10),1.5,36);
VARF:=TROUGHBARS(3,15,1)
DRAWTEXT(FILTER(VARF=1,3),5,'庄影'),COLORYELLOW;
主力散户选股筹码指标公式截图