股票强弱,强不强一要和所属板块比较,二要和大盘比较,强于板块或者大盘,则为强势....
DRAWKLINE(INDEXH,INDEXO,INDEXL,INDEXC);
大盘:MA(INDEXC,10),COLORFFFFFF,LINETHICK2;
分:=CONST(LLV(L,90)); 百:=CONST(HHV(H,90))-分;
基点:=CONST(LLV(大盘,90)); 基:=CONST(HHV(大盘,90))-基点;
C比:=(C-分)/百; H比:=(H-分)/百; L比:=(L-分)/百; O比:=(O-分)/百;
CX:=C比*基+基点; HX:=H比*基+基点; LX:=L比*基+基点; OX:=O比*基+基点;
KK:DRAWKLINE(HX,OX,LX,CX),COLORMAGENTA;
个股:MA(CX,10),COLORYELLOW;
P1:=IF(BARSLAST(CURRBARSCOUNT=2),1,0);
DRAWTEXT(P1,大盘,'大盘'),COLORFFFFFF;
DRAWTEXT(P1,个股,'个股'),COLORYELLOW;