最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信济安线选股绝密战法指标公式源码分享

    正文概述    2024-05-04 04:28:29  
    AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30); 济安线:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORMAGENTA; CC:=(CLOSE/济安线); MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3); MAAA:=((MA1-济安线)/济安线)/3; TMP:=MA1-MAAA*MA1; J:IF(TMP =济安线,济安线,DRAWNULL),LINETHICK3,COLORCYAN; A:TMP,LINETHICK2,COLORYELLOW; X:IF(TMP =济安线,TMP,DRAWNULL),LINETHICK2,COLORGREEN; N:=9; M1:=3; M2:=3; 去除ST股:=IF(NAMELIKE('S'),0,1); 去除星股:=IF(NAMELIKE('*'),0,1); 去除停牌:=DYNAINFO(4) DIF:=Ema(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); :=(DIF-DEA)*2; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,M1,1); D:=SMA(K,M2,1); A1:=crOSS("MacD.DIF","MACD.DEA"); A2:=CROSS(".K","kdJ.D")AND"KDJ.K" A3:=".CCI" -90AND"CCI.CCI" -100; A4:=CROSS(".RSI1","RSI.RSI2")AND"RSI.RSI1" A5:=REF("wr.WR1",1) 90AND"WR.WR1" A6:=CROSS("bias.BIAS1",-5); A7:=REF(".pdi",1) REF("DMI.mdi",1)ANDREF("DMI.PDI",1) REF("DMI.ADX",1)ANDREF("DMI.PDI",1) REF("DMI.ADXR",1)AND"DMI.PDI" "DMI.MDI"AND"DMI.PDI" "DMI.ADX"AND"DMI.PDI" "DMI.ADXR"; A8:=CROSS("mfi.MFI",20)ANDREF("MFI.MFI",1) mtm:=CLOSE-REF(CLOSE,20); MAMTM:=MA(MTM,60); A9:=CROSS(MTM,MAMTM); OSC:=100*(CLOSE-MA(CLOSE,20)); MaoSC:=EXPMEMA(OSC,6); MID:=(3*CLOSE+LOW+OPEN+HIGH)/6; dkx:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+ 16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+ 13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+ 10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+ 7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+ 4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210; MADKX:=MA(DKX,20); A10:="ADTM.ADTM" -0.8; AA1:=A1ANDA2ANDA3; AA2:=A1ANDA2ANDA4; AA3:=A1ANDA2ANDA5; AA4:=A1ANDA2ANDA6; AA5:=A1ANDA2ANDA7; AA6:=A1ANDA2ANDA8; AA7:=A1ANDA2ANDA9; AA8:=A1ANDA2ANDA10; AA9:=A1ANDA3ANDA4; AA10:=A1ANDA3ANDA5; AA11:=A1ANDA3ANDA6; AA12:=A1ANDA3ANDA7; AA13:=A1ANDA3ANDA8; AA14:=A1ANDA3ANDA9; AA15:=A1ANDA3ANDA10; AA16:=A1ANDA4ANDA5; AA17:=A1ANDA4ANDA6; AA18:=A1ANDA4ANDA7; AA19:=A1ANDA4ANDA8; AA20:=A1ANDA4ANDA9; AA21:=A1ANDA4ANDA10; AA22:=A1ANDA5ANDA6; AA23:=A1ANDA5ANDA7; AA24:=A1ANDA5ANDA8; AA25:=A1ANDA5ANDA9; AA26:=A1ANDA5ANDA10; AA27:=A1ANDA6ANDA7; AA28:=A1ANDA6ANDA8; AA29:=A1ANDA6ANDA9; AA30:=A1ANDA6ANDA10; AA31:=A1ANDA7ANDA8; AA32:=A1ANDA7ANDA9; AA33:=A1ANDA7ANDA10; AA34:=A1ANDA8ANDA9; AA35:=A1ANDA8ANDA10; AA36:=A1ANDA9ANDA10; AA37:=A2ANDA3ANDA4; AA38:=A2ANDA3ANDA5; AA39:=A2ANDA3ANDA6; AA40:=A2ANDA3ANDA7; AA41:=A2ANDA3ANDA8; AA42:=A2ANDA3ANDA9; AA43:=A2ANDA3ANDA10; AA44:=A2ANDA4ANDA5; AA45:=A2ANDA4ANDA6; AA46:=A2ANDA4ANDA7; AA47:=A2ANDA4ANDA8; AA48:=A2ANDA4ANDA9; AA49:=A2ANDA4ANDA10; AA50:=A2ANDA5ANDA6; AA51:=A2ANDA5ANDA7; AA52:=A2ANDA5ANDA8; AA53:=A2ANDA5ANDA9; AA54:=A2ANDA5ANDA10; AA55:=A2ANDA6ANDA7; AA56:=A2ANDA6ANDA8; AA57:=A2ANDA6ANDA9; AA58:=A2ANDA6ANDA10; AA59:=A2ANDA7ANDA8; AA60:=A2ANDA7ANDA9; AA61:=A2ANDA7ANDA10; AA62:=A2ANDA8ANDA9; AA63:=A2ANDA8ANDA10; AA64:=A2ANDA9ANDA10; AA65:=A3ANDA4ANDA5; AA66:=A3ANDA4ANDA6; AA67:=A3ANDA4ANDA7; AA68:=A3ANDA4ANDA8; AA69:=A3ANDA4ANDA9; AA70:=A3ANDA4ANDA10; AA71:=A3ANDA5ANDA6; AA72:=A3ANDA5ANDA7; AA73:=A3ANDA5ANDA8; AA74:=A3ANDA5ANDA9; AA75:=A3ANDA5ANDA10; AA76:=A3ANDA6ANDA7; AA77:=A3ANDA6ANDA8; AA78:=A3ANDA6ANDA9; AA79:=A3ANDA6ANDA10; AA80:=A3ANDA7ANDA8; AA81:=A3ANDA7ANDA9; AA82:=A3ANDA7ANDA10; AA83:=A3ANDA8ANDA9; AA84:=A3ANDA8ANDA10; AA85:=A3ANDA9ANDA10; AA86:=A4ANDA5ANDA6; AA87:=A4ANDA5ANDA7; AA88:=A4ANDA5ANDA8; AA89:=A4ANDA5ANDA9; AA90:=A4ANDA5ANDA10; AA91:=A4ANDA6ANDA7; AA92:=A4ANDA6ANDA8; AA93:=A4ANDA6ANDA9; AA94:=A4ANDA6ANDA10; AA95:=A4ANDA7ANDA8; AA96:=A4ANDA7ANDA9; AA97:=A4ANDA7ANDA10; AA98:=A4ANDA8ANDA9; AA99:=A4ANDA8ANDA10; AA100:=A4ANDA9ANDA10; AA101:=A5ANDA6ANDA7; AA102:=A5ANDA6ANDA8; AA103:=A5ANDA6ANDA9; AA104:=A5ANDA6ANDA10; AA105:=A5ANDA7ANDA8; AA106:=A5ANDA7ANDA9; AA107:=A5ANDA7ANDA10; AA108:=A5ANDA8ANDA9; AA109:=A5ANDA8ANDA10; AA110:=A5ANDA9ANDA10; AA111:=A6ANDA7ANDA8; AA112:=A6ANDA7ANDA9; AA113:=A6ANDA7ANDA10; AA114:=A6ANDA8ANDA9; AA115:=A6ANDA8ANDA10; AA116:=A6ANDA9ANDA10; AA117:=A7ANDA8ANDA9; AA118:=A7ANDA8ANDA10; AA119:=A7ANDA9ANDA10; AA120:=A8ANDA9ANDA10; XG:=AA1ORAA2ORAA3ORAA4ORAA5ORAA6ORAA7ORAA8ORAA9ORAA10ORAA11ORAA12ORAA13ORAA14OR AA15ORAA16ORAA17ORAA18ORAA19ORAA20ORAA21ORAA22ORAA23ORAA24ORAA25ORAA26ORAA27OR AA28ORAA29ORAA30ORAA31ORAA32ORAA33ORAA34ORAA35ORAA36ORAA37ORAA38ORAA39ORAA40OR AA41ORAA42ORAA43ORAA44ORAA45ORAA46ORAA47ORAA48ORAA49ORAA50ORAA51ORAA52ORAA53OR AA54ORAA55ORAA56ORAA57ORAA58ORAA59ORAA60ORAA61ORAA62ORAA63ORAA64ORAA65ORAA66OR AA67ORAA68ORAA69ORAA70ORAA71ORAA72ORAA73ORAA74ORAA75ORAA76ORAA77ORAA78ORAA79OR AA80ORAA81ORAA82ORAA83ORAA84ORAA85ORAA86ORAA87ORAA88ORAA89ORAA90ORAA91ORAA92OR AA93ORAA94ORAA95ORAA96ORAA97ORAA98ORAA99ORAA100ORAA102ORAA103ORAA104ORAA105OR AA106ORAA107ORAA108ORAA109ORAA110ORAA112ORAA113ORAA114ORAA115ORAA116ORAA117OR AA118ORAA119ORAA120; 选股:IF(XG,1,0)AND去除st股AND去除星股AND去除停牌ANDCROSS(DIF,DEA)ANDCROSS(K,D);

    公式解读:

    [源码注释]通达信公式动态公式解读



       AA赋值:(2*收盘价+最高价+最低价)/4-收盘价的30日简单移动平均的绝对值/收盘价的30日简单移动平均

       输出济安线:以AA为权重(2*收盘价+最低价+最高价)/4的动态移动平均,线宽为3,画洋红色

       CC赋值:(收盘价/济安线)

       MA1赋值:CC*(2*收盘价+最高价+最低价)/4的3日简单移动平均

       MAAA赋值:((MA1-济安线)/济安线)/3

       TMP赋值:MA1-MAAA*MA1

       输出J:如果TMP ,返回?,否则返回?

       =济安线,济安线,无效数),线宽为3,画青色

       输出A:TMP,线宽为2,画黄色

       输出X:如果TMP ,返回?,否则返回?

       =济安线,TMP,无效数),线宽为2,画绿色

       N赋值:9

       M1赋值:3

       M2赋值:3

       去除ST股赋值:如果模糊匹配品种名称,返回0,否则返回1

       去除星股赋值:如果模糊匹配品种名称,返回0,否则返回1

       去除停牌赋值:开盘价 0

       DIF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均

       DEA赋值:DIF的9日指数移动平均

       MACD赋值:(DIF-DEA)*2

       RSV赋值:(收盘价-N日内最低价的最低值)/(N日内最高价的最高值-N日内最低价的最低值)*100

       K赋值:RSV的M1日[1日权重]移动平均

       D赋值:K的M2日[1日权重]移动平均

       A1赋值:"MACD.DIF"上穿"MACD.DEA"

       A2赋值:"KDJ的K"上穿"KDJ的D"AND"KDJ的K" -20

       A3赋值:"CCI的CCI" -90AND"CCI的CCI" -100

       A4赋值:"RSI的RSI1"上穿"RSI的RSI2"AND"RSI的RSI1" 50

       A5赋值:1日前的"WR的WR1" 90AND"WR的WR1" 70

       A6赋值:"乖离率的BIAS1"上穿-5

       A7赋值:1日前的"DMI的PDI" 1日前的"DMI的MDI"ANDREF("DMI的PDI",1) 1日前的"DMI的ADX"ANDREF("DMI的PDI",1) 1日前的"DMI的ADXR"AND"DMI的PDI" "DMI的MDI"AND"DMI的PDI" "DMI的ADX"AND"DMI的PDI" "DMI的ADXR"

       A8赋值:"流量指标的MFI"上穿20ANDREF("资金流量指标的MFI",1) 20

       MTM赋值:收盘价-20日前的收盘价

       MAMTM赋值:MTM的60日简单移动平均

       A9赋值:MTM上穿MAMTM

       OSC赋值:100*(收盘价-收盘价的20日简单移动平均)

       MAOSC赋值:OSC的6日指数平滑移动平均

       MID赋值:(3*收盘价+最低价+开盘价+最高价)/6

       DKX赋值:(20*MID+19*1日前的MID+18*2日前的MID+17*3日前的MID+16*4日前的MID+15*5日前的MID+14*6日前的MID+13*7日前的MID+12*8日前的MID+11*9日前的MID+10*10日前的MID+9*11日前的MID+8*12日前的MID+7*13日前的MID+6*14日前的MID+5*15日前的MID+4*16日前的MID+3*17日前的MID+2*18日前的MID+20日前的MID)/210

       MADKX赋值:DKX的20日简单移动平均

       A10赋值:"动态气指标的ADTM" -0.8

       AA1赋值:A1ANDA2ANDA3

       AA2赋值:A1ANDA2ANDA4

       AA3赋值:A1ANDA2ANDA5

       AA4赋值:A1ANDA2ANDA6

       AA5赋值:A1ANDA2ANDA7

       AA6赋值:A1ANDA2ANDA8

       AA7赋值:A1ANDA2ANDA9

       AA8赋值:A1ANDA2ANDA10

       AA9赋值:A1ANDA3ANDA4

       AA10赋值:A1ANDA3ANDA5

       AA11赋值:A1ANDA3ANDA6

       AA12赋值:A1ANDA3ANDA7

       AA13赋值:A1ANDA3ANDA8

       AA14赋值:A1ANDA3ANDA9

       AA15赋值:A1ANDA3ANDA10

       AA16赋值:A1ANDA4ANDA5

       AA17赋值:A1ANDA4ANDA6

       AA18赋值:A1ANDA4ANDA7

       AA19赋值:A1ANDA4ANDA8

       AA20赋值:A1ANDA4ANDA9

       AA21赋值:A1ANDA4ANDA10

       AA22赋值:A1ANDA5ANDA6

       AA23赋值:A1ANDA5ANDA7

       AA24赋值:A1ANDA5ANDA8

       AA25赋值:A1ANDA5ANDA9

       AA26赋值:A1ANDA5ANDA10

       AA27赋值:A1ANDA6ANDA7

       AA28赋值:A1ANDA6ANDA8

       AA29赋值:A1ANDA6ANDA9

       AA30赋值:A1ANDA6ANDA10

       AA31赋值:A1ANDA7ANDA8

       AA32赋值:A1ANDA7ANDA9

       AA33赋值:A1ANDA7ANDA10

       AA34赋值:A1ANDA8ANDA9

       AA35赋值:A1ANDA8ANDA10

       AA36赋值:A1ANDA9ANDA10

       AA37赋值:A2ANDA3ANDA4

       AA38赋值:A2ANDA3ANDA5

       AA39赋值:A2ANDA3ANDA6

       AA40赋值:A2ANDA3ANDA7

       AA41赋值:A2ANDA3ANDA8

       AA42赋值:A2ANDA3ANDA9

       AA43赋值:A2ANDA3ANDA10

       AA44赋值:A2ANDA4ANDA5

       AA45赋值:A2ANDA4ANDA6

       AA46赋值:A2ANDA4ANDA7

       AA47赋值:A2ANDA4ANDA8

       AA48赋值:A2ANDA4ANDA9

       AA49赋值:A2ANDA4ANDA10

       AA50赋值:A2ANDA5ANDA6

       AA51赋值:A2ANDA5ANDA7

       AA52赋值:A2ANDA5ANDA8

       AA53赋值:A2ANDA5ANDA9

       AA54赋值:A2ANDA5ANDA10

       AA55赋值:A2ANDA6ANDA7

       AA56赋值:A2ANDA6ANDA8

       AA57赋值:A2ANDA6ANDA9

       AA58赋值:A2ANDA6ANDA10

       AA59赋值:A2ANDA7ANDA8

       AA60赋值:A2ANDA7ANDA9

       AA61赋值:A2ANDA7ANDA10

       AA62赋值:A2ANDA8ANDA9

       AA63赋值:A2ANDA8ANDA10

       AA64赋值:A2ANDA9ANDA10

       AA65赋值:A3ANDA4ANDA5

       AA66赋值:A3ANDA4ANDA6

       AA67赋值:A3ANDA4ANDA7

       AA68赋值:A3ANDA4ANDA8

       AA69赋值:A3ANDA4ANDA9

       AA70赋值:A3ANDA4ANDA10

       AA71赋值:A3ANDA5ANDA6

       AA72赋值:A3ANDA5ANDA7

       AA73赋值:A3ANDA5ANDA8

       AA74赋值:A3ANDA5ANDA9

       AA75赋值:A3ANDA5ANDA10

       AA76赋值:A3ANDA6ANDA7

       AA77赋值:A3ANDA6ANDA8

       AA78赋值:A3ANDA6ANDA9

       AA79赋值:A3ANDA6ANDA10

       AA80赋值:A3ANDA7ANDA8

       AA81赋值:A3ANDA7ANDA9

       AA82赋值:A3ANDA7ANDA10

       AA83赋值:A3ANDA8ANDA9

       AA84赋值:A3ANDA8ANDA10

       AA85赋值:A3ANDA9ANDA10

       AA86赋值:A4ANDA5ANDA6

       AA87赋值:A4ANDA5ANDA7

       AA88赋值:A4ANDA5ANDA8

       AA89赋值:A4ANDA5ANDA9

       AA90赋值:A4ANDA5ANDA10

       AA91赋值:A4ANDA6ANDA7

       AA92赋值:A4ANDA6ANDA8

       AA93赋值:A4ANDA6ANDA9

       AA94赋值:A4ANDA6ANDA10

       AA95赋值:A4ANDA7ANDA8

       AA96赋值:A4ANDA7ANDA9

       AA97赋值:A4ANDA7ANDA10

       AA98赋值:A4ANDA8ANDA9

       AA99赋值:A4ANDA8ANDA10

       AA100赋值:A4ANDA9ANDA10

       AA101赋值:A5ANDA6ANDA7

       AA102赋值:A5ANDA6ANDA8

       AA103赋值:A5ANDA6ANDA9

       AA104赋值:A5ANDA6ANDA10

       AA105赋值:A5ANDA7ANDA8

       AA106赋值:A5ANDA7ANDA9

       AA107赋值:A5ANDA7ANDA10

       AA108赋值:A5ANDA8ANDA9

       AA109赋值:A5ANDA8ANDA10

       AA110赋值:A5ANDA9ANDA10

       AA111赋值:A6ANDA7ANDA8

       AA112赋值:A6ANDA7ANDA9

       AA113赋值:A6ANDA7ANDA10

       AA114赋值:A6ANDA8ANDA9

       AA115赋值:A6ANDA8ANDA10

       AA116赋值:A6ANDA9ANDA10

       AA117赋值:A7ANDA8ANDA9

       AA118赋值:A7ANDA8ANDA10

       AA119赋值:A7ANDA9ANDA10

       AA120赋值:A8ANDA9ANDA10

       XG赋值:AA1ORAA2ORAA3ORAA4ORAA5ORAA6ORAA7ORAA8ORAA9ORAA10ORAA11ORAA12ORAA13ORAA14ORAA15ORAA16ORAA17ORAA18ORAA19ORAA20ORAA21ORAA22ORAA23ORAA24ORAA25ORAA26ORAA27ORAA28ORAA29ORAA30ORAA31ORAA32ORAA33ORAA34ORAA35ORAA36ORAA37ORAA38ORAA39ORAA40ORAA41ORAA42ORAA43ORAA44ORAA45ORAA46ORAA47ORAA48ORAA49ORAA50ORAA51ORAA52ORAA53ORAA54ORAA55ORAA56ORAA57ORAA58ORAA59ORAA60ORAA61ORAA62ORAA63ORAA64ORAA65ORAA66ORAA67ORAA68ORAA69ORAA70ORAA71ORAA72ORAA73ORAA74ORAA75ORAA76ORAA77ORAA78ORAA79ORAA80ORAA81ORAA82ORAA83ORAA84ORAA85ORAA86ORAA87ORAA88ORAA89ORAA90ORAA91ORAA92ORAA93ORAA94ORAA95ORAA96ORAA97ORAA98ORAA99ORAA100ORAA102ORAA103ORAA104ORAA105ORAA106ORAA107ORAA108ORAA109ORAA110ORAA112ORAA113ORAA114ORAA115ORAA116ORAA117ORAA118ORAA119ORAA120

       输出选股:如果XG,返回1,否则返回0AND去除ST股AND去除星股AND去除停牌ANDCROSS(DIF,DEA)ANDCROSS(K,D)

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信济安线选股绝密战法指标公式源码分享 加入收藏