通达信强势股疯子副图/选股预警源码

VAR0:=(MA(C,3));
 VAR1:=(MA(C,5));
 VAR2:=(MA(C,10));
 VAR3:=(MA(C,20));
 VAR4:=(((((MA(C,3)) > (REF(MA(C,3),1))) AND ((MA(C,5)) > (REF(MA(C,5),1)))) AND (C > (MA(C,3)))) AND ((MA(C,3)) > (MA(C,5))));
 VAR5:=(((ATAN(((VAR0 / (REF(VAR0,1))) - 1) * 100)) * 180) / (3.1416));
 VAR6:=(((ATAN(((VAR1 / (REF(VAR1,1))) - 1) * 100)) * 180) / (3.1416));
 VAR7:=(((ATAN(((VAR2 / (REF(VAR2,1))) - 1) * 100)) * 180) / (3.1416));
 VAR8:=(((ATAN(((VAR3 / (REF(VAR3,1))) - 1) * 100)) * 180) / (3.1416));
疯子MA20:IF(VAR5>45 AND VAR6>45 AND VAR7>60 AND VAR8>45 AND MA(C,250)>REF(MA(C,250),1),1,0);