123456819 发表于 2023-9-15 04:05:00

通达信理想金钻云飞小妖主图指标公式源码分享

<p data-first-child></p><p >通达信理想金钻云飞小妖主图指标公式源码分享</p><p class="ztext-empty-paragraph"><br/></p><p >DRAWTEXT_FIX(ISLASTBAR AND DATE>=1160715,0.38,0.3,0,18),COLORYELLOW;</p><p >DRAWTEXT_FIX(ISLASTBAR AND DATE>=1160715,0.35,0.5,0,19),COLORYELLOW;</p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p >HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;</p><p >HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)</p><p >+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)</p><p >+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+</p><p >REF(HHJSJDA,20))/210,COLORYELLOW;</p><p >HHJSJDC:MA(HHJSJDB,5),COLORRED;</p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p >X:=(3*C+L+O+H)/6;</p><p >DKX:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)</p><p >+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)</p><p >+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+</p><p >REF(X,20))/210,COLORGREEN,LINETHICK2;</p><p >必涨:=CROSS(C,DKX);</p><p class="ztext-empty-paragraph"><br/></p><p >MA05:=MA(C,5),LINETHICK3,COLOR00CCFF;</p><p >MA10:=MA(C,10);</p><p >MA20:=MA(C,20);</p><p >MA30:=MA(C,30);</p><p >五日乖离率:=(C-MA05)/MA05*100;</p><p >三拾日乖离率:=(C-MA30)/MA30*100,NODRAW;</p><p >MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;</p><p >买入:=FILTER(MR,10);</p><p class="ztext-empty-paragraph"><br/></p><p >买入必涨:=必涨 AND 买入;</p><p class="ztext-empty-paragraph"><br/></p><p >DRAWTEXT(买入必涨,L,'▲小妖来了'),COLORCYAN;</p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p >X_1:=4;</p><p >X_2:=HIGH=HHV(HIGH,X_1*5) AND HHV(HIGH,X_1*5)>REF(HHV(HIGH,X_1*5),1);</p><p >X_3:=LOW=LLV(LOW,X_1*5) AND LLV(LOW,X_1*5)<REF(LLV(LOW,X_1*5),1);</p><p >CC1:DRAWLINE(X_2,HIGH,X_3,LOW,0);</p><p >CC2:DRAWLINE(X_3,LOW,X_2,HIGH,0);</p><p >X_4:=1;</p><p >X_5:=BACKSET(LLV(LOW,5)<REF(LLV(LOW,4),1),4);</p><p >X_6:=BACKSET(X_5=0 AND REF(X_5,1)=1,2);</p><p >X_7:=IF(X_6=1 AND REF(X_6,1)=0,(-1),0);</p><p >X_8:=BACKSET(HHV(HIGH,5)>REF(HHV(HIGH,4),1),4);</p><p >X_9:=BACKSET(X_8=0 AND REF(X_8,1)=1,2);</p><p >X_10:=IF(X_9=1 AND REF(X_9,1)=0,1,0);</p><p >X_11:=IF(LOW>REF(HIGH,1),1,IF(HIGH<REF(LOW,1),(-1),0));</p><p >X_12:=BARSLAST(X_10=1);</p><p >X_13:=BARSLAST(X_7=(-1));</p><p >X_14:=LOWRANGE(LOW);</p><p >X_15:=TOPRANGE(HIGH);</p><p >X_16:=IF(X_7=(-1) AND REF(X_12,1)>REF(X_13,1) AND LLV(LOW,X_12+1)<REF(LLV(LOW,X_12+1),1),(-1),0);</p><p >X_17:=IF(X_7=(-1) AND REF(X_12,1)<=REF(X_13,1) AND (X_12>=4 OR LLV(X_11,X_12)=(-1) OR LLV(LOW,X_13+2)<REF(LLV(LOW,X_13+1),1)),(-1),0);</p><p >X_18:=IF(X_16=(-1) OR X_17=(-1) AND LOW<REF(HIGH,X_12+1),(-1),0);</p><p >X_19:=IF(X_13<4 AND HHV(X_11,X_13)!=1 OR REF(X_18,X_13)=0,1,0);</p><p >X_20:=IF(X_10=1 AND REF(X_13,1)<=REF(X_12,1) AND X_19=1 AND X_15>REF(X_14,X_13+1) AND X_15>REF(X_14,X_13) AND X_15>REF(X_15,X_12),1,0);</p><p >X_21:=IF(X_10=1 AND REF(X_13,1)>REF(X_12,1) AND HHV(HIGH,X_13+1)>REF(HHV(HIGH,X_13+1),1),1,0);</p><p >X_22:=IF(X_10=1 AND REF(X_13,1)<=REF(X_12,1) AND REF(X_18,X_13)=(-1) AND (X_13>=4 OR HHV(X_11,X_13)=1),1,0);</p><p >X_23:=IF(X_21=1 OR X_22=1 OR X_20=1 AND HIGH>REF(LOW,X_13+1),1,0);</p><p >X_24:=IF(X_12<4 AND HHV(X_11,X_12)!=1 OR REF(X_23,X_12)=0,1,0);</p><p >X_25:=IF(X_7=(-1) AND REF(X_12,1)<=REF(X_13,1) AND X_24=1 AND X_14>REF(X_15,X_12+1) AND X_14>REF(X_15,X_12) AND X_14>REF(X_14,X_13),(-1),0);</p><p >X_26:=IF(X_7=(-1) AND REF(X_12,1)>REF(X_13,1) AND LLV(LOW,X_12+1)<REF(LLV(LOW,X_12+1),1),(-1),0);</p><p >X_27:=IF(X_7=(-1) AND REF(X_12,1)<=REF(X_13,1) AND (X_12>=4 OR LLV(X_11,X_12)=(-1) OR X_25=(-1)),(-1),0);</p><p >X_28:=IF(X_26=(-1) OR X_27=(-1) AND LOW<REF(HIGH,X_12+1),(-1),0);</p><p >X_29:=BARSLAST(X_23=1);</p><p >X_30:=BARSLAST(X_28=(-1));</p><p >X_31:=IF(X_30<4 AND HHV(X_11,X_30)!=1 OR REF(X_28,X_30)=0,1,0);</p><p >X_32:=IF(X_10=1 AND REF(X_30,1)<=REF(X_29,1) AND X_31=1 AND X_15>REF(X_14,X_30+1) AND X_15>REF(X_14,X_30) AND X_15>REF(X_15,X_29),1,0);</p><p >X_33:=IF(X_10=1 AND REF(X_30,1)>REF(X_29,1) AND HHV(HIGH,X_30+1)>REF(HHV(HIGH,X_30+1),1),1,0);</p><p >X_34:=IF(X_10=1 AND REF(X_30,1)<=REF(X_29,1) AND REF(X_28,X_30)=(-1) AND (X_30>=4 OR HHV(X_11,X_30)=1),1,0);</p><p >X_35:=IF(X_33=1 OR X_34=1 OR X_32=1 AND HIGH>REF(LOW,X_30+1),1,0);</p><p >X_36:=IF(X_29<4 AND HHV(X_11,X_29)!=1 OR REF(X_33,X_29)=0,1,0);</p><p >X_37:=IF(X_7=(-1) AND REF(X_29,1)<=REF(X_30,1) AND X_36=1 AND X_14>REF(X_15,X_29+1) AND X_14>REF(X_15,X_29) AND X_14>REF(X_14,X_30),(-1),0);</p><p >X_38:=IF(X_7=(-1) AND REF(X_29,1)>REF(X_30,1) AND LLV(LOW,X_29+1)<REF(LLV(LOW,X_29+1),1),(-1),0);</p><p >X_39:=IF(X_7=(-1) AND REF(X_29,1)<=REF(X_30,1) AND (X_29>=4 OR LLV(X_11,X_29)=(-1) OR X_37=(-1)),(-1),0);</p><p >X_40:=IF(X_38=(-1) OR X_39=(-1) AND LOW<REF(HIGH,X_29+1),(-1),0);</p><p >X_41:=BARSLAST(X_35=1);</p><p >X_42:=BARSLAST(X_40=(-1));</p><p >X_43:=IF(X_42<4 AND HHV(X_11,X_42)!=1 OR REF(X_40,X_42)=0,1,0);</p><p >X_44:=IF(X_10=1 AND REF(X_42,1)<=REF(X_41,1) AND X_43=1 AND X_15>REF(X_14,X_42+1) AND X_15>REF(X_14,X_42) AND X_15>REF(X_15,X_41),1,0);</p><p >X_45:=IF(X_10=1 AND REF(X_42,1)>REF(X_41,1) AND HHV(HIGH,X_42+1)>REF(HHV(HIGH,X_42+1),1),1,0);</p><p >X_46:=IF(X_10=1 AND REF(X_42,1)<=REF(X_41,1) AND REF(X_40,X_42)=(-1) AND (X_42>=4 OR HHV(X_11,X_42)=1),1,0);</p><p >X_47:=IF(X_45=1 OR X_46=1 OR X_44=1 AND HIGH>REF(LOW,X_42+1),1,0);</p><p >X_48:=IF(X_41<4 AND HHV(X_11,X_41)!=1 OR REF(X_45,X_41)=0,1,0);</p><p >X_49:=IF(X_7=(-1) AND REF(X_41,1)<=REF(X_42,1) AND X_48=1 AND X_14>REF(X_15,X_41+1) AND X_14>REF(X_15,X_41) AND X_14>REF(X_14,X_42),(-1),0);</p><p >X_50:=IF(X_7=(-1) AND REF(X_41,1)>REF(X_42,1) AND LLV(LOW,X_41+1)<REF(LLV(LOW,X_41+1),1),(-1),0);</p><p >X_51:=IF(X_7=(-1) AND REF(X_41,1)<=REF(X_42,1) AND (X_41>=4 OR LLV(X_11,X_41)=(-1) OR X_49=(-1)),(-1),0);</p><p >X_52:=IF(X_50=(-1) OR X_51=(-1) AND LOW<REF(HIGH,X_41+1),(-1),0);</p><p >X_53:=IF(X_47=1 AND X_52=(-1) AND HIGH>REF(HIGH,REF(X_41,1)+2),1,IF(X_47=1 AND X_52=(-1) AND LOW<REF(LOW,REF(X_42,1)+2),(-1),0));</p><p >X_54:=IF(X_53=0,X_47+X_52,X_53);</p><p >局部极点:IF(X_54=(-1),LOW,IF(X_54=1,HIGH,DRAWNULL)),CIRCLEDOT,COLORLIMAGENTA;</p><p >C1:DRAWLINE(X_54=(-1),局部极点,X_54=1,局部极点,0),COLORMAGENTA;</p><p >C2:DRAWLINE(X_54=1,局部极点,X_54=(-1),局部极点,0),COLORLIGRAY;</p><p >X_55:=IF(X_4=1,C2=C1 AND X_8 AND X_54=1,DRAWNULL);</p><p >X_56:=IF(X_4=1,C2=C1 AND X_5 AND X_54=(-1),DRAWNULL);</p><p >X_57:=BARSLAST(X_55);</p><p >X_58:=CURRBARSCOUNT=CONST(X_57)+1;</p><p >X_59:=BARSLAST(X_58);</p><p >X_60:=CONST(REF(HIGH,X_59));</p><p >X_61:=REF(X_57,X_57+1)+X_57+1;</p><p >X_62:=CURRBARSCOUNT=CONST(X_61)+1;</p><p >X_63:=BARSLAST(X_62);</p><p >X_64:=CONST(REF(HIGH,X_63));</p><p >X_65:=REF(X_61,X_57+1)+X_57+1;</p><p >X_66:=CURRBARSCOUNT=CONST(X_65)+1;</p><p >X_67:=BARSLAST(X_66);</p><p >X_68:=CONST(REF(HIGH,X_67));</p><p >X_69:=BARSLAST(X_56);</p><p >X_70:=CURRBARSCOUNT=CONST(X_69)+1;</p><p >X_71:=BARSLAST(X_70);</p><p >X_72:=CONST(REF(LOW,X_71));</p><p >X_73:=REF(X_69,X_69+1)+X_69+1;</p><p >X_74:=CURRBARSCOUNT=CONST(X_73)+1;</p><p >X_75:=BARSLAST(X_74);</p><p >X_76:=CONST(REF(LOW,X_75));</p><p >X_77:=REF(X_73,X_69+1)+X_69+1;</p><p >X_78:=CURRBARSCOUNT=CONST(X_77)+1;</p><p >X_79:=BARSLAST(X_78);</p><p >X_80:=CONST(REF(LOW,X_79));</p><p >X_81:=X_72<X_76 AND X_64>X_60 AND X_73>X_57 AND X_57>X_69 AND X_61>X_73 AND CONST(CLOSE)>X_76;</p><p >X_82:=IF(X_81 AND CONST(CLOSE)<X_60,X_74,DRAWNULL);</p><p >STICKLINE(X_82,CONST(CLOSE),X_76,0,0),COLORLIMAGENTA;</p><p >X_83:=IF(X_81 AND CONST(CLOSE)<X_60,ISLASTBAR,DRAWNULL);</p><p >STICKLINE(X_83,CONST(CLOSE),X_76,0,0),COLORLIMAGENTA;</p><p >DRAWLINE(X_82=1,CONST(CLOSE),X_83=1,CONST(CLOSE),0),DOTLINE,COLORLIMAGENTA;</p><p >DRAWLINE(X_82=1,X_76,X_83=1,X_76,0),COLORLIMAGENTA;</p><p >X_84:=IF(X_81 AND CONST(CLOSE)>=X_60,X_74,DRAWNULL);</p><p >STICKLINE(X_84,X_60,X_72,0,0),COLORLIMAGENTA;</p><p >X_85:=IF(X_81 AND CONST(CLOSE)>=X_60,ISLASTBAR,DRAWNULL);</p><p >STICKLINE(X_85,X_60,X_72,0,0),COLORLIMAGENTA;</p><p >DRAWLINE(X_84=1,X_60,X_85=1,X_60,0),COLORLIMAGENTA;</p><p >DRAWLINE(X_84=1,X_72,X_85=1,X_72,0),COLORLIMAGENTA;</p><p >X_86:=X_72>X_76 AND X_60>X_64 AND X_69>X_57 AND X_61>X_69 AND X_73>X_61 AND CONST(CLOSE)<X_64;</p><p >X_87:=IF(X_86 AND CONST(CLOSE)>X_72,X_62,DRAWNULL);</p><p >STICKLINE(X_87,CONST(CLOSE),X_64,0,0),COLORGREEN;</p><p >X_88:=IF(X_86 AND CONST(CLOSE)>X_72,ISLASTBAR,DRAWNULL);</p><p >STICKLINE(X_88,CONST(CLOSE),X_64,0,0),COLORGREEN;</p><p >DRAWLINE(X_87=1,X_64,X_88=1,X_64,0),COLORGREEN;</p><p >DRAWLINE(X_87=1,CONST(CLOSE),X_88=1,CONST(CLOSE),0),DOTLINE,COLORGREEN;</p><p >X_89:=IF(X_86 AND CONST(CLOSE)<=X_72,X_62,DRAWNULL);</p><p >STICKLINE(X_89,X_64,X_72,0,0),COLORGREEN;</p><p >X_90:=IF(X_86 AND CONST(CLOSE)<=X_72,ISLASTBAR,DRAWNULL);</p><p >STICKLINE(X_90,X_64,X_72,0,0),COLORGREEN;</p><p >DRAWLINE(X_89=1,X_64,X_90=1,X_64,0),COLORGREEN;</p><p >DRAWLINE(X_89=1,X_72,X_90=1,X_72,0),COLORGREEN;</p><p >X_91:=X_72>X_76 AND X_64>X_60 AND X_73>X_57 AND X_57>X_69 AND X_61>X_73 AND CONST(CLOSE)>X_72;</p><p >X_92:=IF(X_91 AND CONST(CLOSE)<X_60,X_74,DRAWNULL);</p><p >STICKLINE(X_92,CONST(CLOSE),X_72,0,0),COLORYELLOW;</p><p >X_93:=IF(X_91 AND CONST(CLOSE)<X_60,ISLASTBAR,DRAWNULL);</p><p >STICKLINE(X_93,CONST(CLOSE),X_72,0,0),COLORYELLOW;</p><p >DRAWLINE(X_92=1,CONST(CLOSE),X_93=1,CONST(CLOSE),0),DOTLINE,COLORYELLOW;</p><p >DRAWLINE(X_92=1,X_72,X_93=1,X_72,0),COLORYELLOW;</p><p >X_94:=IF(X_91 AND CONST(CLOSE)>=X_60,X_74,DRAWNULL);</p><p >STICKLINE(X_94,X_60,X_72,0,0),COLORYELLOW;</p><p >X_95:=IF(X_91 AND CONST(CLOSE)>=X_60,ISLASTBAR,DRAWNULL);</p><p >STICKLINE(X_95,X_60,X_72,0,0),COLORYELLOW;</p><p >DRAWLINE(X_94=1,X_60,X_95=1,X_60,0),COLORYELLOW;</p><p >DRAWLINE(X_94=1,X_72,X_95=1,X_72,0),COLORYELLOW;</p><p >X_96:=X_72>X_76 AND X_60<X_64 AND X_69>X_57 AND X_61>X_69 AND X_73>X_61 AND CONST(CLOSE)<X_60;</p><p >X_97:=IF(X_96 AND CONST(CLOSE)>X_72,X_62,DRAWNULL);</p><p >STICKLINE(X_97,CONST(CLOSE),X_60,0,0),COLORLICYAN;</p><p >X_98:=IF(X_96 AND CONST(CLOSE)>X_72,ISLASTBAR,DRAWNULL);</p><p >STICKLINE(X_98,CONST(CLOSE),X_60,0,0),COLORLICYAN;</p><p >DRAWLINE(X_97=1,X_60,X_98=1,X_60,0),COLORLICYAN;</p><p >DRAWLINE(X_97=1,CONST(CLOSE),X_98=1,CONST(CLOSE),0),DOTLINE,COLORLICYAN;</p><p >X_99:=IF(X_96 AND CONST(CLOSE)<=X_72,X_62,DRAWNULL);</p><p >STICKLINE(X_99,X_60,X_72,0,0),COLORLICYAN;</p><p >X_100:=IF(X_96 AND CONST(CLOSE)<=X_72,ISLASTBAR,DRAWNULL);</p><p >STICKLINE(X_100,X_60,X_72,0,0),COLORLICYAN;</p><p >DRAWLINE(X_99=1,X_60,X_100=1,X_60,0),COLORLICYAN;</p><p >DRAWLINE(X_99=1,X_72,X_100=1,X_72,0),COLORLICYAN;</p><p >X_101:=LLV(LOW,13);</p><p >X_102:=HHV(HIGH,13);</p><p >X_103:=SMA((CLOSE-X_101)/(X_102-X_101)*100,5,1);</p><p >X_104:=SMA((X_102-CLOSE)/(X_102-X_101)*100,5,1);</p><p >X_105:=X_103;</p><p >X_106:=X_104;</p><p >X_107:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;</p><p >X_108:=EMA(X_107,3);</p><p >X_109:=EMA(CLOSE,12)-EMA(CLOSE,26);</p><p >X_110:=EMA(X_109,9);</p><p >X_111:=CROSS(X_109,0) OR CROSS(X_110,0);</p><p class="ztext-empty-paragraph"><br/></p><p >X_112:=CROSS(X_108,X_106) AND X_108>=REF(X_108,1) AND X_106<=REF(X_106,3) AND X_108>=49.5 AND MA(CLOSE,3)>=REF(MA(CLOSE,3),1) AND MA(CLOSE,7)>=REF(MA(CLOSE,7),1) AND MA(CLOSE,60)>REF(MA(CLOSE,60),3) AND X_111;</p><p >STICKLINE(X_112,CLOSE,OPEN,4,0),COLORBLUE;</p><p >STICKLINE(X_112>0,CLOSE,OPEN,3,0),COLORBLUE;</p><p >STICKLINE(X_112>0,CLOSE,OPEN,2.5,0),COLOR730000;</p><p >STICKLINE(X_112>0,CLOSE,OPEN,1.5,0),COLOR870000;</p><p >STICKLINE(X_112>0,CLOSE,OPEN,0.8,0),COLOR9B0000;</p><p >STICKLINE(X_112>0,CLOSE,OPEN,0.1,0),COLORAF0000;</p><p >STICKLINE(X_112>0,CLOSE,OPEN,0.5,0),COLORC30000;</p><p >X_113:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;</p><p >X_114:=100-ABS(X_113);</p><p >X_115:=IF(X_114<90,X_114,100);</p><p >X_116:=(HIGH+LOW+CLOSE)/3;</p><p >X_117:=(X_116-MA(X_116,14))/(0.015*AVEDEV(X_116,14));</p><p >X_118:=(X_116-MA(X_116,70))/(0.015*AVEDEV(X_116,70));</p><p >X_119:=IF(X_117>=150 AND X_117<200 AND X_118>=150 AND X_118<200,10,0);</p><p >X_120:=IF(X_117<=(-150) AND X_117>(-200) AND X_118<=(-150) AND X_118>(-200),(-10),X_119);</p><p >X_121:=IF(X_118>=200 AND X_117>=150,15,IF(X_118<=(-200) AND X_117<=(-150),(-15),X_120))+60;</p><p >X_122:=X_115<100 AND X_121>60;</p><p >X_123:=VOL>SMA(VOL,3,1)*1.5;</p><p >X_124:=X_122 AND X_123;</p><p >DRAWICON(X_124,HIGH*1.03,19);</p><p >X_125:=MA(CLOSE,3);</p><p >X_126:=MA(CLOSE,5);</p><p >X_127:=MA(CLOSE,10);</p><p >X_128:=MA(CLOSE,20);</p><p >X_129:=(X_125+X_126)/2;</p><p >X_130:=IF(CLOSE>=OPEN,CLOSE,OPEN);</p><p >X_131:=(HIGH-X_130)/X_130*100;</p><p >X_132:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;</p><p >X_133:=(REF(HIGH,1)-REF(CLOSE,6))/REF(CLOSE,6)*100;</p><p >X_134:=(HIGH-REF(CLOSE,1))/REF(CLOSE,1)*100;</p><p >X_135:=(LOW-REF(CLOSE,1))/REF(CLOSE,1)*100;</p><p >X_136:=(CLOSE-OPEN)/CLOSE*100;</p><p >X_137:=COUNT(COUNT(X_132>9.9 AND CLOSE=HIGH,1)>=1,30)>0;</p><p >X_138:=COUNT(COUNT(X_132>9.9 AND CLOSE=HIGH,1)>=1,60)>0;</p><p >X_139:=REF(HHV(VOL,10),1);</p><p >X_140:=X_128>REF(X_128,1) AND VOL<X_139 AND X_137 AND X_134>3 AND OPEN<=X_126 AND CLOSE>X_126 AND (COUNT(X_129>REF(X_129,1),3)>=3 OR COUNT(X_126>REF(X_126,1),3)>=3) AND COUNT(X_128>REF(X_128,1),25)>=16;</p><p >X_141:=(CLOSE-OPEN)/OPEN*100;</p><p >X_142:=X_138 AND VOL<1.3*REF(VOL,1) AND COUNT(X_141>0.5,6)>=5 AND COUNT(X_125>X_126,5)>=5 AND COUNT(HIGH>REF(HIGH,1),6)>=5 AND X_134>4.5 AND OPEN<=X_125 AND CLOSE>X_125 AND OPEN>X_126;</p><p >X_143:=X_112;</p><p >X_144:=X_143=1 AND COUNT(X_143,15)=1;</p><p >X_145:=COUNT(X_144,8)=1 AND COUNT(VOL>REF(VOL,1),3)<3 AND COUNT(X_131>4 AND CLOSE<OPEN,1)=0 AND X_136>(-5.2) AND VOL<1.17*REF(VOL,1) AND VOL<X_139 AND (X_126>REF(X_126,1) OR X_125>REF(X_125,1));</p><p >X_146:=X_145;</p><p >X_147:=X_144=0 AND COUNT(X_144,8)>=1 AND (X_146=0 OR COUNT(X_146=1,8)>=8);</p><p >X_148:=X_144=0 AND COUNT(X_144,8)>=1 AND X_146=1;</p><p >X_149:=X_147=1 AND COUNT(X_147,8)=1;</p><p >X_150:=X_148=1 AND COUNT(X_148,8)>=1 AND COUNT(X_147,8)=0;</p><p >MR0:DRAWICON(X_144,(OPEN+CLOSE)/2,23);</p><p >MC0:DRAWICON(X_149,(OPEN+CLOSE)/2,35);</p><p >CG0:DRAWICON(X_150,(OPEN+CLOSE)/2,1);</p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p >{2}</p><p >{涨跌停K线图}</p><p >NEB:=IF(NAMELIKE('S') OR NAMELIKE('*S'),0.05,0.1);{适用ST股}</p><p >涨停B:=C/REF(C,1)-1>=NEB-0.01/REF(C,1) AND C=H AND PERIOD=5;{仅在日线上变色}</p><p >STICKLINE(涨停B,C,O,-1,0),COLORFF00F5;</p><p >跌停B:=REF(C,1)/C-1>=NEB-0.01/REF(C,1) AND L=C AND PERIOD=5;</p><p >STICKLINE(跌停B,C,O,-1,0),COLORBLUE;</p><p class="ztext-empty-paragraph"><br/></p><p >{曾涨跌停K线图}</p><p >曾涨停B:=H/REF(C,1)-1>=NEB-0.01/REF(C,1) AND C<H AND PERIOD=5;</p><p >STICKLINE(曾涨停B,H-(H-MAX(O,C)),H,0,0),COLORFF00B5;</p><p >曾跌停B:=REF(C,1)/L-1>=NEB-0.01/REF(C,1) AND L<C AND PERIOD=5;</p><p >STICKLINE(曾跌停B,L+(MIN(O,C)-L),L,0,0),COLORBLUE;</p><p class="ztext-empty-paragraph"><br/></p><p >{涨跌停开盘K线图}</p><p >涨停开盘B:=O/REF(C,1)-1>=NEB-0.01/REF(C,1) AND O=H AND PERIOD=5;{阴阳线的十分之一变色}</p><p >STICKLINE(涨停开盘B,C+(O-C)*0.9,O,-1,0),COLORFF00F5;</p><p >跌停开盘B:=REF(C,1)/O-1>=NEB-0.01/REF(C,1) AND L=O AND PERIOD=5;</p><p >STICKLINE(跌停开盘B,C-(C-O)*0.9,O,-1,0),COLORBLUE;</p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p >短期均线:SUM(V*C,30)/SUM(V,30),COLORWHITE,POINTDOT;</p><p >长期均线:SUM(V*C,240)/SUM(V,240),COLORWHITE,POINTDOT;</p><p >KMJ1:=C>短期均线;</p><p >KMJ2:=C<短期均线;</p><p >IF(短期均线>长期均线 AND KMJ1,短期均线,DRAWNULL),COLORRED,LINETHICK3;</p><p >IF(短期均线>长期均线 AND KMJ2,短期均线,DRAWNULL),COLORYELLOW,DOTLINE;</p><p >IF(短期均线<长期均线 AND KMJ2,短期均线,DRAWNULL),COLORGREEN,LINETHICK2;</p><p >IF(短期均线<长期均线 AND KMJ1,短期均线,DRAWNULL),COLORGREEN,DOTLINE;</p><p class="ztext-empty-paragraph"><br/></p><p class="ztext-empty-paragraph"><br/></p><p >X_1U:=MAX(MAX(HIGH-LOW,ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));</p><p >X_2U:=(HIGH+LOW)/2+MA(X_1U,2);</p><p >X_3U:=(HIGH+LOW)/2-MA(X_1U,2);</p><p >X_4U:=REF(X_2U,BARSLAST(X_2U<=REF(X_2U,1)));</p><p >X_5U:=LLV(X_2U,2*1.5);</p><p >X_6U:=IF(X_5U!=REF(X_5U,1) AND X_4U<REF(X_4U,1),X_4U,IF(X_4U=X_5U,X_4U,X_5U));</p><p >X_7U:=BARSLAST(CROSS(0.5,X_2U=X_6U))+1;</p><p >X_8U:=CROSS(COUNT(CROSS(CLOSE,X_6U) OR CROSS(CLOSE,REF(X_6U,2)) AND X_2U>X_6U,X_7U),0.5);</p><p >X_9U:=BARSLAST(X_8U);</p><p >X_10U:=BARSLAST(CROSS(HHV(X_3U,X_9U+1),CLOSE));</p><p >X_11U:=MA(CLOSE,18);</p><p >X_12U:=CLOSE>=X_11U*1.004;</p><p >X_13U:=X_11U>=REF(X_11U,1);</p><p >X_14U:=X_12U AND X_13U;</p><p >X_15U:=IF(CLOSE<OPEN,(CLOSE-LOW)/(HIGH-LOW),0);</p><p >今买明卖2019B:CROSS(X_9U,X_10U) AND CLOSE/REF(LLV(LOW,3),1)<1 AND CLOSE<OPEN AND CLOSE!=LOW AND X_14U AND X_15U>0.03 AND X_15U<0.3;</p><p class="ztext-empty-paragraph"><br/></p><p >DRAWICON(今买明卖2019B,LOW*0.99,44);</p><p></p><p></p>

嘟嘟嘟2017 发表于 2023-12-11 19:50:59

感谢!

淘宝卖家柯 发表于 2024-1-15 04:34:23

为你点赞

你不感觉可惜吗 发表于 2024-1-15 17:11:03

找到好贴不容易,我顶你了,谢了

哥特萧邦妒 发表于 2024-1-29 20:08:56

内容真的很不错

青春的小时光春w 发表于 2024-2-22 11:55:04

找到好贴不容易,我顶你了,谢了

惊心幻 发表于 2024-3-24 15:39:09

一切尽在不言中,谢谢!
页: [1]
查看完整版本: 通达信理想金钻云飞小妖主图指标公式源码分享