NEND := CURRBARSCOUNT;
ZQ := PERIOD;
JE := AMOUNT;
TYP := (((HIGH + LOW) + (2 * CLOSE)) + OPEN) / 5;
H1 := EMA(CLOSE,3);
H2 := EMA(H1,5);
LH := EMA(CLOSE,43);
LH1 := (H1 + H2) / 2;
ZS := LH1;
YC := (((H1 * 0.07405) + (H2 * 0.9048)) - (0.7778 * H1)) / 0.20105;
ZG7 := MA(HIGH,5);
ZD7 := MA(LOW,5);
ZSBZ := IF(CROSS(H1,H2) OR CROSS(H2,H1),1,0);
N := BARSLAST(ZSBZ = 1);
ZSJ := REF(CLOSE,N);
AA := TYP * VOL;
CB125 :=SUM(AA,125) / SUM(VOL,125);
CB7 := SUM(AA,7) / SUM(VOL,7);
CB25 := SUM(AA,25) / SUM(VOL,25);
股乐主升:ABS(CB7/CB25-1)<0.01 AND CB7>REF(CB7,1) AND REF(CB25,1)-CB25<0.01 ;