VARA:=REF(LOW,1);
VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;
VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
VARD:=LLV(LOW,30);
VARE:=HHV(VARC,30);
VARF:=IF(MA(CLOSE,58),1,0);
VARG:=EMA(IF(LOW<= VARD,(VARC+VARE*2)/2,0),3)/618*VARF;
VARH:=IF(VARG> 100,100,VARG);
吸筹:STICKLINE(VARH> -120,0,VARH,6,1),COLORBLUE;
A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;
长期线:A+100,COLOR9900FF;
短期线:=B+100,COLOR888888;
中期线:D+100,COLORYELLOW,LINETHICK2;
见顶:=((REF(中期线,1)> 85 AND REF(短期线,1)> 85 AND REF(长期线,1)> 65) AND CROSS(长期线,短期线)) ,COLORGREEN;
顶部区域:=(中期线< REF(中期线,1) AND REF(中期线,1)> 80) AND (REF(短期线,1)> 95 OR REF(短期线,2)> 95 ) AND 长期线> 60 AND 短期线< 83.5 AND 短期线< 中期线 AND 短期线< 长期线+4,COLORGREEN;
顶部:=FILTER(顶部区域,4);
STICKLINE( {见顶 OR} 顶部,99,103,5,0 ),COLORRED,LINETHICK2;
底部区域:=(长期线< 12 AND 中期线< 8 AND (短期线< 7.2 OR REF(短期线,1)< 5) AND (中期线> REF(中期线,1) OR 短期线> REF(短期线,1))) OR (长期线< 8 AND 中期线< 7 AND 短期线< 15 AND 短期线> REF(短期线,1)) OR (长期线< 10 AND 中期线< 7 AND 短期线< 1) ,COLORGREEN;
STICKLINE( 底部区域,-4,0,3,0 ),COLORGREEN;
低位金叉:=50*(长期线< 15 AND REF(长期线,1)< 15 AND 中期线< 18 AND 短期线> REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线> 中期线 AND (REF(短期线,1)< 5 OR REF(短期线,2)< 5 ) AND (中期线>= 长期线 OR REF( 短期线,1)< 1 ))COLORYELLOW;
{减仓}
LC1:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC1),0),3,1) / SMA(ABS((CLOSE - LC1)),3,1)) * 100);
FF:=EMA(CLOSE,3);
DRAWTEXT(CROSS(85,RSI),75,'减仓'),COLORGREEN;
{跟着庄家进}
R1:=(((MA(CLOSE,5))-CLOSE)/CLOSE> 3/100);
R2:=((MA(CLOSE,10))-(MA(CLOSE,5)))/(MA(CLOSE,5))> 0.03;
R3:=(LLV(CLOSE,20)=LLV(CLOSE,30));
大:=(R1 AND R2 AND R3);
大A:=FILTER(大,5);
买:STICKLINE(大A,80,0,2,0),COLORYELLOW;
跟着庄家进:=IF(大A,1,0),COLORRED;
{底部选股}
VAR15:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;
VAR25:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR35:=SMA(VAR25,13,8);
VAR45:=SMA(VAR15,21,8);
X2:=CEILING(SMA(VAR35,13,8));
X1:=X2-VAR45 ;
底部选股:IF(X2-VAR45< (-80),30,0),COLORCYAN;
{超级短线买点}
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),5,1)/SMA(ABS(CLOSE-AA),5,1)*1000;
HHH:=BBB-LLV(BBB,10);
SS:=(MA(HHH,2)*3+HHH*13)/16;
短线买点:=IF(SS> 13,MA(SS,2),SS);
Z:=21;
超级短线买点:IF(CROSS(短线买点,21),50,0),COLORWHITE;
{机构增减仓}
VAR28:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR38:=SMA(VAR28,4,1);
VAR48:=SMA(VAR38,2,1);
趋势线2:=VAR28;
均线:=MA(VAR28,10);
机构增仓:IF(VAR48< 14 AND VAR38<11,80,0),COLOR0000FF;
机构减仓:IF(VAR48> 82 AND VAR38>89,80,0),COLOR00FF00;
A11:=REF(C,1);
RSI11:=SMA(MAX(C-A11,0),6,1)/SMA(ABS(C-A11),6,1)*100;
A1:=C-MA(C,5)/MA(C,5)*100< 1;
A2:=C-MA(C,13)/MA(C,13)*100< -10;
A3:=C-MA(C,34)/MA(C,34)*100< -15;
A4:=RSI11< 18;
TYP := (HIGH + LOW + CLOSE)/3;
A5:=(TYP-MA(TYP,14)/(0.015*AVEDEV(TYP,14)))< -120;
组合底部:(A1 AND A2 AND A3 AND A4 AND A5)*100,COLOR00FFFF;
{}
VAR3A:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;
VAR4A:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR5A:=SMA(VAR4A,13,8);
VAR6A:=SMA(VAR3A,21,8);
趋势:=CEILING(SMA(VAR5A,13,8)),LINETHICK2,COLOR0000FF;
看底:IF((趋势-VAR6A< (-65)),1,6),COLOR00FF00;
顶峰:IF((趋势-VAR6A> 85),95,100),COLORF0F000;