TJ1:=(C-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
TJF:=SMA(TJ1,13,8);
TJFF:=SMA(TJ1,13,4);
DRAWBAND(TJF,RGB(114,3,12),TJFF,RGB(0,128,255));
趋势顶:85,COLORFFFF00,LINETHICK1;
风险顶:90,COLORFF7F00,LINETHICK3;
零轴:=0,COLORGREEN;
中轴:=45,COLOR555555;
WEN:=3*SMA((CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100,5,1),3,1);
趋势底:IF(WEN<=10,6,0),LINETHICK1,LINESTICK,COLORGREEN;
HHH:=vol/CAPITAL*100 AND BARSCOUNT(C)>60;
DZ:((EMA(HHH,15)-EMA(HHH,30))+(EMA(C,15)-EMA(C,30)))/2;
DA:EMA(DZ,12);
MAD:=60*(DZ-DA);
STICKLINE(MAD<REF(MAD,1) AND MAD>0,MAD*5+中轴,中轴,1,1),COLORGREEN;
STICKLINE(MAD<REF(MAD,1) AND MAD<0,MAD*5+中轴,中轴,1,1),COLORFFFF00;
STICKLINE(MAD>REF(MAD,1) AND MAD<0,MAD*5+中轴,中轴,1,1),COLOR0099FF;
STICKLINE(MAD>REF(MAD,1) AND MAD>0,MAD*5+中轴,中轴,1,1),COLORRED;
ZD:(DZ*84+中轴),COLORRED;
(DA*84+中轴),COLORFFFFFF;
IF(DZ<=REF(DZ,1),DZ*84+中轴,DRAWNULL),COLORFFF000;
MD:=(MAD<0 AND MAD>REF(MAD,1) AND REF(MAD,1)<REF(MAD,2));
选股买点:IF(MD=1,15,0),LINESTICK,COLORRED;