{主图 交易机器人}
H1:EMA(C,8);
H2:EMA(H1,20);
VAR1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;
VAR2:=SMA(VAR1,5,1);
VAR3:=SMA(VAR2,8,1);
VAR4:=CROSS(VAR2,VAR3) AND VAR3< 20;
VAR5:=C>LLV(C,60)*1.13 AND VAR4;
VAR6:=IF(C>200,VAR4,VAR5);
STICKLINE(H1>H2,H1,H2,0,1),COLORRED;
STICKLINE(H1< H2,H1,H2,0,1),COLORGREEN;
{副图 大波动KDJ}
0,COLORRED;20,COLORRED;80,COLORRED;100,COLORRED;
N:=9; M:=3; P:=3;
周KDJ:=(MA(C,3)-LLV(LOW,5*N))/(HHV(HIGH,5*N)-LLV(LOW,5*N))*100;
周K:SMA(周KDJ,2*M,1);
周D:SMA(周K,2*P,1),COLORGREEN;
周J:3*周K-2*周D,COLORYELLOW;
STICKLINE(CROSS(周J,周D),0,20,1,0),COLORRED;
STICKLINE(CROSS(周D,周J),80,100,1,0),COLORRED;