N:=5;
VAR1:=REF(CLOSE,1);
VAR2:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
VAR3:=(CLOSE-VAR1)*VAR2;
VAR4:=SUM(VAR3,0);
VAR5:=SMA(VAR4,10,1);
VAR6:=SMA(VAR4,20,1);
LON:VAR5-VAR6;
LONMA:MA(LON,N);
红升:IF(LON>=LONMA,LON,DRAWNULL),COLORRED,LINETHICK2;
蓝降:IF(LON<LONMA,LONMA,DRAWNULL),COLORBLUE,LINETHICK2;