参数n 2----200 默认20 自己设置
{小兵指标系列,改进指标}
{名称“强弱度}
个股:=MA((H-REF(H,N))/REF(H,N)*100,3);
大盘:=MA((INDEXH-REF(INDEXH,N))/REF(INDEXH,N)*100,3);
强弱值:=MA(个股-大盘,2),COLORSTICK;
{下面8句画彩色柱}
CDA:=强弱值0;
CDB:=强弱值>=REF(强弱值,1) AND 强弱值>0;
CDC:=强弱值>REF(强弱值,1) AND 强弱值<0;
CDD:=强弱值<=REF(强弱值,1) AND 强弱值<0;
STICKLINE(CDB,0,强弱值,0.5,0),COLOREE00EE;
STICKLINE(CDA,0,强弱值,0.5,0),COLOR00DDDD;
STICKLINE(CDC,0,强弱值,0.5,0),COLORRED;
STICKLINE(CDD,0,强弱值,0.5,0),COLORBLUE;
(个股: MA((H-REF(H,N))/REF(H,N)*100,2);
(大盘: MA((INDEXH-REF(INDEXH,N))/REF(INDEXH,N)*100,2);