金涨停系列公式(源码 副图 通达信 贴图)
X_1:=TDXDLL4(1,CLOSE,OPEN,HIGH);
X_2:=TDXDLL4(2,CLOSE,OPEN,HIGH);
X_3:=TDXDLL4(3,CLOSE,OPEN,HIGH);
X_4:=TDXDLL4(4,CLOSE,OPEN,HIGH);
X_5:=TDXDLL4(5,CLOSE,OPEN,HIGH);
X_6:=TDXDLL4(6,CLOSE,OPEN,HIGH);
X_7:=TDXDLL4(7,CLOSE,OPEN,HIGH);
X_8:=TDXDLL4(8,CLOSE,OPEN,HIGH);
X_9:=EMA(CLOSE,12)-EMA(CLOSE,26);
{分析家公式网www.fxjgsw.com}
X_10:=EMA(X_9,9);
X_11:=(X_9-X_10)*2;
X_12:=MA(CLOSE,5);
X_13:=MA(CLOSE,30);
X_14:=(CLOSE-X_12)/X_12*100;
X_15:=(CLOSE-X_13)/X_13*100;
X_16:=COUNT(CROSS(X_14,0),3)>=1 AND X_15>REF(X_15,1) AND X_12>REF(X_12,1) AND (CLOSE/REF(CLOSE,1)-1)*100>5 AND REF(CLOSE,1)<X_13;
X_17:=FILTER(X_16,10) AND REF(CLOSE<OPEN AND (CLOSE<REF(LLV(OPEN,3),1) AND CLOSE<REF(LLV(CLOSE,3),1) OR REF(CLOSE<OPEN,1)) OR (REF(COUNT(CLOSE<OPEN,3)=3,1) AND CLOSE>OPEN),1);
X_18:=REF(CLOSE,1)/CLOSE>1.043 AND REF(CLOSE/OPEN<1.003 OR CLOSE/REF(CLOSE,2)>1.037 OR CLOSE/REF(CLOSE,3)>1.037,1);
X_19:=COUNT(CLOSE<OPEN,4)>=3 AND COUNT(CLOSE<OPEN,2)=2 AND CLOSE/OPEN<0.989 AND (REF(CLOSE,2)/CLOSE>1.045 AND REF(CLOSE/OPEN,2)>REF(CLOSE/OPEN,1) AND REF(CLOSE/OPEN,2)>REF(CLOSE/OPEN,3) AND (REF(CLOSE/OPEN<0.989,3) OR CLOSE/REF(CLOSE,1)<0.955) OR REF(CLOSE,5)/CLOSE>1.075) AND (COUNT(CLOSE/REF(CLOSE,1)<0.97,2)>=1 OR (REF(CLOSE>OPEN,3) AND COUNT(CLOSE<OPEN,3)=3));
X_20:=REF(COUNT(CLOSE/REF(CLOSE,1)<0.937,2)=1 OR COUNT(CLOSE<MA(CLOSE,10) OR CLOSE<MA(CLOSE,20) OR (CLOSE<MA(CLOSE,60) AND LOW<MA(CLOSE,20)) AND (CLOSE/REF(CLOSE,1)<0.964 OR (REF(COUNT(CLOSE>OPEN AND HIGH/CLOSE<1.009,3)>=1,1) AND (CLOSE/REF(CLOSE,1)<0.985 OR CLOSE=LOW) AND CLOSE<REF(OPEN,1)) OR X_6),3)>=1 OR (CLOSE/REF(CLOSE,1)<0.955 AND REF(COUNT(HIGH=CLOSE,3)>=1 AND HIGH/CLOSE<1.012 AND COUNT(CLOSE>OPEN,3)=3,1)),1) OR (REF(REF(COUNT(REF(CLOSE>OPEN AND HIGH/CLOSE<1.009,1) AND (CLOSE/REF(CLOSE,1)<0.985 OR CLOSE=LOW) AND CLOSE<REF(OPEN,1),3)>=1,1) AND CLOSE/REF(CLOSE,1)<0.99 AND CLOSE<REF(OPEN,1),1) AND OPEN<REF(CLOSE,1) AND OPEN<MA(CLOSE,10)) OR (OPEN<REF(CLOSE,1) AND REF(HIGH/CLOSE>OPEN/LOW AND OPEN<MA(CLOSE,10) AND OPEN/LOW<1.009 AND CLOSE>OPEN AND REF(COUNT(CLOSE<OPEN AND REF(CLOSE>OPEN AND HIGH/CLOSE<1.009,1),2)>=1,1),1)) OR REF(OPEN<REF(CLOSE,1) AND CLOSE/REF(CLOSE,1)<0.985 AND CLOSE<REF(OPEN,2) AND CLOSE<OPEN AND REF(CLOSE>OPEN AND HIGH/CLOSE<1.009,1),1) OR (REF(CLOSE/REF(CLOSE,1)<=0.995 AND CLOSE<OPEN AND CLOSE<REF(OPEN,1) AND REF(CLOSE/REF(CLOSE,1)>1 AND CLOSE>OPEN,1),1) AND OPEN<MA(CLOSE,10) AND OPEN<REF(OPEN,1)) OR COUNT(REF(CLOSE/REF(CLOSE,1)<0.963 AND REF(COUNT(CLOSE>OPEN,2)=2,1),1) AND LOW<MA(CLOSE,10),2)>=1;
X_21:=X_11>(-0.72) AND (X_9>0 OR (CLOSE<REF(CLOSE,2) AND REF(COUNT(CLOSE>OPEN AND REF(HIGH=CLOSE AND CLOSE/REF(CLOSE,1)>1.095,1),2)=1,1)));
X_22:=REF(REF(CLOSE/REF(CLOSE,1)<0.95 AND REF(COUNT(REF(CLOSE>OPEN AND HIGH/CLOSE<1.009,1) AND (CLOSE/REF(CLOSE,1)<0.986 OR CLOSE=LOW) AND CLOSE<REF(OPEN,1),3)>=1,1),2) AND CLOSE/OPEN>0.995 AND CLOSE/OPEN<1.03 AND CLOSE/OPEN<REF(CLOSE/OPEN,1) AND REF(CLOSE/OPEN>1.007 AND CLOSE>REF(CLOSE,1),1) AND COUNT(CLOSE<MA(CLOSE,60),2)>=1,1);
X_23:=REF(REF(C/REF(C,3)>=1.089 OR REF(X_1>=1.089,4) OR X_2>=1.073 OR X_1>=1.073,6) OR REF(C/REF(C,3)>=1.073,4) OR REF(C/REF(C,3)>=1.073,5) OR REF(C/REF(C,4)>=1.13,3) OR REF(C/REF(C,1)>=1.089,3) OR REF(C/REF(C,2)>=1.13,1) OR REF(C/REF(C,3)>=1.1,1) OR REF(C/REF(C,3)>=1.073,2) OR REF(C/REF(C,4)>=1.073,2) OR REF(C/REF(C,1)>=1.089,1) OR C/REF(C,6)>1.085 OR C/REF(C,2)>=1.089 OR C/REF(C,4)>=1.073,1) OR X_18 OR X_19 AND (C/REF(C,1)<0.957 OR (C/REF(C,3)<0.92 AND REF(C<REF(C,1),1)) OR (C/REF(C,1)<0.965 AND (REF(C<REF(C,1) OR C<O,1) OR C<REF((C+O)/2,2))) OR (C/REF(C,1)<0.966 AND C<REF(O,1) AND L<REF(L,1) AND REF(C>O AND REF(H=C,1) AND O>REF(C,1),1)) OR (O<REF(C,1) AND REF(C<O,1) AND C/REF(C,1)<0.97 AND L/REF(C,1)<0.927) OR (L/REF(C,1)<1.008 AND C/REF(C,1)<1.0199 AND C/O<0.955 AND O/C<1.13 AND REF(H=C,1)) OR (C<REF(L,2) OR C/REF(C,2)<0.951 OR C/REF(C,3)<0.951 OR C/REF(C,4)<0.951 OR X_1<0.951 AND (C/REF(C,2)<0.949 OR C/REF(C,3)<0.93 OR C/REF(C,4)<0.93 OR REF(COUNT(C<O AND REF(C<O,1),2)>=1,1) OR (C/REF(C,2)<0.96 AND REF(C>O AND REF(H=C AND C/REF(C,1)>1.095,1),2))))) AND (C/L<1.051 OR C/REF(C,1)<0.961) AND (X_21 OR X_19 OR (X_11>(-0.18) AND (X_9>(-1.61) OR COUNT(C/REF(C,1)<0.95,2)>=1 OR REF(COUNT(H=C,2)=2,3))));
X_24:=REF(X_6,1) OR OPEN<REF(OPEN,1) OR OPEN<REF(CLOSE,1);
X_25:=REF(HIGH/CLOSE<1.009 AND CLOSE/REF(CLOSE,1)>1.019 AND CLOSE>=OPEN AND REF(CLOSE>=OPEN,1),1);
X_26:=REF(REF(CLOSE<OPEN AND CLOSE/REF(CLOSE,1)<0.975,3) AND REF(REF(CLOSE<MA(CLOSE,10),1) AND OPEN<MA(CLOSE,10),1) AND OPEN<MA(CLOSE,10) AND (COUNT(CLOSE>OPEN,3)=3 AND REF(COUNT(CLOSE/REF(CLOSE,1)<1.01,2)=2,1) AND OPEN<MA(CLOSE,20) AND CLOSE/REF(CLOSE,1)<1.027 OR (REF(COUNT(CLOSE/OPEN>1.02,2)>=1 AND COUNT(CLOSE/OPEN>1.007,2)=2,1) AND OPEN<MA(CLOSE,20) AND HIGH>REF(HIGH,1) AND (CLOSE<OPEN AND HIGH/OPEN>CLOSE/LOW OR (CLOSE>OPEN AND HIGH/CLOSE>OPEN/LOW)) AND CLOSE/OPEN<1.025)),1);
X_27:=REF(COUNT(X_23,9)>=1 AND (C/REF(C,1)<1.0597 OR X_8) AND (X_7 AND (C/REF(C,1)>0.991 AND (X_4 AND REF(C<O OR H/C<1.005 OR COUNT(C>O,3)=3,2) AND H/C<O/L AND C<REF(O,1) AND REF(COUNT(C/REF(C,1)>1.011,3)>=1,2) AND REF(COUNT(C/O>0.97 AND REF(C/O>0.989,1),2)>=1,3) OR (H/C>O/L AND REF(COUNT(C<O,2)>=1,1) AND X_4)) AND REF(X_8,1) OR REF(C/L<1.006 AND C<=O,1)) OR COUNT(X_6 AND REF(C/O,2)<REF(C/O,1) AND H>REF(O,1),2)>=1 OR (X_8 AND (X_5 OR (REF(C/O,1)>C/O AND C/O>0.997 AND REF(C/O>1.021 AND REF(C/REF(C,1)<0.95,1),1))) AND (REF(X_7 AND REF(X_8,1) AND REF(C<=O,1),1) OR (C/REF(C,1)<0.952 AND C<O AND X_25))) OR (X_8 AND COUNT(C/O<0.991 AND REF(C<O,1) OR C/REF(C,1)<0.976 AND C/REF(C,1)<0.986,2)>=1 AND C<REF(C,1) AND REF(COUNT(C<=O OR C/REF(C,1)<1.029,2)>=1 OR REF(C/O>1.03 AND C/REF(C,1)>1.07,1),1) AND X_5)),1) AND (REF(X_8,1) OR REF(X_7,1)) AND REF(COUNT(C/O<0.982,7)>=2 OR COUNT(C/O>1.018,8)>=2 OR (X_8 AND REF(X_7 AND REF(X_8,1) AND REF(C<=O,1),1)) OR COUNT(C/REF(C,1)<0.955,6)>=1 OR COUNT(C/REF(C,1)>1.045,4)>=1 OR COUNT(C/REF(C,1)<0.982,2)>=1 OR (COUNT(C<=O,4)>=3 AND C/REF(C,1)<0.985) AND COUNT(C<=REF(C,1),3)>=1,1) AND (COUNT(O<=REF(LLV(O,2),2),2)>=1 OR REF(C/REF(C,2)<0.96 AND C/REF(O,1),1) OR (O<REF(O,2) AND REF(X_8,2) AND REF(COUNT(X_7,3)=3,3)) OR X_24);
X_28:=X_27 AND REF(CLOSE<OPEN OR (CLOSE>OPEN AND REF(COUNT(CLOSE<OPEN,2)>=1 AND REF(COUNT(CLOSE>OPEN,2)=1 OR COUNT(CLOSE>OPEN,4)>=3 OR COUNT(CLOSE<OPEN,4)>=3,1) OR COUNT(CLOSE<OPEN,3)=3,1)),1) AND REF(COUNT(X_5,2)>=1 OR REF(CLOSE/OPEN>1.011 OR REF(CLOSE/OPEN>1.021 AND REF(CLOSE>OPEN,1),1),1),1) AND REF(COUNT(X_3<REF(X_3,1),2)>=1 OR X_11<(-0.05) AND (CLOSE<REF(OPEN,1) AND CLOSE<OPEN OR COUNT(CLOSE/REF(CLOSE,1)<0.97,4)>=1 OR COUNT(CLOSE/REF(CLOSE,1)>1.025 OR (CLOSE/OPEN>1.02 AND CLOSE/REF(CLOSE,1)>1.01),4)>=1),1);
X_29:=REF(COUNT(X_23,9)>=1 AND (CLOSE/REF(CLOSE,1)<1.0597 OR X_8),1) AND X_26;
X_30:=X_29 AND CLOSE/REF(CLOSE,1)>1.025 AND CLOSE/OPEN>1.021 AND (X_9>0 OR X_11>(-0.01) AND (X_11>(-0.7) AND CLOSE/REF(CLOSE,1)>1.036 OR X_11>(-0.01))) OR (X_28 AND (CLOSE/REF(CLOSE,1)>1.036 OR CLOSE/OPEN>1.036 |