P:=2;
VAR1:=((AMOUNT)/(vol))/(100);
VAR2:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
VAR3:=((SUM(AMOUNT,14))/(VAR1))/(100);
趋势:Dma(VAR2,(VOL)/(VAR3)),LINETHICK2,COLORFFFFFF;
AMA2:ema(dma(CLOSE,趋势),2),COLORCYAN,LINETHICK2;
AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),COLORBLUE,LINETHICK2;
AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),COLORWHITE,LINETHICK2;