一、通达信逆向操作指标公式
VE:=REF(LOW,1)*0.9;
VF:=LOW*0.9;
V10:=(VF*VOL+VE*VOL);
V11:=EMA(V10,30);
V12:=V11-CLOSE;
V13:=REF(CLOSE,1);
V14:=SMA(MAX(CLOSE-V13,0),7,1)/SMA(ABS(CLOSE-V13),7,1)*100;
V15:=SMA(MAX(CLOSE-V13,0),13,1)/SMA(ABS(CLOSE-V13),13,1)*100;
V16:=BARSCOUNT(CLOSE);
V17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
V18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
V19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
V1A:=(SMA(V19,4,1)-50)*2;
V1B:=SMA(V1A,3,1);
V1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
V1D:=SMA(V1C,4,1);
V1E:=SMA(V1D,3,1);
V1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
V20:=V17<=25 AND V18<-95 AND V1F>20 AND V1B<-30 AND V1E<30 AND V12>=-0.25 AND V14<22 AND V15<28 AND V16>50;
STICKLINE(V20,0,80,0,0),COLORRED,LINETHICK4;
V1:=MA(100*(C-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
V2:=2*ABS(V1);
V3:=(100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1));
V4:=(100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1));
STICKLINE(REVERSE(-1*V3)<=REF(REVERSE(-1*V4),1),REVERSE(-1*V3),REVERSE(-1*V4),8,0),COLORRED;
STICKLINE(REVERSE(-1*V3)>REF(REVERSE(-1*V4),1),REVERSE(-1*V3),REVERSE(-1*V4),8,0),COLORWHITE;
V5:=(HIGH+LOW+CLOSE)/3;
V6:=(V5-MA(V5,14))/(0.015*AVEDEV(V5,14));
V7:=(V5-MA(V5,70))/(0.015*AVEDEV(V5,70));
V8:=IF(V6>=150 AND V6<200 AND V7>=150 AND V7<200,10,0);
V9:=IF(V6<=-150 AND V6>-200 AND V7<=-150 AND V7>-200,-10,V8);
VA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VB:=100-ABS(VA);
VC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
VD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
趋势:V3,NODRAW;
顶线:IF(VB<90,VB,100),COLORGREEN;
多方:IF(V1>-1,V1,0),LINESTICK,COLORMAGENTA;
空方:REVERSE(-1*IF(V1<-1,V2,0)),LINESTICK,COLORGREEN;
抄底:V20;
导弹:IF(V20,80,0),COLORRED,NODRAW;
预警系统:(IF((V7>=200 AND V6>=150) OR CROSS(75,多方),15,IF(V7<=-200 AND V6<=-150,-15,V9))+60),COLORYELLOW,LINETHICK2;
二、通达信监视机构动向指标公式
N:=9;M1:=3;M2:=3;P:=9;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1),COLORRED,LINETHICK2;
D:=SMA(K,M2,1),COLOR00FF00;
JJ:=P*(3*D-2*K),COLOR00FF00;
J:=((3 * K) - (2 * D));
MAIRU:= CROSS(K,D) AND K<20;
MAICHU:= CROSS(D,K) AND D>80;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
吸筹:STICKLINE(VAR9>-120,0,VAR9,6,1),COLORF00FF0;
快线:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,COLORFF937F;
慢线:SMA(快线,M1,1),COLORRED,LINETHICK2;
空:SMA(慢线,M2,1),COLOR00FF00;
牛股:IF(BARSLAST(CROSS(慢线,空))
STICKLINE(牛股,0,90,6,1),LINETHICK4,STICK,COLORFF937F;
BB:=IF(BARSLAST(CROSS(慢线,快线))>=3 AND CROSS(快线,慢线) AND 慢线<30,20,0);
买:STICKLINE(BB,0,20,7,1),COLORYELLOW;
AA:=IF(BARSLAST(CROSS(快线,慢线))>=4 AND CROSS(慢线,快线) AND 快线>50,20,0);
卖:STICKLINE(AA,80,100,7,1),COLOR00FF00;