{波段买卖}
{N:10,FFD值到2时候大多为压力位,牛股除外}
DRAWGBK(C 0,RGB(0,190,250),RGB(0,120,180),0,' ',0);
STICKLINE(C,2.5,2.5,5,0),COLORFFFF00;
FFD:=EMA((C - REF(C,1)) / REF(C,3),10) * 100;
KJHU:=EMA(EMA(EMA(EMA(FFD,2),2),2),3);
KJHU1:=EMA(KJHU,4);
A1:=SMA(MAX(C - REF(C,1),0),24,1) / SMA(ABS(C - REF(C,1)),24,1) * 100;
龙头启动:(A1 65) * (A1 - 65) / 10 + 2,NODRAW;
VARA1:=CLOSE-LOW;
VARA2:=HIGH-LOW;
VARA3:=CLOSE-HIGH;
VARA4:=IF(HIGH LOW,(VARA1/VARA2+VARA3/VARA2)*VOL,0);
CYW1:=SUM(VARA4,4)/100000;
控盘度:=CYW1 / 10;
STICKLINE(KJHU = REF(KJHU,1),KJHU,KJHU * 1.2,2,0),COLORRED;
STICKLINE(KJHU REF(KJHU,1) AND KJHU EMA(KJHU,4),KJHU,KJHU * 1.2,1,0),COLOR00BBFF;
STICKLINE(KJHU REF(KJHU,1) AND KJHU EMA(KJHU,4),KJHU,KJHU * 1.2,2,0),COLORGREEN;
{DRAWICON(BARSCOUNT(KJHU = REF(KJHU,1))=1,L*0.93,7);
DRAWICON(KJHU REF(KJHU,1) AND KJHU EMA(KJHU,4),H*1.03,8);}
0,POINTDOT,LINETHICK2,COLORGRAY;
1.5,POINTDOT,COLORGRAY;
DRAWICON(CROSS(FFD,2),2,7);
CROSS(FFD,KJHU1);
A2:=(C - REF(C,1)) / REF(C,1) * 100;
A3:=COUNT(A2 8,120);
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.145,0,0,A3),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'【关注级别大的股票】 '),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.16,0,0,'级: '),COLORYELLOW;
{DRAWTEXTABS(150,10,STR(A3)),COLORYELLOW;
DRAWTEXTABS(3,10,'【关注级别大的股票】 '),COLORYELLOW;
DRAWTEXTABS(180,10,'级: '),COLORYELLOW;}
NA:=14;MAA:=6;
TR1 := SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),NA,1);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SMA(IF(HD 0 AND HD LD,HD,0),NA,1);
DMM:= SMA(IF(LD 0 AND LD HD,LD,0),NA,1);
PDI:=DMP*100/TR1;
MDI:=DMM*100/TR1;
ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,NA,1);
ADXR:=(ADX+REF(ADX,MAA))/2;
IF(PDI MDI,2,DRAWNULL),COLOR00C800,LINETHICK4;
IF(MDI PDI,2,DRAWNULL),COLOR64FF00,LINETHICK4;
IF(PDI MDI AND ADX ADXR AND MDI 20,2,DRAWNULL),COLOR7850FF,LINETHICK4;
A4:=(MA(C,3) + MA(C,6) + MA(C,12) + MA(C,24)) / 4;
A5:=A4 + 3 * STD(A4,10);
A6:=EMA(HHV(C,21),21);
STICKLINE(FILTER(CROSS(EMA(C,3),A6) AND C A5 AND MA(C,5) MA(C,10),13),1.5,0,1,0),COLORMAGENTA;
DRAWTEXT(FILTER(CROSS(EMA(C,3),A6) AND C A5 AND MA(C,5) MA(C,10),13),0.2,'小黑马↗'),LINETHICK1,COLORYELLOW;
DRAWTEXT(FILTER(BARSLASTCOUNT(龙头启动 2)=1 AND FFD 1.9,5),2.4,'龙'),COLORYELLOW;
DRAWTEXT(FILTER(BARSLASTCOUNT(龙头启动 2)=1 AND FFD 1.9,5),2.3,'头'),COLORYELLOW;
DRAWTEXT(FILTER(BARSLASTCOUNT(龙头启动 2)=1 AND FFD 1.9,5),2.2,'股'),COLORYELLOW;
能否适应行情有待观察。