N:=6;
HID := (2*HIGH+LOW+CLOSE+OPEN)/5;
LID := (2*LOW+HIGH+CLOSE+OPEN)/5;
CID := (2*CLOSE+HIGH+LOW+OPEN)/5;
UID := (vol/((HID-LID)*100))*((CID-LID)*100);
DID := (VOL/((HID-LID)*100))*((HID-CID)*100);
多头能量 := SUM(UID,N)/CAPITAL*100;
空头能量 := SUM(DID,N)/CAPITAL*100;
crOSS(多头能量,7) AND 多头能量>空头能量