DRAWBAND(动能A,RGB(200,0,200),动能B,RGB(200,200,200));
STICKLINE(A2 0,0,A2,0.5,0),COLORRED;
STICKLINE(A2 0,0,A2,0.5,1),COLORGREEN;
VAR2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
VAR3:=SMA(SMA(VAR2,3,1),3,1);
VAR4:=EMA(VAR3,5);
AA:=VOL =REF(V,1)*1.91 AND C REF(C,1)*1.01;
BB:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR1010FF;
AA1:=STICKLINE(动能A 动能B,0,-3,2,0);
BB1:=STICKLINE(动能A 动能B,0,3,2,0);
持币:AA1,COLOR00FF00;
持股:BB1,COLORRED;
底部:STICKLINE(CROSS(BB,9),0,10,1.7,0),COLORFF00FF;
STICKLINE(CROSS(BB,9),10,20,1.5,0),COLOR00FFFF;
STICKLINE(CROSS(BB,9),20,30,1,0),COLORRED;
DRAWTEXT(CROSS(BB,9),30,'底部'),COLOR00FFFF;
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
综合乖离:MA(BIAS,3),COLORFFFF00,LINETHICK0;
BIAS底A:IF(综合乖离 -18,12,0),COLORFF00FF,LINETHICK2;
BIAS底B:IF(综合乖离 -12,10,0), COLOR0000CC,LINETHICK2;
BIAS底C:IF(综合乖离 -6,8,0),COLORFFFF00,LINETHICK2;
BIAS底D:IF(综合乖离 0,6,0),COLOR00FFFF,LINETHICK2;
UP:SUM(VAR2,13),NODRAW;
趋势线: 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),LINETHICK2,COLORMAGENTA;
见底线: 10,LINETHICK2,COLORYELLOW;
准备抄底: IF(趋势线 =10,50,0),LINETHICK1,COLORRED;
DRAWTEXT(CROSS(准备抄底,8),55,'准备'),COLOR00FF00,COLORRED;
猎豹出击: IF(CROSS(趋势线,见底线),82,0),LINETHICK2,COLORGREEN;
DRAWICON(猎豹出击 0,100,13),COLORYELLOW;
DRAWTEXT(CROSS(猎豹出击,8),89,'猎豹出击'),COLOR00FF00,COLORGREEN;
选股条件出现:猎豹出击和精准捕底红柱出现共振改选股
公式模块:
BB:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR1010FF;
底部:=CROSS(BB,9);
趋势线:= 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);
见底线:= 10;
猎豹出击:= IF(CROSS(趋势线,见底线),82,0);
XG:CROSS(猎豹出击,8)AND 底部;