参数设置:
N 15 40 30
M 12 37 27
D 20 52 42
VAR1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100+M;
VAR2:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+N;
VAR3:=VAR1 AND VAR2;
VAR4:=VAR1 AND VAR2 AND COUNT(VAR3,2)=1 AND (CLOSE>OPEN OR CLOSE<OPEN) {AND (OPEN
-REF(CLOSE,1))/REF(CLOSE,1)>-0.07} AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)<REF(CLOSE,1)) AND
(REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF
(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF
(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5));
VAR5:=DMA(EMA(CLOSE,8),SUM(VOL,9)/2.8/CAPITAL);
VAR6:=(CLOSE-VAR5)/VAR5*100;
VAR7:=REF(VAR6,1)+D<0 AND VAR6>REF(VAR6,1) AND REF(VAR6,1)<REF(VAR6,2) AND VAR6-REF(VAR6,1)>1.8 AND (HIGH>LOW) AND (REF(HIGH,1)>REF(LOW,1)) AND (REF(HIGH,2)>REF(LOW,2)) AND (REF(HIGH,3)>REF(LOW,3)) AND (REF(HIGH,4)>REF(LOW,4)) AND (REF(HIGH,5)>REF(LOW,5));
潜龙:VAR1;
铰龙:VAR2;
亢龙:VAR6+D;
飞龙:IF(VAR4 OR VAR7,40,0);
选股公式
VAR1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100+M;
VAR2:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+N;
VAR3:=VAR1 AND VAR2;
VAR4:=VAR1 AND VAR2 AND COUNT(VAR3,2)=1 AND (CLOSE>OPEN OR CLOSE<OPEN) {AND (OPEN
-REF(CLOSE,1))/REF(CLOSE,1)>-0.07} AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)<REF(CLOSE,1)) AND
(REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF
(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF
(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5));
VAR5:=DMA(EMA(CLOSE,8),SUM(VOL,9)/2.8/CAPITAL);
VAR6:=(CLOSE-VAR5)/VAR5*100;
VAR7:=REF(VAR6,1)+D<0 AND VAR6>REF(VAR6,1) AND REF(VAR6,1)<REF(VAR6,2) AND VAR6-REF(VAR6,1)>1.8 AND (HIGH>LOW) AND (REF(HIGH,1)>REF(LOW,1)) AND (REF(HIGH,2)>REF(LOW,2)) AND (REF(HIGH,3)>REF(LOW,3)) AND (REF(HIGH,4)>REF(LOW,4)) AND (REF(HIGH,5)>REF(LOW,5));
飞龙:IF(VAR4 OR VAR7,40,0);