BB:=MA(AA,3);
CC:=SUM(IF(AA>REF(AA,1),AA*VOL,0),4)/SUM(IF(AA<REF(AA,1),AA*VOL,0),4);
DD:=REF(100-(100/(1+CC)),1);
A1:=HHV(AA,15);
A2:=LLV(AA,15);
A3:=A1-A2;
A4:=EMA((AA-A2)/A3,2)*100;
B1:=HHV(AA,60);
B2:=LLV(AA,60);
B3:=B1-B2;
B4:=EMA((AA-B2)/B3,2)*100;
C1:=HHV(AA,240);
C2:=LLV(AA,240);
C3:=C1-C2;
C4:=EMA((AA-C2)/C3,2)*100;
短期:A4,COLOR0000FF,LINETHICK1;
中期:B4,COLORGREEN,LINETHICK1;
长期:C4,COLOR00DEDE,LINETHICK1;
STICKLINE(短期>90 AND 中期>70,86,94,6,0),COLOR00FF00;
STICKLINE(短期<5 AND 中期<30,0,8,6,0);
IF(FILTER(中期<REF(中期,1)AND 中期>90 AND BB<REF(BB,1),5),80,100),COLORBLUE,LINETHICK2;
IF(FILTER(中期>REF(中期,1)AND 中期<5 AND C>REF(C,1),5),20,0),COLORDE00DE,LINETHICK2;
D1:=中期>REF(中期,1)AND 短期>REF(短期,1)AND 长期>REF(长期,1)AND 长期<8 AND 中期<10 AND 短期<15;
D2:=CROSS(短期,中期)AND 中期<8;
D3:=CROSS(短期,长期)AND 长期<8 AND 中期<20;
DRAWICON(FILTER((D1 OR D2 OR D3) AND DD<15 AND C>REF(C,1),5),5,1);
DRAWICON(FILTER((中期<REF(中期,1)AND 短期<REF(短期,1)AND 长期<REF(长期,1)AND 中期>95 AND 短期>85)OR (长期>100 AND 中期>100 AND 短期>100),5),95,2);
主力:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),LINETHICK2,COLORYELLOW;
VAR001:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR002:=SMA(ABS(LOW-VAR001),13,1)/SMA(MAX(LOW-VAR001,0),10,1);
VAR003:=EMA(VAR002,10);
VAR004:=LLV(LOW,33);
VAR005:=EMA(IF(LOW<=VAR004,VAR003,0),5);
VAR021:=SMA(ABS(HIGH-VAR001),13,1)/SMA(MIN(HIGH-VAR001,0),10,1);
VAR031:=EMA(VAR021,10);
VAR041:=HHV(HIGH,33);
VAR051:=EMA(IF(HIGH>=VAR041,VAR031,0),3)*-1;
STICKLINE(VAR005>REF(VAR005,1) AND VAR005<=100,100,100-1*VAR005,3,0 ),COLORRED;
STICKLINE(VAR005>REF(VAR005,1) AND VAR005>100,100,0,3,0 ),COLORRED;
STICKLINE(VAR005<REF(VAR005,1) AND VAR005<=100,100,100-1*VAR005,3,100),COLORGREEN;
STICKLINE(VAR005<REF(VAR005,1) AND VAR005>100,100,0,3,100),COLORGREEN;
STICKLINE(VAR051>REF(VAR051,1) AND VAR051<=100,0,VAR051,3,0),COLORYELLOW;
STICKLINE(VAR051>REF(VAR051,1) AND VAR051>100,0,100,3,0),COLORYELLOW;
STICKLINE(VAR051<REF(VAR051,1) AND VAR051<=100,0,VAR051,3,0 ),COLORBLUE;
STICKLINE(VAR051<REF(VAR051,1) AND VAR051>100,0,100,3,0 ),COLORBLUE;
VAR052:=SMA(ABS(VAR001-H),13,1)/SMA(MAX(VAR001-H,0),10,1);
VAR054:=HHV(H,10);
VAR055:=EMA(IF(H>=VAR054,VAR003,0),5);
VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
VAR03:=CROSS(VAR02,VAR01);
VAR04:=REF(VAR02,2)<REF(VAR02,1) AND VAR02<REF(VAR02,1);
VAR05:=COUNT(VAR03,7)>0 AND VAR04;
VAR06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR07:=SMA(ABS(LOW-VAR06),13,1)/SMA(MAX(LOW-VAR06,0),10,1);
VAR08:=EMA(VAR07,10);
VAR09:=EMA(C,5);
VAR10:=LLV(LOW,33);
VAR11:=EMA(IF(LOW<=VAR10,VAR09,0),3)*40;
VAR12:=IF(VAR11>100,VAR11*0.312,VAR11);
资金:IF((VAR02*2)<=100,VAR02*2,100),COLORLIMAGENTA;