以下是强势股一看就准源码
K值比较
DRAWGBK(O>C,RGB(10,10,10),RGB(0,50,40),0,’01’,0);
RSV1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
个股K值:SMA(RSV1,3,1),COLOR1000FF,LINETHICK2;
RSV2:=(HY_INDEXC-LLV(HY_INDEXL,9))/(HHV(HY_INDEXH,9)-LLV(HY_INDEXL,9))*100;
板块K值:SMA(RSV2,3,1),COLOR00FF00;
RSV3:=(INDEXC-LLV(INDEXL,9))/(HHV(INDEXH,9)-LLV(INDEXL,9))*100;
大盘K值:SMA(RSV3,3,1),COLOR00FFFF,LINETHICK2;
顶警:80,POINTDOT,COLOR00FFFF;
底警:20,POINTDOT,COLOR00FFFF;
中线:50,DOTLINE,COLOR00FFFF;
N日涨幅比较
DRAWGBK(O>C,RGB(10,10,10),RGB(0,50,40),0,’01’,0);
个股N日涨幅:(C-REF(C,N))/REF(C,N)*100,COLOR1000FF,LINETHICK2;
板块N日涨幅:(HY_INDEXC-REF(HY_INDEXC,N))/REF(HY_INDEXC,N)*100,COLOR00FF00;
大盘N日涨幅:(INDEXC-REF(INDEXC,N))/REF(INDEXC,N)*100,COLOR00FFFF,LINETHICK2;
0,COLOR00FFFF,DOTLINE;
(N 1 60 20)
基期涨幅比较
DRAWGBK(O>C,RGB(10,10,10),RGB(0,50,40),0,’01’,0);
T:=BARSLAST(DATE=1121204);{数字1后6位数121204表示基期为:2012-12-04可自行设定}
个股基期涨幅:(C-REF(C,T))/REF(C,T)*100,COLOR1000FF,LINETHICK2;
板块基期涨幅:(HY_INDEXC-REF(HY_INDEXC,T))/REF(HY_INDEXC,T)*100,COLOR00FF00;
大盘基期涨幅:(INDEXC-REF(INDEXC,T))/REF(INDEXC,T)*100,COLOR00FFFF,LINETHICK2;
0,COLOR00FFFF,DOTLINE;
评论(0)