{主力}J:=MAX(MA(C,30),MA(C,60));K:=MIN(MA(C,30),MA(C,60));MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;MADKX:=MA(DKX,6);MDD:=(DKX-MADKX)*1.2;V1:=(C*2+H+L)/4*10;V2:=EMA(V1,6)-EMA(V1,55); V3:=EMA(V2,6); V4:=2*(V2-V3)*5.5; V5:=(V2-V3)*0.06;V6:=MDD+V5;STICKLINE(V6>=0,20,0,5,0),COLOR000066,LINETHICK2;STICKLINE(V6<0,20,0,5,0),COLOR006600,LINETHICK2;
{六---彩神龙}M:=13;N:=30;A01:=(C+O+L+H)/4;A02:=(WINNER((A01 * 1.04)) * 100.000);A03:=(WINNER((A01 * 0.96)) * 100.000);A04:=A03,NODRAW;A08:=A02-A03,NODRAW;A06:=( 100.000 - A02),NODRAW;STICKLINE( 1.000,0,A04, 0,0),COLORRED;STICKLINE( 1.000, 100.000,A02, 0,0),COLORGREEN;{ 公式源码 }主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORWHITE,LINETHICK2;{底:IF(主力持仓<5,10,0),COLORYELLOW,LINETHICK1;顶:IF(主力持仓>90,90,100),COLORLIGREEN,LINETHICK1;}
{RSI}{N1:=6;N2:=12;N3:=24;LC:=REF(CLOSE,1);RSI:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORLIBLUE,LINETHICK1;STICKLINE(RSI<20,20,RSI,1,0), COLORLIRED;STICKLINE(RSI>80,80,RSI,1,0), COLORCYAN;}VAR1:=1;VAR2:=1/WINNER(CLOSE);VAR3:=MA(CLOSE,13);VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/100;VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);VARA:=3*VAR8-2*SMA(VAR8,15,1);VARB:=3*VAR9-2*SMA(VAR9,15,1);VARC:=100-VARB;趋势: (VARA)*VAR1,COLORYELLOW;
{吸筹}VAR01:=(CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100;VAR02:=SMA(VAR01,4,1);VAR03:=SMA(VAR02,2,1);主力建仓:=(VAR03<8.5 AND VAR02<11),COLORGRAY;STICKLINE(主力建仓,0,-5,2,0),COLORCYAN;
H01:=MAX(DYNAINFO(3),DYNAINFO(5));L01:=MIN(DYNAINFO(3),DYNAINFO(6));P01:=H01-L01;阻力:=L01+P01*8/9,COLORCYAN,LINETHICK1;支撑:=L01+P01*0.5/9,COLORFF66FF,LINETHICK1;STICKLINE(LONGCROSS(支撑,C,2),0,100,0,-1),COLORRED;STICKLINE(LONGCROSS(C,阻力,2),0,100,0,-1),COLORGREEN;
{捡钱}VARJ1:=EMA(EMA(CLOSE,13),13);控盘2:=(VARJ1-REF(VARJ1,1))/REF(VARJ1,1)*1000;STJ01:=控盘2<REF(控盘2,1) AND 控盘2>0.5;STJ02:=控盘2>0;BTJ2:=控盘2>REF(控盘2,1) AND 控盘2<-0.2;BTJ22:=控盘2>REF(控盘2,1) AND 控盘2<0 ;JJ:=DYNAINFO(11);P:=55;S:=8;M1:=3;能量:=(EMA(CLOSE,S)-EMA(C,P))*10;空头:=EMA(能量,M1),COLOR00FF00;BTJ1:=(CLOSE-JJ)/JJ<-0.005;BTJ11:=(CLOSE-JJ)/JJ<-0.03;BTJ12:=COUNT(JJ>=REF(JJ,1),5)>=4 AND (CLOSE-JJ)/JJ<0.005;STJ1:=(C-JJ)/JJ>0.005;BTJ3:=CROSS(能量,空头) AND 能量<-0.3;BTJ32:=CROSS(能量,空头) AND 能量<-0.1;STJ31:=CROSS(空头,能量);STJ32:=CROSS(空头,能量) AND 能量>1.618;A:=8;BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,A);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,A);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,A);时长:=IF(HOUR>=9 AND HOUR<14 ,1,0);捡钱:=BTJ811 AND TIME>15 AND 时长;DRAWTEXT(捡钱,主力持仓,'●'),COLORYELLOW;
{底}AVAR2:=REF(LOW,1);AVAR3:=SMA(ABS(LOW-AVAR2),13,1)/SMA(MAX(LOW-AVAR2,0),13,1)*100;AVAR4:=EMA(IF(CLOSE*1.2,AVAR3*13,AVAR3/13),13);AVAR5:=LLV(LOW,34);AVAR6:=HHV(AVAR4,34);AVAR7:=IF(LLV(LOW,56),1,0);AVAR8:=EMA(IF(LOW<=AVAR5,(AVAR4+AVAR6*2)/2,0),3)/618*AVAR7;AA0:=AVAR8>REF(AVAR8,1);DJ:=REF(LLV(L,100),3);ZD:=REFDATE(DJ,DATE);XG9:=L=ZD;XGA:=AA0 AND XG9;XG1:=XGA>REF(XGA,1);底0:=XG1>REF(XG1,1);DRAWTEXT(底0,0,'●'),COLORBLUE;{DRAWTEXT(RSI>80 AND 主力持仓>90,主力持仓,'●'),COLORGREEN;};{ 公式源码 }0,COLORRED;20,COLORLIRED,DOTLINE;80,COLORCYAN,DOTLINE;100,COLORGREEN;