- 最高指數(shù):INDEXH,LINETHICK0;
- 最低指數(shù):INDEXL,LINETHICK0;
- 開盤指數(shù):INDEXO,LINETHICK0;
- 收盤指數(shù):INDEXC,LINETHICK0;
- 大盤漲幅:(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100,LINETHICK0;
- 個(gè)股漲幅:=(C-REF(C,1))/REF(C,1)*100;
- i:=COUNT(大盤漲幅<個(gè)股漲幅 ,N);
- 大盤:=(INDEXC-REF(INDEXC,N))/REF(INDEXC,N)*100;
- 個(gè)股:=(C-REF(C,N))/REF(C,N)*100;
- IF DISPSTATUS=2 and 大盤<個(gè)股 THEN DRAWTEXTREL(10,570,'最近'+NUMTOSTRN(N,0)+'個(gè)交易日與大盤對(duì)比:漲幅強(qiáng)于大盤'),COLOR00EEff;
- IF DISPSTATUS=2 and 大盤>個(gè)股 THEN DRAWTEXTREL(10,570,'最近'+NUMTOSTRN(N,0)+'個(gè)交易日與大盤對(duì)比:漲幅弱于大盤'),COLOR00EEff;
- IF DISPSTATUS=2 THEN DRAWTEXTREL(10,650,'大盤累計(jì)漲跌幅:'+NUMTOSTRN(大盤,3)),COLOR00EEff;
- IF DISPSTATUS=2 THEN DRAWTEXTREL(10,730,'個(gè)股累計(jì)漲跌幅:'+NUMTOSTRN(個(gè)股,3)),COLOR00EEff;
- IF DISPSTATUS=2 THEN DRAWTEXTREL(10,810,'強(qiáng)于大盤:'+NUMTOSTRN(i,0)+'天'),COLOR00EEff;
- IF DISPSTATUS=2 THEN DRAWTEXTREL(10,890,'弱于大盤:'+NUMTOSTRN((N-i),0)+'天'),COLOR00EEff;
- STICKLINE(INDEXA>0 and INDEXO<INDEXC,INDEXO,INDEXC,6,0),COLORRED;
- STICKLINE(INDEXA>0 and INDEXO>INDEXC,INDEXC,INDEXO,6,0),COLORGREEN;
- STICKLINE(INDEXA>0 and INDEXO<INDEXC,INDEXH,INDEXL,1,0),COLORRED;
- STICKLINE(INDEXA>0 and INDEXO>INDEXC,INDEXH,INDEXL,1,0),COLORGREEN;
|