N:=5;
K1:=IF(CLOSE>=REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-REF(CLOSE,1),HIGH-OPEN+CLOSE-LOW);
K2:=IF(CLOSE<=REF(CLOSE,1),OPEN-LOW+HIGH-CLOSE+REF(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);
DT:=vol*K1/(K1+K2);
KT:=VOL-DT;
{股头比}
ZGT:=SUM(ADVANCE,N);
FGT:=SUM(DECLINE,N);
股头比:(ZGT-FGT)/(ZGT+FGT);
ML:=SUM(DT,N);
MEL:=SUM(KT,N);
MJ:=SUM(DT*C,N);
MEJ:=SUM(KT*C,N);
能量比:(ML-MEL)/(ML+MEL);
资金比:(MJ-MEJ)/(MJ+MEJ);
涨跌比:(ADVANCE-DECLINE)/(ADVANCE+DECLINE),COLOR619A9A;
临界线:00,LINETHICK1;