以下是通达信金前瞻源码
HJ_1:=REF(COUNT(CLOSE/REF(CLOSE,1)>1.095 AND HIGH=CLOSE,5)>=1 AND OPEN>MA(CLOSE,5),3) AND REF(COUNT(HIGH/LOW>1.095 AND CLOSE<HIGH,2)>=1,2) AND REF(CLOSE/REF(CLOSE,1)<0.907 AND LOW/CLOSE>0.996 AND COUNT(HIGH>OPEN,2)>=1 AND COUNT(VOL>REF(VOL,1),3)>=1,1) AND REF(CLOSE,1)/LOW>1.04 AND CLOSE/LOW>1.02;
HJ_2:=HJ_1 AND OPEN/LOW<1.033 AND VOL<HHV(VOL,3) OR (REF(COUNT(HJ_1,2)>=1,3) AND REF(CLOSE/REF(CLOSE,1)<0.911,1) AND OPEN/REF(CLOSE,1)>0.998 AND OPEN/REF(CLOSE,1)<1.033) OR (REF(HJ_1,4) AND REF(COUNT(CLOSE/REF(CLOSE,1)<0.907,2)>=1,1) AND (REF(CLOSE,1)/LOW>1.086 AND CLOSE/LOW>1.02 OR (OPEN/REF(CLOSE,1)>0.998 AND OPEN/REF(CLOSE,1)<1.033)));
HJ_3:=HJ_2 AND OPEN/LOW<1.033 AND OPEN/CLOSE<1.033 OR (REF(COUNT(HJ_2,2)>=1,3) AND REF(CLOSE/REF(CLOSE,1)<0.911 OR (OPEN<REF(CLOSE,1) AND CLOSE/REF(CLOSE,1)<0.95),1) AND OPEN/REF(CLOSE,1)>0.998 AND OPEN/REF(CLOSE,1)<1.033 AND OPEN/CLOSE<1.033) OR (REF(HJ_1,4) AND REF(COUNT(CLOSE/REF(CLOSE,1)<0.907,2)>=1,1) AND OPEN/CLOSE<1.033 AND (REF(CLOSE,1)/LOW>1.086 AND CLOSE/LOW>1.02 OR (OPEN/REF(CLOSE,1)>0.998 AND OPEN/REF(CLOSE,1)<1.033)));
HJ_4:=1000*OPEN/INDEXO;
HJ_5:=1000*CLOSE/INDEXC;
HJ_6:=1000*HIGH/INDEXH;
HJ_7:=100*EMA(EMA(CLOSE-REF(CLOSE,1),6),6)/EMA(EMA(ABS(CLOSE-REF(CLOSE,1)),6),6);
HJ_8:=LLV(HJ_7,2)=LLV(HJ_7,7) AND COUNT(HJ_7<0,2) AND CROSS(HJ_7,MA(HJ_7,2));
HJ_9:=MA(LOW,24)*1.09;
HJ_10:=CROSS(HJ_9,OPEN);
HJ_11:=EMA(LOW,25);
HJ_12:=CROSS(CLOSE,HJ_11);
HJ_13:=COUNT(CLOSE>OPEN,2)>=1 OR REF(CLOSE/REF(CLOSE,1)>1.095 AND HIGH=CLOSE,2) AND COUNT(LOW<MA(CLOSE,5),2)>=1 AND (OPEN/REF(CLOSE,1)>0.95 OR OPEN<REF(LOW,1)) AND HJ_4/REF(HJ_4,1)>0.9 AND (VOL>REF(HHV(VOL,800),1) OR REF(CLOSE>LOW,1)) AND COUNT(OPEN/LOW<1.04 AND CLOSE>OPEN OR (CLOSE/LOW<1.04 AND CLOSE<OPEN),2)=2;
HJ_14:=CLOSE/REF(CLOSE,1)>1.095 AND REF(HJ_5>HJ_4,3) AND REF(COUNT(HJ_5<HJ_4,5)>=1,1) AND REF(HJ_8,4) AND HIGH=CLOSE OR (CLOSE/REF(CLOSE,1)>1.095 AND REF(REF(HJ_3,4) OR HJ_3,1) AND HIGH=CLOSE) OR (NOT(REF(HJ_8,3)) AND NOT(HJ_10)) AND (CLOSE/REF(CLOSE,1)>=1.08 OR CLOSE/OPEN>1.06) AND LOW>REF(LOW,1) AND LOW/MA(CLOSE,5)<1.025;
HJ_15:=COUNT(CLOSE>OPEN,5)>=3;
HJ_16:=REF(VOL/CAPITAL*100>3 AND HIGH-MAX(OPEN,CLOSE)>ABS(OPEN-CLOSE) AND HIGH-MAX(OPEN,CLOSE)>7*(MIN(CLOSE,OPEN)-LOW) AND (HIGH-LOW)/REF(CLOSE,1)*100>6 AND CLOSE>REF(CLOSE,1),1);
金前瞻:HJ_15 AND OPEN<REF(CLOSE,1) AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1) AND HJ_16 AND IF(FILTER(REF(OPEN/REF(CLOSE,1)>0.984 AND COUNT(HJ_14,6)>=1 OR HJ_13,1) AND REF(HIGH/CLOSE>1.037 AND (COUNT(CLOSE>OPEN,2)>=1 OR REF(CLOSE/REF(CLOSE,1)>1.095 AND HIGH=CLOSE,2)) AND CLOSE/LOW<HIGH/CLOSE AND (CLOSE/OPEN>0.983 AND REF(HIGH=CLOSE AND CLOSE>=REF(OPEN,1),1) OR CLOSE/OPEN>0.99 AND REF(CLOSE/OPEN>1.03 OR HIGH/CLOSE>1.05 OR (HIGH=CLOSE AND CLOSE/OPEN>1.03),1)) OR HIGH=CLOSE OR HJ_13,1) AND (OPEN/REF(MA(CLOSE,5),1)<1.005 OR (OPEN<REF(LOW,1) OR (OPEN/REF(LOW,1)<1.013 AND REF(HIGH=CLOSE,2)) AND OPEN/MA(CLOSE,5)<1.015 AND REF(OPEN/LOW<1.05,2))) AND CLOSE/OPEN>1.01 AND OPEN<REF(CLOSE,1) AND REF(HJ_4<HJ_5 AND (HJ_6/HJ_5<1.045 AND CLOSE/OPEN<1.04 OR HJ_5/HJ_4>1.07 OR HJ_5/HJ_4<1.003),1),3),1,0);
{———————————–}
评论(0)