精選【金牛套裝】主圖副圖選股指標(biāo)源碼-主圖指標(biāo)源碼XA1:=IF(DATE<2442.46*500,1,1); 牛熊線:DMA(MA(CLOSE+REF(CLOSE,5)*XA1/CLOSE*0.098,90),VOL),DOTLINE,COLORYELLOW; 短線:MA(C,5) DOTLINE COLORGREEN ; X_1:=CLOSE; NOTEXT1:FORCAST(EMA(X_1,9),7),COLORGREEN; NOTEXT2:FORCAST(EMA(X_1,17),7),DOTLINE,COLORMAGENTA; NOTEXT3:FORCAST(EMA(X_1,25),7),COLORGREEN,LINETHICK2; NOTEXT4:IF(NOTEXT1>=NOTEXT2,NOTEXT1,DRAWNULL),COLORRED; NOTEXT5:IF(NOTEXT1<NOTEXT2,NOTEXT2,DRAWNULL),DOTLINE,COLORGREEN; NOTEXT6:IF(NOTEXT2>=NOTEXT3,NOTEXT3,DRAWNULL),COLORRED,LINETHICK2; X_2:=EMA(CLOSE,12)-EMA(CLOSE,26); X_3:=EMA(X_2,9); STICKLINE(X_2>=X_3,CLOSE,OPEN,3,0),COLORRED; STICKLINE(X_2>=X_3,HIGH,LOW,0.00009,0),COLORRED; X_4:=X_2>=X_3; X_5:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100; X_6:=SMA(X_5,3,1); X_7:=SMA(X_6,3,1); STICKLINE(CROSS(X_6,X_7) AND X_7<=55,CLOSE,OPEN,3.1,0),COLORYELLOW; STICKLINE(CROSS(X_6,X_7) AND X_7<=55,HIGH,LOW,0.00009,0),COLORYELLOW; X_8:=CROSS(X_6,X_7) AND X_7<=55; X_9:=REF(CLOSE,1); X_10:=SMA(MAX(CLOSE-X_9,0),9,1)/SMA(ABS(CLOSE-X_9),9,1)*100; STICKLINE(X_10>=75,OPEN,CLOSE,3.1,0),COLORFF00FF; STICKLINE(X_10>=75,HIGH,LOW,0.00009,0),COLORFF00FF; X_11:=X_10>=75; STICKLINE(NOT(X_8) AND NOT(X_4) AND NOT(X_11),OPEN,CLOSE,3.1,0),COLORCYAN; STICKLINE(NOT(X_8) AND NOT(X_4) AND NOT(X_11),HIGH,LOW,0.00009,0),COLORCYAN;DRAWTEXT_FIX(1,0.0,0.8,0,'公'),COLORRED,LINETHICK1; DRAWTEXT_FIX(1,0.0,0.8,0,' 眾'),COLORRED,LINETHICK1; DRAWTEXT_FIX(1,0.0,0.8,0,' 號(hào):金鉆指標(biāo)公式'),COLORRED,LINETHICK1; DRAWTEXT_FIX(1,0.0,0.9,0,''),COLORRED,LINETHICK1; 副圖指標(biāo)源碼CCI:=EMA(((IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3)-MA((IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3),84.0270012))/(0.015*AVEDEV((IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3),84.0270012)),2.0332),COLORWHITE; 金牛啟動(dòng):=CCI>HHV(MA(CCI,5),21) AND CROSS(C,1.13*(EMA((EXPMA(CLOSE*VOL,3)/EXPMA(VOL,3)+EXPMA(CLOSE*VOL,6)/EXPMA(VOL,6)+EXPMA(CLOSE*VOL,12)/EXPMA(VOL,12)+EXPMA(CLOSE*VOL,24)/EXPMA(VOL,24))/4,13))) AND REF(C,1)*1.1-C<0.01 AND H=C; 金牛王:金牛啟動(dòng) ,LINETHICK3,COLORFF00FF; DRAWTEXT(金牛王>0,0.4,'★ 金牛王'),LINETHICK2,COLORYELLOW; DRAWTEXT_FIX(1,0.0,0.8,0,'公'),COLORRED,LINETHICK1; DRAWTEXT_FIX(1,0.0,0.8,0,' 眾'),COLORRED,LINETHICK1; DRAWTEXT_FIX(1,0.0,0.8,0,' 號(hào):金鉆指標(biāo)公式'),COLORRED,LINETHICK1; DRAWTEXT_FIX(1,0.0,0.9,0,''),COLORRED,LINETHICK1; 副圖指標(biāo)源碼X_1:=HHV(EMA(CLOSE,17),2); NOTEXT2:EMA(CLOSE,17),COLORRED,LINETHICK3; NOTEXT3:IF(X_1=NOTEXT2 AND UPNDAY(X_1,3),X_1,DRAWNULL),COLORRED,LINETHICK3; NOTEXT4:IF(REF(X_1,2)>NOTEXT2,NOTEXT2,DRAWNULL),COLORGREEN,LINETHICK3; X_2:=REF(CLOSE,1); X_3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; X_4:=SMA(X_3,3,1); X_5:=SMA(X_4,3,1); X_6:=3*X_4-2*X_5; X_7:=SMA(MAX(CLOSE-X_2,0),9,1)/SMA(ABS(CLOSE-X_2),9,1)*100; X_8:=X_7>=75; X_9:=X_6>=95; X_10:=EMA(CLOSE,12)-EMA(CLOSE,26); X_11:=EMA(X_10,3); X_12:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100; X_13:=SMA(MAX(CLOSE-X_2,0),9,1)/SMA(ABS(CLOSE-X_2),9,1)*100; X_14:=X_10>X_11 OR X_10=X_11 AND X_12>9 AND X_12<11 AND 40<X_13 AND X_13<60 AND CLOSE=HIGH; X_15:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; X_16:=SMA(X_15,4,1); X_17:=SMA(X_16,3,1); X_18:=CLOSE>=OPEN AND CROSS(X_16,X_17) AND X_17<=50; X_19:=IF(X_8 OR X_9 AND (CLOSE+NOTEXT2)/2<NOTEXT2,(3*NOTEXT2-CLOSE)/2,(CLOSE+NOTEXT2)/2); X_20:=IF(X_18 OR X_14 AND (CLOSE+NOTEXT2)/2>NOTEXT2,(3*NOTEXT2-CLOSE)/2,(CLOSE+NOTEXT2)/2); STICKLINE(NOT(X_8) AND NOT(X_9) AND NOT(X_18) AND NOT(X_14),NOTEXT2,NOTEXT2*1.009,2.3,0),COLORA4A4A4; STICKLINE(NOT(X_8) AND NOT(X_9) AND NOT(X_18) AND NOT(X_14),NOTEXT2,NOTEXT2*1.009,2,0),COLORB6B6B6; STICKLINE(NOT(X_8) AND NOT(X_9) AND NOT(X_18) AND NOT(X_14),NOTEXT2,NOTEXT2*1.009,1.7,0),COLORB8B8B8; STICKLINE(NOT(X_8) AND NOT(X_9) AND NOT(X_18) AND NOT(X_14),NOTEXT2,NOTEXT2*1.009,1.4,0),COLORCACACA; STICKLINE(NOT(X_8) AND NOT(X_9) AND NOT(X_18) AND NOT(X_14),NOTEXT2,NOTEXT2*1.009,1.1,0),COLORF4F4F4; STICKLINE(NOT(X_8) AND NOT(X_9) AND NOT(X_18) AND NOT(X_14),NOTEXT2,NOTEXT2*1.009,0.8,0),COLORF6F6F6; STICKLINE(X_7>=75,NOTEXT2,X_19,2.3,0),COLOR000057; STICKLINE(X_7>=75,NOTEXT2,X_19,2,0),COLOR00007D; STICKLINE(X_7>=75,NOTEXT2,X_19,1.7,0),COLOR00008C; STICKLINE(X_7>=75,NOTEXT2,X_19,1.4,0),COLOR0000A1; STICKLINE(X_7>=75,NOTEXT2,X_19,1.1,0),COLOR0000B5; STICKLINE(X_7>=75,NOTEXT2,X_19,0.8,0),COLOR0000CC; STICKLINE(X_6>=95,NOTEXT2,X_19,2.3,0),COLOR570057; STICKLINE(X_6>=95,NOTEXT2,X_19,2,0),COLOR660066; STICKLINE(X_6>=95,NOTEXT2,X_19,1.7,0),COLOR7D007D; STICKLINE(X_6>=95,NOTEXT2,X_19,1.4,0),COLOR990099; STICKLINE(X_6>=95,NOTEXT2,X_19,1.1,0),COLORBD00BD; STICKLINE(X_6>=95,NOTEXT2,X_19,0.8,0),COLORMAGENTA; STICKLINE(X_18,NOTEXT2,X_20,2.3,0),COLOR004040; STICKLINE(X_18,NOTEXT2,X_20,2,0),COLOR006464; STICKLINE(X_18,NOTEXT2,X_20,1.7,0),COLOR00A8A8; STICKLINE(X_18,NOTEXT2,X_20,1.4,0),COLOR00DBDB; STICKLINE(X_18,NOTEXT2,X_20,1.1,0),COLOR15FFFF; STICKLINE(X_18,NOTEXT2,X_20,0.8,0),COLOR4DFFFF; STICKLINE(X_14,NOTEXT2,X_20*0.98,2,0),COLORCYAN; STICKLINE(X_14,NOTEXT2,X_20*0.98,1.5,0),COLOR990000; STICKLINE(X_14,NOTEXT2,X_20*0.98,1.8,0),COLORCC0000; STICKLINE(X_14,NOTEXT2,X_20*0.98,0.3,0),COLORFF4400; STICKLINE(X_14,NOTEXT2,X_20*0.98,2,0),COLORFF8800; STICKLINE(X_14,NOTEXT2,X_20*0.98,1.5,0),COLORFFCC00; STICKLINE(X_14,NOTEXT2,X_20*0.98,0.8,0),COLORCYAN; 選股指標(biāo)CCI:=EMA(((IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3)-MA((IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3),84.0270012))/(0.015*AVEDEV((IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3),84.0270012)),2.0332),COLORWHITE; JNWXG:CCI>HHV(MA(CCI,5),21) AND CROSS(C,1.13*(EMA((EXPMA(CLOSE*VOL,3)/EXPMA(VOL,3)+EXPMA(CLOSE*VOL,6)/EXPMA(VOL,6)+EXPMA(CLOSE*VOL,12)/EXPMA(VOL,12)+EXPMA(CLOSE*VOL,24)/EXPMA(VOL,24))/4,13))) AND REF(C,1)*1.1-C<0.01 AND H=C; 選股指標(biāo)去ST:=NOT(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S') ); 去科創(chuàng):=NOT(CODELIKE('688') ); 去創(chuàng)業(yè):=NOT(CODELIKE('300') ); 去停牌:=DYNAINFO(4)>1 ; {今開大于1,去停牌及最低價(jià)} SX:=去ST AND 去科創(chuàng) AND 去停牌 AND 去創(chuàng)業(yè) ; ZLZJ:=0.04; X_1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); X_2:=IF(CLOSE>OPEN,X_1*(HIGH-LOW),VOL/2); X_3:=MA(X_2,35); X_4:=(LOW+HIGH+CLOSE+OPEN)/3.82; X_5:=HHV(MA(X_4,6),15); X_6:=MA(CLOSE,30); X_7:=X_6+2*STD(CLOSE,30); X_8:=EMA(CLOSE,5); X_9:=CLOSE>X_7 AND CLOSE>=OPEN; X_10:=BUYVOL>ZLZJ*CAPITAL; X_11:=100*VOL/(FINANCE(7)/100)>4 OR VOL/REF(VOL,1)>=2; X_12:=X_2>X_3 AND CROSS(CLOSE,X_5) AND X_9 AND X_11; X_13:=COUNT(X_12,10)>=1; X_14:=COUNT(X_2>X_3,30)>=15; X_15:=REF(CLOSE,1)/LLV(LOW,15)<=1.4 AND REF(COUNT(CLOSE/REF(CLOSE,1)>=1.092,10),3)<2; X_16:=MA(LOW,20)*1.2; X_17:=MA(LOW,8)*1.1; X_18:=X_16>REF(X_16,1) AND CLOSE/REF(CLOSE,1)>=1.09 AND X_2>X_3 AND X_15; JNJC:=CROSS(CLOSE,X_16) OR CROSS(CLOSE,X_17) AND X_18 AND X_14 AND X_13 AND X_10; XG:FILTER(JNJC,6) AND SX; 金牛決策精選 去ST:=NOT(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S') ); 去科創(chuàng):=NOT(CODELIKE('688') ); 去創(chuàng)業(yè):=NOT(CODELIKE('30') ); 去停牌:=DYNAINFO(4)>1 ; {今開大于1,去停牌及最低價(jià)} SX:=去ST AND 去科創(chuàng) AND 去停牌 AND 去創(chuàng)業(yè) ; ZLZJ:=0.04; X_1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); X_2:=IF(CLOSE>OPEN,X_1*(HIGH-LOW),VOL/2); X_3:=MA(X_2,35); X_4:=(LOW+HIGH+CLOSE+OPEN)/3.82; X_5:=HHV(MA(X_4,6),15); X_6:=MA(CLOSE,30); X_7:=X_6+2*STD(CLOSE,30); X_8:=EMA(CLOSE,5); X_9:=CLOSE>X_7 AND CLOSE>=OPEN; X_10:=BUYVOL>ZLZJ*CAPITAL; X_11:=100*VOL/(FINANCE(7)/100)>4 OR VOL/REF(VOL,1)>=2; X_12:=X_2>X_3 AND CROSS(CLOSE,X_5) AND X_9 AND X_11; X_13:=COUNT(X_12,10)>=1; X_14:=COUNT(X_2>X_3,30)>=15; X_15:=REF(CLOSE,1)/LLV(LOW,15)<=1.4 AND REF(COUNT(CLOSE/REF(CLOSE,1)>=1.092,10),3)<2; X_16:=MA(LOW,20)*1.2; X_17:=MA(LOW,8)*1.1; X_18:=X_16>REF(X_16,1) AND CLOSE/REF(CLOSE,1)>=1.09 AND X_2>X_3 AND X_15; JNJC:=CROSS(CLOSE,X_16) OR CROSS(CLOSE,X_17) AND X_18 AND X_14 AND X_13 AND X_10; XG:FILTER(JNJC,10) AND SX; 金牛資金綠柱 X_1:=REF(CLOSE,1); X_2:=EMA(CLOSE,12)-EMA(CLOSE,26); X_3:=EMA(X_2,3); X_4:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100; X_5:=SMA(MAX(CLOSE-X_1,0),9,1)/SMA(ABS(CLOSE-X_1),9,1)*100; XG:X_2>X_3 OR X_2=X_3 AND X_4>9 AND X_4<11 AND 40<X_5 AND X_5<60 AND CLOSE=HIGH; 金牛資金紫金 X_1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; X_2:=SMA(X_1,3,1); X_3:=SMA(X_2,3,1); X_4:=3*X_2-2*X_3; XG:X_4>95; 金牛資金黃柱 X_1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; X_2:=SMA(X_1,4,1); X_3:=SMA(X_2,3,1); XG:CLOSE>=OPEN AND CROSS(X_2,X_3) AND X_3<=50; |
|
來(lái)自: 指標(biāo)公社 > 《TDX指標(biāo)副圖》