一、趋势向上:
股价突破上轨或者在上轨上方运行,股价超强,如果成交量放大或者出现倍量则可以追入,否则静等回调;
股价在中轨上方运行,持仓待涨;
股价超跌回调到下轨附近则买入;
二、趋势向下:
股价在中轨下方运行则持币观望;
股价跌至下轨,买入做一波反弹;
股价从中轨下方,向中轨上方运行,则股价开始走强可以考虑介入。
三、生命线:
股价跌破生命线,则止损。
四、目标价位:
达到当前目标价位,或者达到前一个预期的目标价位时注意减仓。
参数默认:n=10 ,m1=11,m2=9
上轨:(1+M1/100)*MA(CLOSE,N);
下轨:(1-M2/100)*MA(CLOSE,N);
中轨:(上轨+下轨)/2;
生命线:EMA(CLOSE,25),COLORFF1CAE,LINETHICK1;
LEI:=EMA(SLOPE(1,1)+C,3),colorred;
FENG:=EMA(SLOPE(1,1)+C,7),colorblue;
DRAWTEXT(COUNT (LEI
DRAWTEXT(COUNT (LEI>=FENG,5)=4 AND LEI
EMA34:=EMA(C,60),COLORFFFF00;
EMA55:=EMA(C,80),COLORFF00FF;
YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;
YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,11);
Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;
YZ:=YZ1 AND YZ2 AND Y>10;
X11:DRAWTEXT(YZ,HIGH+0.2,'↙减仓'),COLORF00FF0;
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );
GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(12,26,9)
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
DRAWTEXT(GR6 AND GR7,H+0.13,'↙高抛低吸'),COLOR00FF00;
A1:=EMA(C,14),colorwhite,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
支撑位:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),colorred,LINETHICK1;
阻力位:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),colorgreen,LINETHICK1;
STICKLINE(CROSS(A1X,0),C,O,2,0),coloryellow;
STICKLINE(CROSS(0,A1X),C,O,2,0),colorgreen;
DRAWICON(CROSS(LEI,FENG) AND CLOSE/REF(CLOSE,1)>1.03,LOW/1.06,25);
LEI2:=EMA(SLOPE(1,1)+C,3),colorred;
FENG2:=EMA(SLOPE(1,1)+C,7),colorblue;
LEI1=MA(CLOSE, 5);
FENG1=MA(CLOSE, 60);
LEISHEN=CROSS(LEI2,FENG2) AND LEI1>FENG1;
FENGSHEN=CROSS(FENG2,LEI2) AND LEI1>FENG1 AND COUNT(CROSS(LEI,FENG) AND LEI1>FENG1 ,30);
DRAWTEXT(LEISHEN,LOW/1.03,'↖买'),colorwhite;
DRAWTEXT(FENGSHEN,HIGH*1.06,'↙卖'),coloryellow;
IF (CROSS(LEI2,FENG2) AND LEI1>FENG1) {
BUY;
}
IF (CROSS(FENG2,LEI2) AND LEI1>FENG1 AND COUNT(CROSS(LEI,FENG) AND LEI1>FENG1 ,30)) {
SELL;
}
买入条件:=LEISHEN;
卖出条件:=FENGSHEN;
D1:=BARSLAST(买入条件);
D2:=FLOOR(((C-REF(C,D1))/REF(C,D1))*100);
IF(D2>=3 AND D2<7,'5',DRAWNULL);
换手=VOL/SHGZG*100;
IF(REF(换手,1)=""){
指数=0;
总换手=100-换手;
周期a=1;
ss=0;
}ELSE{
指数=REF(指数,1);
总换手:REF(换手,1)+换手;
周期a=REF(周期a,1)+1;
ss=REF(ss,1);
}
IF(指数=1){
IF( REF(总换手,1)+换手 < 100){
总换手:REF(总换手,1)+换手;
指数=1;
周期a=REF(周期a,1)+1;
}
IF( REF(总换手,1)+换手 >= 100){
总换手:200-REF(总换手,1)-换手;
指数=0;
周期a=1;
目标价格=SUM(C,REF(周期a,1)) / REF(周期a,1);
ss=1.5 * 目标价格 - 0.15 * 目标价格;
}
}ELSE{
IF( REF(总换手,1)-换手 >= 0 ){
总换手:REF(总换手,1)-换手;
指数=0;
周期a=REF(周期a,1)+1;
}
IF( REF(总换手,1)-换手 < 0 ){
总换手:换手-REF(总换手,1);
指数=1;
周期a=1;
}
}
目标价位:ss,coloryellow,LINETHICK1;