N:=19;
VR1:=HHV(HIGH,N);
VR2:=LLV(LOW,N);
STICKLINE(C>0,-80,80,15,0),COLORBLACK;
阻力线:EMA((CLOSE-VR2)/(VR1-VR2),21)-0.5,COLORF0F000,LINETHICK2;
操作线:EMA((CLOSE-VR2)/(VR1-VR2),5)-0.5,COLORRED,LINETHICK2;
DRAWTEXT(CROSS(操作线,阻力线) AND 阻力线<0.1,阻力线,'突破'),COLORYELLOW;
DRAWTEXT(CROSS(阻力线,操作线) AND 阻力线>0.25,阻力线,'破位'),COLORGREEN;
红绿棒:(操作线-阻力线),COLORSTICK;
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
主力线:(EMA(CS,3)-50)*2;
极弱:-80;
强势:60;
风险1:80;
弱势:-60;
主力线,COLORSTICK;
今日保护价:(REF(C,1)+REF(C,2)+O)/3,LINETHICK0;
VR3:=REF(CLOSE,1);
VR4:=SMA(MAX(CLOSE-VR3,0),6,1)/SMA(ABS(CLOSE-VR1),6,1)*100;
STICKLINE(CROSS(75.9,VR2),主力线+5,主力线-5,3,0),COLORYELLOW;
DRAWTEXT(CROSS(主力线,78),78,'清仓'),COLORDARKGRAY;
DRAWTEXT(CROSS(主力线,强势),60,'飙升'),COLORYELLOW;
DRAWTEXT(CROSS(主力线,0),0,'控盘'),COLORRED;
DRAWTEXT(CROSS(主力线,-60),-30,'回补'),COLORGREEN;
DRAWTEXT(CROSS(主力线,-80),-80,'吸筹'),COLORCYAN;
VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,38);
VAR5:=HHV(VAR3,38);
VAR6:=IF(LLV(LOW,90),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR9:=SMA(VAR8,13,8);
底线:0;
主力吸货:VAR7,COLOR00FFFF;
STICKLINE(VAR7,0,VAR7,8,0),COLOR009FFF;
STICKLINE(VAR7,0,VAR7,6,0),COLOR00B5FF;
STICKLINE(VAR7,0,VAR7,4,0),COLOR00E4FF;
STICKLINE(VAR7,0,VAR7,2,0),COLOR00FFFF;
风险:CEILING(SMA(VAR9,13,8)),LINETHICK2,COLORFF4A4A;
涨跌:MA(3*SMA((C-LLV(L,14))/(HHV(H,14)-LLV(L,14))*100,5,1)-2*
SMA(SMA((C-LLV(L,14))/(HHV(H,14)-LLV(L,14))*100,5,1),3,1),5),LINETHICK2,COLORRED; |