AA:=(C-COST(50))/COST(50)*100;{定义当前价与市场标准成本线差值}
WIN:WINNER(CLOSE)*100;{定义获利盘超买超卖指标}
WIN10:EMA(WIN,10);{定义短期获利盘指数平滑均线}
WIN20:EMA(WIN,20);{定义长期获利盘指数平滑均线}
crOSS(AA,30) AND CROSS(WIN10,WIN20);{定义超跌反弹条件选股,可以将超跌的标准设定为30%,即凡是小于市场标准成本线30%的个股都视为超跌股.
同时请记住:超跌并不意味着反弹!!!};
80,POINTDOT;{获利盘>80超买.获利盘几乎为0超卖状态,空翻多};
20,POINTDOT,colorwhite;
100,COLORGREEN ,LINETHICK2 ;
上线1:=SMA(C,3,1);
一号支撑线1:=SMA(C,8,1);
A7:=(2*C+H+L)/4;
操作:=MA(A7,5);
全仓:if((CROSS(上线1,一号支撑线1) AND 上线1>操作),20,0),Colorred;
{VAR1:=1;
VAR2:=1/WINNER(CLOSE);
VAR3:=MA(CLOSE,13);
VAR4:=100-Abs((CLOSE-VAR3)/VAR3*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
VARB:=3*VAR9-2*SMA(VAR9,15,1);
VARC:=30-VARB;
主力: (100-VARA)*VAR1,COLOR0099FF;};
{反转信号}
N:=16;
M1:=8;
M2:=4;
RSV:= (HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N))*100;
Lwr1:SMA(RSV,M1,1);
LWR2:SMA(LWR1,M2,1);
均5:=MA(CLOSE,4);
X7:=EMA(EMA(EMA(HIGH,9),9),9);
海底:=(X7 * 0.92);
海底2:=(X7 * 0.933);
中轨道:=MA(CLOSE,2);
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;
DRAWTEXT(一穿三, LWR1,'←'),colorred;