N:=120;P1:=5;P2:=8;P3:=21;
A:=HHV(AMO,5);
A1:=BArslAST(AMO=A);
A2:=REF(C,A1);
量界:A2;
Y:=HHV(A2,N);
X:=Y;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(X)),
REF(HIGH,BARSLAST(X)),1,1),COLOREA91B5,LINETHICK3;
B1:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
B2:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);
B3:=IF(B2,1,(B1<(DYNAINFO(5)+0.01) && B1>(DYNAINFO(6)-0.01)));
C1:IF(B3,0.01*expma(AMOUNT,P1)/EXPMA(vol,P1),EMA((HIGH+LOW+CLOSE)/3,P1)),LINETHICK2,COLORYELLOW;
C2:IF(B3,0.01*EXPMA(AMOUNT,P2)/EXPMA(VOL,P2),EMA((HIGH+LOW+CLOSE)/3,P2))COLORRED;
C3:IF(B3,0.01*EXPMA(AMOUNT,P3)/EXPMA(VOL,P3),EMA((HIGH+LOW+CLOSE)/3,P3))COLORLIBLUE;
C∞:IF(B3,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(7)),EMA((HIGH+LOW+CLOSE)/3,120))COLORLIGREEN,LINETHICK3;
{ _通达信股票指标公式}
VAR1111:=BacKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR2222:=crOSS(VAR1111,0.9);
VAR3333:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR4444:=CROSS(VAR3333,0.9);
压力:= REF(HIGH,BARSLAST(VAR2222));
STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222)),0.5,1),COLOREA91B5,LINETHICK3;
支撑:= REF(LOW,BARSLAST(VAR4444));
STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4444)),REF(LOW,BARSLAST(VAR4444)),0.5,1),COLOR00B4FF,LINETHICK3;