通达信先锋出击指标公式源码

以下是通达信先锋出击指标公式源码:

VAR0 := IF(DATE <= 1990605,1,0);
VAR1 := 80;
VAR2 := 3;
VAR3 := 100 - ((90 * (HHV(HIGH,14) - C)) / (HHV(HIGH,14) - LLV(LOW,14)));
VAR4 := 100 - ((90 * (HHV(HIGH,14) - C)) / (HHV(HIGH,14) - LLV(LOW,14)));
VAR5 := 100 - (MA((100 * (HHV(HIGH,6) - C)) / (HHV(HIGH,6) - LLV(LOW,6)),34));
VAR6 := CROSS(VAR4,MA(VAR5,6));
VAR7 := REF(C,1);
VAR8 := ((C - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100;
VAR9 := SMA(VAR8,3,1);
VAR10 := ((HHV(HIGH,9) - C) / (HHV(HIGH,9) - LLV(LOW,9))) * 100;
VAR11 := ((HHV(HIGH,36) - C) / (HHV(HIGH,36) - LLV(LOW,36))) * 100;
VAR12 := SMA(VAR11,2,1);
VAR13 := ((C - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100;
VAR14 := SMA(VAR13,5,1) - 8;
VAR15 := COUNT(CROSS(VAR14,VAR12),5) = 1;
VAR16 := (VOL * 100) / CAPITAL;
VAR17 := MA(VAR16,4);
VAR18 := MA(VAR16,135);
VAR19 := (VAR17 >= VAR18) AND (VAR17 > REF(VAR17,1));
VAR20 := EMA(VOL / CAPITAL,3);
VAR21 := HHV(VAR20,240);
VAR22 := LLV(VAR20,240);
VAR23 := MA(C,33);
VAR24 := EMA(((VAR20 - VAR22) / VAR22) * VAR23,13);
VAR25 := EMA(((VAR21 - VAR20) / VAR20) * VAR23,13);
VAR26 := VAR24 - VAR25;
VAR27 := (VAR26 > 0) AND (VAR24 > 30);
VAR28 := 5;
VAR29 := 13;
VAR30 := 34;
VAR31 := IF(DYNAINFO(8) > 0.01,(0.01 * DYNAINFO(10)) / DYNAINFO(8),DYNAINFO(3));
VAR32 := (DYNAINFO(5) < 0.01) OR (DYNAINFO(6) < 0.01);
VAR33 := IF(VAR32,1,(VAR31 < (DYNAINFO(5) + 0.01)) AND (VAR31 > (DYNAINFO(6) - 0.01)));
VAR34 := IF(VAR33,(0.01 * EXPMA(AMOUNT,VAR28)) / EXPMA(VOL,VAR28),EMA(((HIGH + LOW) + C) / 3,VAR28));
VAR35 := IF(VAR33,(0.01 * EXPMA(AMOUNT,VAR29)) / EXPMA(VOL,VAR29),EMA(((HIGH + LOW) + C) / 3,VAR29));
VAR36 := IF(VAR33,(0.01 * EXPMA(AMOUNT,VAR30)) / EXPMA(VOL,VAR30),EMA(((HIGH + LOW) + C) / 3,VAR30));
VAR37 := (((CROSS(C,VAR34) AND CROSS(C,VAR35)) AND CROSS(C,VAR36)) AND (VAR34 > VAR35)) AND (VAR35 > VAR36);
VAR38 := MA(C,5);
VAR39 := MA(C,13);
VAR40 := (((VAR38 >= OPEN) AND (VAR39 >= OPEN)) AND (VAR38 <= C)) AND (VAR39 <= C);
VAR41 := (((CAPITAL < 30000000) AND IF(NAMELIKE('ST'),0,1)) AND IF(NAMELIKE('*ST'),0,1)) AND (DYNAINFO(17) > 1);
先锋出击 : ((((((VAR15 AND VAR6) AND VAR19) AND VAR41) AND VAR27) AND ((VAR37 OR VAR40) OR CROSS(C,VAR38))) AND (C < 30)) * VAR0;