通达信上升三法选股公式源码
C1:=C*1.01;
O1:=O*0.99;
A1:=REF(C,3+1)-REF(O,3+1)>3;
A2:=RANGE(HHV(C,3),O1,C1) AND RANGE(HHV(O,3),O1,C1);
A3:=RANGE(LLV(C,3),O1,C1) AND RANGE(LLV(O,3),O1,C1);
A4:=RANGE(REF(O,3+1),O1,C1);
A5:=COUNT(ABS(C-O)<0.5,3+1)=3;
B1:=(REF(C,4+1)-REF(O,4+1))/REF(O,4+1)*100>2;
B2:=RANGE(HHV(C,4),O1,C1) AND RANGE(HHV(O,4),O1,C1);
B3:=RANGE(LLV(C,4),O1,C1) AND RANGE(LLV(O,4),O1,C1);
B4:=RANGE(REF(O,4+1),O1,C1);
B5:=COUNT(ABS(C-O)<0.5,4+1)=4;
E1:=(REF(C,5+1)-REF(O,5+1))/REF(O,5+1)*100>2;
E2:=RANGE(HHV(C,5),O1,C1) AND RANGE(HHV(O,5),O1,C1);
E3:=RANGE(LLV(C,5),O1,C1) AND RANGE(LLV(O,5),O1,C1);
E4:=RANGE(REF(O,5+1),O1,C1);
E5:=COUNT(ABS(C-O)<0.5,5+1)=5;
F1:=(REF(C,6+1)-REF(O,6+1))/REF(O,6+1)*100>2;
F2:=RANGE(HHV(C,6),O1,C1) AND RANGE(HHV(O,6),O1,C1);
F3:=RANGE(LLV(C,6),O1,C1) AND RANGE(LLV(O,6),O1,C1);
F4:=RANGE(REF(O,6+1),O1,C1);
F5:=COUNT(ABS(C-O)<0.5,6+1)=6;
T1:=(C-O)/O*100>3;
T2:=(A1 AND A2 AND A3 AND A4 AND A5) OR (B1 AND B2 AND B3 AND B4 AND B5) OR (E1 AND E2 AND E3 AND E4 AND E5) OR (F1 AND F2 AND F3 AND F4 AND F5);
T1 AND T2;