MA7:WMA((L+H+2*C)/4,7);
MA20:WMA((L+H+2*C)/4,20);
SL20:SLOPE(MA20,2)*100,NODRAW;
VA2:=LLV(LOW,10);
VA3:=HHV(HIGH,25);
动能趋势线:=100*EMA((CLOSE-VA2)/(VA3-VA2),4);
VAR41:= EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
{ 爱约股_通达信股票指标公式}
VAR4A:=REF(VAR41,1)>92 AND VAR41<92;
BB:=REF(CLOSE,13);
CC:=SMA(MAX(CLOSE-BB,0),2,1)/SMA(ABS(CLOSE-BB),2,1)*100-50;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6),COLORWHITE;
SE1:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
AAA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AAA,0),5,1)/SMA(ABS(CLOSE-AAA),5,1)*1000;
HHH:=BBB-LLV(BBB,10);
SSS:=(MA(HHH,2)*3+HHH*13)/16;
Q1:=MA(SSS,10);
Q2:=SMA(SMA(Q1,3,1),3,1);
Q3:=EMA(Q2,5);
原线:=3*Q2-2*Q3,COLORMAGENTA;
RSV:=MA(Q1,1),COLORYELLOW;
R7:=CROSS(原线,RSV);
SEALL:=VAR4A OR CROSS(动能趋势线,80) OR CROSS(动能趋势线,87.5) OR SE1;
超短线:=MA20>REF(MA20,1) AND SL20>1 AND CC>-40 AND R7 AND V<REF(V,1)*1.01 AND NOT(SEALL);
DRAWICON(超短线,L*0.99,38);
DRAWTEXT(超短线,L*0.98,'-3%止损');