以下是通达信回档副图源码
AA1:=(MAX(C,O)+H)/2;
AA2:=(MIN(C,O)+L)/2;
A2:=C>=REF(C,2)+(REF(C,1)-REF(C,2))/REF(C,2)/4;
A3:=REF(C,1)>REF(C,2)*1.03 OR REF(C,1)>REF(C,3)*1.04 OR
COUNT(REF(C,1)>REF(C,2),3)=3;
A4:=(AA1-AA2)/REF(C,1)<0.04 AND
(C-REF(C,1))/REF(C,1)<=0.75*(REF(C,1)-REF(C,2))/REF(C,2);
A5:=(AA1-AA2)/REF(C,1)<0.6*(REF(C,1)-REF(C,2))/REF(C,2);
A6:=(REF(H,1)-REF(C,1))<(REF(C,1)-REF(C,2))*1.5 AND REF(C,1)>=REF(O,1);
回档:A2 AND A3 AND A4 AND A5 AND A6;