TT:=(2*CLOSE+OPEN+HIGH+LOW);
主导动能:TT/EMA(TT,4)-1;
FF:=(主导动能*500)+50;
STICKLINE(FF,50,FF,3.2,0),COLOR33CFDD;
STICKLINE(FF,50,FF,2.8,0),COLOR33DFDD;
STICKLINE(FF,50,FF,2,0),COLOR33EFDD;
STICKLINE(FF,50,FF,1,0),COLOR33FFDD;
STICKLINE(FF<50,50,FF,3.2,0),COLOR00CC00;
STICKLINE(FF<50,50,FF,2.8,0),COLOR00DD00;
STICKLINE(FF<50,50,FF,2,0),COLOR00EE00;
STICKLINE(FF<50,50,FF,1,0),COLOR00FF00;
STICKLINE(FF>REF(FF,1)AND FF<50,50,FF,3.2,0),COLORFF9900;
STICKLINE(FF>REF(FF,1)AND FF<50,50,FF,2.8,0),COLORFFAA00;
STICKLINE(FF>REF(FF,1)AND FF<50,50,FF,2,0),COLORFFBB00;
STICKLINE(FF>REF(FF,1)AND FF<50,50,FF,1,0),COLORFFCC00;
STICKLINE(FF>REF(FF,1)AND FF>50,50,FF,3.2,0),COLOR0000CC;
STICKLINE(FF>REF(FF,1)AND FF>50,50,FF,2.8,0),COLOR0000DD;
STICKLINE(FF>REF(FF,1)AND FF>50,50,FF,2,0),COLOR0000EE;
STICKLINE(FF>REF(FF,1)AND FF>50,50,FF,1,0),COLOR0000FF;
{黑马一号}
AHC1:=CLOSE*VOL;
AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
通道:=1.0668*AHC22;
起爆:=CROSS(C,通道) AND REF(C,1)*1.05-C<0.008 AND C>O*0.5;
黑马一号:IF(起爆,40,0);
{黑马启动}
AC1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
AC2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),AC1);
金线王:=EMA(AC2,200)*1.118;
条件:=(C-REF(C,1))/REF(C,1)*100>8;
黑马启动:IF(CROSS(C,金线王) AND 条件,39,0);
{黑马必抓}
AA05:=MA(C,5);
AA30:=MA(C,30);
MA05:=MA(C,5);
MA10:=MA(C,13);
MAC30:=MA(C,34);
速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3);
五日乖离率:=(C-AA05)/AA05*100;
三拾日乖离率:=(C-MAC30)/MAC30*100;
MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;
黑马必抓:IF(FILTER(MR,10),38,0);
{拉升}
LS:=C/REF(C,1)>1.048 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
拉升:IF(FILTER(LS,28),37,0);
{粉量}
VOLUME := VOL;
MAVOL1 := MA(VOLUME,5);
MAVOL2 := MA(VOLUME,34);
MAVOL3 := MA(VOLUME,135);
XG := IF(CROSS(0.6,((((1 / VOL) * 3000) > 0.01) AND (KDJ.J < 0)) AND (CCI.CCI < -100)),VOLUME * 5,0);
XGG := XG > 0;
ABC := (VOL >= (REF(V,1) * 1.91)) AND (C > (REF(C,1) * 1.01));
ABC1 := VOL < REF(LLV(VOL,13),1);
ABC2 := VOL < REF(LLV(VOL,55),1);
ABC3 := ((ABS(VOL - REF(VOL,1))) / REF(VOL,1)) <= 0.05;
ABB1:= STICKLINE(ABC1,0,V,1,0);
BBB1:= STICKLINE(ABC2,0,V,1,0);
绿量:= (ABB1 = 1) AND (COUNT(OPEN < CLOSE,1));
粉量:= BBB1 = 1;
地量: IF((XGG AND 绿量) OR (XGG AND 粉量),36,0);
{趋势线}
趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORWHITE;
IF(趋势>=REF(趋势,1),趋势,DRAWNULL),COLORRED;
IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN;
{长期趋势金叉}
P1:=5;
P2:=4;
VARRA:=LLV(LOW,P1);
VARRB:=HHV(HIGH,P1);
涨停动力线:=EMA((CLOSE-VARRA)/(VARRB-VARRA)*100,P2);
涨停趋势线:=EMA(0.667*REF(涨停动力线,1)+0.333*涨停动力线,2);
金叉:=CROSS(涨停动力线,涨停趋势线);
钻石:IF(金叉 AND 趋势<25,15,0);
{与主力共生死}
价量:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
主线:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25);
快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25);
买入111:=快线>REF(快线,1) AND REF(快线,1)=0 AND REF(快线,2)=0 AND C>REF(O,1);
买入222:=快线>REF(快线,1) AND REF(快线,1)=0 AND REF(快线,1)<REF(快线,2) AND REF(快线,2)<40;
卖出111:=快线<REF(快线,1) AND REF(快线,1)=100 AND REF(快线,2)<=100;
快买:IF(买入111 OR 买入222,20,0);
快卖:IF(卖出111,85,100);
{超级支撑压力}
短压:=HHV(LOW,20);
中线:=MA(CLOSE,3);
短期底部:=(LLV(HIGH,30) * 0.93);
短期支撑:=LLV(CLOSE,13),COLOR6803C7;
中期大底:=LLV(LOW,30);
长期底部:=LLV(HIGH,30);
MA30:=LLV(HIGH,30);
短期底部二:=SMA(CLOSE,2,1);
下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
{//标注}
上:=(SMA(LOW,5,2) * 0.96);
AA1:=((((LOW <= 上) AND (HIGH >= 短期底部)) AND (CLOSE >= 长期底部)) AND ((CLOSE / OPEN) > 1.03));
AA2:=FILTER(((((LOW <= MA30) AND (CLOSE > MA30)) AND (CLOSE > OPEN)) AND (短期底部二 <= MA30)),8);
超级组合1:IF(AA1 ,30,0);
超级组合2:IF(AA2 ,30,0);
{股价准备启动}
VAR11:=3;
VAR21:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));
准备启动:IF(CROSS(VAR21,VAR11) ,55,0);
{★底}
VAR2W:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
MW:=EMA(VAR2W,3);
VAR3W:=EMA(VAR2W,7);
M1:=EMA(VAR3W,5);
MB1:=CROSS(MW,M1) AND M1<20;
TJ2:=IF((MB1),20,0),LINETHICK1,COLORRED;
星底:IF(CROSS(MW,M1) AND M1<20 ,34,0);
{反弹}
A1:=HHV(HIGH,50)/LLV(LOW,100)>1.5;
A2:=(HHV(HIGH,50)-LOW)/(HHV(HIGH,50)-LLV(LOW,100));
A3:=(LOW-LLV(LOW,100))/(HHV(HIGH,50)-LLV(LOW,100));
A4:=HHVBARS(HIGH,50)<LLVBARS(LOW,100);
A5:=A1 AND A2>0.5 AND A3>0.3 AND A4;
A6:=COUNT(A5,20)=1;
反弹:=IF(A6 AND A5 ,33,0);
{当心反弹}
A:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
K:=SMA(A,2,1);
Q:=A*1.03;
反弹1: IF(CROSS(Q,15) AND K>REF(K,1),32,0) AND 趋势>REF(趋势,1),LINETHICK2,COLOR95FFCC;
{反弹}
VAR110:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR120:=REF(VAR110,1);
VAR130:=SMA(MAX(VAR110-VAR120,0),10,1)/SMA(ABS(VAR110-VAR120),10,1)*100;
底部不远:=IF(COUNT(VAR130<=14,2),30,0),COLORMAGENTA,LINETHICK2;
反弹2:IF(CROSS(VAR130,底部不远) AND VOL>1.5*MA(VOL,5),31,0);
{黄金反弹}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K1:=SMA(RSV,3,1),COLORWHITE;
D1:=SMA(K1,3,1),COLORYELLOW ;
BIAS1:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
A11:=CROSS(K1,D1) AND CROSS(K1,D1)<16 AND BIAS1<-6;
黄金反弹:IF(A11 AND 金叉,29,0),COLORFF00FF;
AB1:=C-REF(C,1);
AB2:=100*EMA(EMA(AB1,6),6)/EMA(EMA(ABS(AB1),6),6);
买进1:=(LLV(AB2,2)=LLV(AB2,7) AND COUNT(AB2<0,2) AND CROSS(AB2,MA(AB2,2)));
买进:IF(买进1,10,0);
A7:=REF(C,1)-C;
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
卖出1:=(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)));
卖出:IF(卖出1,90,100);
{低吸}
VARJ1:=LLV(LOW,21);
VARJ2:=HHV(HIGH,21);
AKJ1:=EMA((((CLOSE - VARJ1) / (VARJ2 - VARJ1)) * 100),5);
AKJ:=EMA((((CLOSE - VARJ1) / (VARJ2 - VARJ1)) * 50),13);
低吸:IF(CROSS(AKJ1,AKJ),28,0);
{买卖点}
MVAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
MVAR2:=REF(MVAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
MVAR3:=REF(MVAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
MVAR4:=REF(MVAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
MVAR5:=REF(MVAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
MVAR6:=REF(MVAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
MVAR7:=REF(MVAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE< |