程序化指标:=5;
程序化公式:=20;
通达信:=15;
afwefg1:=20;
afwefg2:=10;
A1_T3:=1;{通达信公式-通达信指标-www.gs6699.com}
A:=EMA(CLOSE, 程序化指标) - EMA(CLOSE, 程序化公式);
LC:=REF(A,1);
RSI4:=SMA(MAX(A-LC,0),通达信,1)/SMA(ABS(A-LC),通达信,1)*100;
B:=EMA(CLOSE, afwefg1);
LCB:=REF(B,1);
RSI2:=SMA(MAX(B-LCB,0),afwefg2,1)/SMA(ABS(B-LCB),afwefg2,1)*100;
SHORTaaa:=RSI4 - 50;
LONGaaa:=RSI2 - 50;
MA_SHORT:=-A1_T3*A1_T3*A1_T3*EMA(EMA(EMA(EMA(EMA(EMA(SHORTaaa,5),5),5),5),5),5)+(3*A1_T3*A1_T3+3*A1_T3*A1_T3*A1_T3)*EMA(EMA(EMA(EMA(EMA(SHORTaaa,5),5),5),5),5)+(-6*A1_T3*A1_T3-3*A1_T3-3*A1_T3*A1_T3*A1_T3)*EMA(EMA(EMA(EMA(SHORTaaa,5),5),5),5)+(1+3*A1_T3+A1_T3*A1_T3*A1_T3+3*A1_T3*A1_T3)*EMA(EMA(EMA(SHORTaaa,5),5),5),LINETHICK3,COLORRED;
ccccc1:=MA_SHORT>REF(MA_SHORT,1) AND REF(MA_SHORT,1)>REF(MA_SHORT,2);
ccccc2:=MA_SHORT<REF(MA_SHORT,1) AND REF(MA_SHORT,1)<REF(MA_SHORT,2);
ccccc3:=TFILTER(ccccc1,ccccc2,1);
ccccc4:=TFILTER(ccccc3,ccccc2,2);
aaaa:ccccc3;