主力进场【副图指标】用于副图辅助
{主力进场【副图指标】主力进场的改版——用于副图辅助}
{主力进场·副图【经典指标】}
RSV30:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
K30:=SMA(RSV30,5,1);
D30:=SMA(K30,3,1);
J30:=(3*K30-2*D30)*1.0;
RSV21:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K21:=SMA(RSV21,13,8);
主力线:=CEILING(SMA(K21,13,8)),COLORRED;
散户线:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),COLORLICYAN;
趋势快线:=EMA(J30,1)COLORRED,LINETHICK1;
趋势慢线:=EMA(J30,3),COLORGREEN,LINETHICK1;
深坑:DRAWBAND(趋势快线,RGB(218,33,33),趋势慢线,RGB(33,218,33));
{DRAWBAND(趋势快线,RGB(139,26,26),趋势慢线,RGB(0,100,0))};
主力线轨迹:主力线,COLORRED,DOTLINE,NODRAW;
散户线轨迹:散户线,COLORLIGREEN,DOTLINE;
VAR01:=1;
VAR02:=1/WINNER(CLOSE);
VAR03:=MA(CLOSE,13);
VAR04:=100-ABS((CLOSE-VAR03)/VAR03*100);
VAR05:=LLV(LOW,75);
VAR06:=HHV(HIGH,75);
VAR07:=(VAR06-VAR05)/100;
VAR08:=SMA((CLOSE-VAR05)/VAR07,20,1);
VAR09:=SMA((OPEN-VAR05)/VAR07,20,1);
VAR10:=REF(LOW,1);
VAR11:=SMA(ABS(LOW-VAR10),3,1)/SMA(MAX(LOW-VAR10,0),3,1)*100;
VAR12:=EMA(IF(CLOSE*1.2,VAR11*10,VAR11/10),3);
VAR13:=LLV(LOW,38);
VAR14:=HHV(VAR12,38);
VAR15:=IF(LLV(LOW,90),1,0);
VAR16:=EMA(IF(LOW<=VAR13,(VAR12+VAR14*2)/2,0),3)/618*VAR15;
VARA:=3*VAR08-2*SMA(VAR08,15,1);
VARB:=3*VAR09-2*SMA(VAR09,15,1);
VARC:=100-VARB;
庄影:VAR16>=(0.01),NODRAW,COLORLICYAN;
庄影柱:STICKLINE(VAR16,0,VAR16,1,1),COLORLICYAN;
新庄:=(100-IF(VAR02>5,IF(VAR02<100,VAR02,VAR04-10),0))*VAR01,COLORBROWN,NODRAW;
新庄图标:=STICKLINE(1,新庄,100,0,0),COLORBROWN;
MA333:MA(新庄,5),COLOR555555,DOTLINE,NODRAW;
多头持仓:STICKLINE(MA333=100,102,103,1.5,0)COLORRED;
短线超跌:STICKLINE(趋势快线<(0),-3,-2,1.5,0)COLORYELLOW;
VAR1控盘:=EMA(EMA(CLOSE,13),13);
控盘:=(VAR1控盘-REF(VAR1控盘,1))/REF(VAR1控盘,1)*1000;
控1:=STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;
控2:=STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF;
无庄控盘:=控盘<0;
控3:=STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF;
有庄控盘:=控盘>REF(控盘,1) AND 控盘>0,NODRAW,COLORMAGENTA;
VAR2控盘:=100*WINNER(CLOSE*0.95);
控4:=STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLORFFFF00;
主力出货:=控盘<REF(控盘,1) AND 控盘>0;
控5:=STICKLINE(VAR2控盘>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,1),COLOR00FFFF;
高度控盘:=VAR2控盘>50 AND COST(85)<CLOSE AND 控盘>0,COLOR00FFFF,LINETHICK2;
A101:=CROSS(控盘,0);
控盘B:=FILTER(IF(A101,1,0),5);
AT:=IF(CAPITAL=0,AMOUNT/100000000,VOL/CAPITAL*100);
ATM1:=EMA(AT,5);
ATM2:=MA(AT,13);
阶段地量:=AT<REF(LLV(AT,25),1) && ATM1<ATM2;
地量1:=STICKLINE(阶段地量,0,HHV(V,15),2.21,1),COLORGREEN;
地量2:=STICKLINE(阶段地量,0,HHV(V,15),2.21,1),COLORGREEN;
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL)COLORWHITE,NODRAW;
VVOL图标:=STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLORLIBLUE;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,38);
VAR6:=HHV(VAR4,38);
VAR7:=IF(LLV(LOW,90),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
DD:=VAR8>5;
VAR1S:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2S:=SMA(ABS(LOW-VAR1S),13,1)/SMA(MAX(LOW-VAR1S,0),10,1);
VAR3S:=EMA(VAR2S,10);
VAR4S:=LLV(LOW,33);
VAR5S:=EMA(IF(LOW<=VAR4S,VAR3S,0),3);
主力进场:=IF(VAR5S>REF(VAR5S,1),VAR5S,0)*1.1,LINETHICK1,COLORRED;
进场柱:=STICKLINE(VAR5S>REF(VAR5S,1),0,VAR5S,1.80,1 ),COLORRED;
震仓:=IF(VAR5S<REF(VAR5S,1),VAR5S,0),COLORGREEN;
A:=(启动 CROSS 洗盘);
成交量:=VOL,VOLSTICK,COLORLIBLUE;
启动5日量:=MA(成交量,5)COLORWHITE;
洗盘35日量:=MA(成交量,35)COLORYELLOW;
异动135日量:=MA(成交量,135)COLORMAGENTA;
AB:=(启动 CROSS 洗盘);
BB2:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSE>OPEN,BB2*(HIGH-LOW),IF(CLOSE<OPEN,BB2*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买:主动买/10000,COLORRED,LINETHICK1,NODRAW;
主动卖:=IF(CLOSE>OPEN,0-BB2*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB2*(HIGH-LOW),0-VOL/2));
主卖:-主动卖/10000,COLORGREEN,LINETHICK1,NODRAW;
参与:主买/(主买+主卖),NODRAW,COLORLIBLUE;
盘比:(主买/主卖),NODRAW,COLORYELLOW;
量比:DYNAINFO(17),NODRAW,COLORRED;
买入:=IF((COUNT(DD,2)=2),-20,0)COLORBLACK;
底:IF(FILTERX((CROSS(震仓,主力进场)AND 买入=-20),10),100,0),STICK,COLORMAGENTA,LINETHICK1;
VAR881:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR82:=SMA(ABS(LOW-VAR881),13,1)/SMA(MAX(LOW-VAR881,0),10,1);
VAR83:=EMA(VAR82,10);
VAR84:=LLV(LOW,33);
VAR85:=EMA(IF(LOW<=VAR84,VAR83,0),5);
惨跌:=STICKLINE(VAR85>REF(VAR85,1),0,VAR85,1,0),COLORGREEN;
洗盘阴:=STICKLINE(VAR85<REF(VAR85,1) AND C<O,0,VAR85,1,0),COLORLIBLUE;
主力拉升:=STICKLINE(VAR85<REF(VAR85,1),0,VAR85,1,0),COLORLIMAGENTA;
跌:STICKLINE(VAR85>REF(VAR85,1),0,VAR85,1,0),COLORGREEN;
洗:STICKLINE(VAR85<REF(VAR85,1) AND C<O,0,VAR85,1,0),COLORWHITE;
拉:STICKLINE(VAR85<REF(VAR85,1),0,VAR85,1,0),COLORRED;
50,COLORLICYAN,DOTLINE;
100,COLORRED;
0,COLORLICYAN;
超涨:DRAWTEXT(FILTERX(趋势快线>(100),10),108,'超涨')COLOR0099FF;
超跌:DRAWTEXT(FILTERX(趋势快线<(0),10),-8,'超跌')COLORCYAN;