VAR1:=AMOUNT/vol/7;
VAR2:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR3:=SUM(AMOUNT,7)/VAR1/7;
VAR33:=SUM(AMOUNT,25)/VAR1/7;
VAR44:=DMA(VAR2,VOL/VAR33);
长线:(VAR2-VAR44)/VAR44*100,COLORRED ;
FILLRGN(长线>0,长线,0),COLOR32329B;
FILLRGN(0>长线,0,长线),COLOR326400;
{-股票公式网站 }
长均:EMA(长线,7),COLORYELLOW,PRECISION2;
VAR4:=DMA(VAR2,VOL/VAR3);
短线:(VAR2-VAR4)/VAR4*100,COLORMAGENTA,PRECISION2;
-15,LINEDOT;-10,LINEDOT;-5,LINEDOT;0,LINEDOT;5,LINEDOT;10,LINEDOT;15,LINEDOT;
DRAWTEXT(ISLASTBAR,0,'平衡');