通達信幫助文件里說強弱度是個股漲跌幅與大盤漲跌幅的比值,記得是這個意思,那么: {N1:1,30,10;} LC:=REF(CLOSE,1); 品種強弱:SMA(MAX(CLOSE-LC,0),N1,1)/(SMA(ABS(CLOSE-LC),N1,1))*100,LINETHICK2,COLORCYAN; CC:="1A0001$CLOSE"; FF:="399001$CLOSE"; CY:="399006$CLOSE"; LC0:=IF(INBLOCK('深圳A股')=1,FF,IF(INBLOCK('創(chuàng)業(yè)板')=1,CY,CC)); LC1:=REF(LC0,1); 指數(shù)強弱:SMA(MAX(LC0-LC1,0),N1,1)/(SMA(ABS(LC0-LC1),N1,1))*100,LINETHICK2,COLORFF00FF; DRAWBAND(品種強弱,RGB(255,0,0),指數(shù)強弱,RGB(0,255,0)); 該股強弱:MA(品種強弱,8),LINETHICK2,COLORWHITE; 強弱度:100*(品種強弱-指數(shù)強弱)/指數(shù)強弱,COLORWHITE,NODRAW; |
|