T:=DATE<1151230;
DIF:=(MEMA(C,7)-MEMA(C,15));
DEA:=MEMA(DIF,5);
MACD:=2*(DIF-DEA);
R1:=REF(HIGH,13)=HHV(HIGH,2*13+1);
R2:=FILTER(R1,13);
R3:=BACKSET(R2,13+1);
R4:=FILTER(R3,13);
BB:=REF(H,BARSLAST(R4));
追:=IF(CROSS(C,BB) AND RANGE(MACD,-0.8,0.8),6,0)*T;