P1:=5;P2:=4;SSRCJL:=EMA(VOL,13);SSRCJE:=EMA(AMOUNT,13);SSRCBJX:=((SSRCJE / SSRCJL) / 100);SSRGL:=(((CLOSE - SSRCBJX) / SSRCBJX) * 100);绝对底:SSRGL<(0-18),COLORRED;大底:SSRGL<(0-14),COLORFF00FF;中底:SSRGL<(0-10),COLORYELLOW;短底:SSRGL<(0-6), COLORBLUE;STICKLINE((SSRGL < (0 - 18)),60,80,3,0),COLORRED;STICKLINE((SSRGL < (0 - 14)),40,60,3,0),COLORFF00FF;STICKLINE((SSRGL < (0 - 10)),20,40,3,0),COLORYELLOW;STICKLINE((SSRGL < (0 - 6)),0,20,3,0), COLORBLUE;20,POINTDOT,COLOR00BCBE;N:=3;R:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,COLORWHITE;A1:=REF(R,N)=HHV(R,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N);{高点}R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S11:=R11>REF(R11,1);DRAWLINE(D1,R,S11,R,1),COLORBLUE;A2:=REF(R,N)=LLV(R,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);{低点}T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1); U11:=T11>REF(T11,1);DRAWLINE(D2,R,U11,R,1),COLORBLUE;M:=INTPART(3*N/5);A12:=REF(R,M)=HHV(R,2*M+1);B12:=FILTER(A12,M);C12:=BACKSET(B12,M+1);D12:=FILTER(C12,M);{高点}R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1); S112:=R112>REF(R112,1);DRAWLINE(D12,R,S112,R,1),COLORYELLOW;A22:=REF(R,M)=LLV(R,2*M+1);B22:=FILTER(A22,M);C22:=BACKSET(B22,M+1);