N:=20;M1:=4;M2:=2;Q1:=30;
VAR2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR3:=SMA(VAR2,M1,1);
VAR4:=SMA(VAR3,M2,1);
VAR5:=vol/CAPITAL*100;
VAR6:=REF(VAR5,1);
机构建仓: VAR4<14.5 AND VAR3<11;
大户减仓: VAR6>Q1 AND VAR6<47;
机构减仓: VAR4>82 AND VAR3>89;
股价临界: VAR4>85 AND VAR3>95;
A:=REF(C,1);
rsi:=SMA(MAX(C-A,0),6,1)/SMA(Abs(C-A),6,1)*100;
A1:=C-MA(C,5)/MA(C,5)*100<1;
A2:=C-MA(C,13)/MA(C,13)*100<-10;
A3:=C-MA(C,34)/MA(C,34)*100<-15;
A4:=RSI<18;
A5:=cci<-120;
组合底部:(A1 AND A2 AND A3 AND A4 AND A5)COLORRED;