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PEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
ZJDN:((QJ1+QJ2)-(QJ3+QJ4))/CAPITAL*100,COLOR00AAAA,LINETHICK0;
攻击流量:=(ZJDN*15/1.15);
GJJ:=(((攻击流量 * 0.55) + (REF(攻击流量,1) * 0.33)) + (REF(攻击流量,2) * 0.22));
DN1:EMA(GJJ,20);
DN2:EMA(GJJ,60);
STICKLINE(ZJDN>0,0,ZJDN,8,0),colorred;
STICKLINE(ZJDN<0,0,ZJDN,8,0),colorgreen;