最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信神奇资金线指标公式

    正文概述    2024-05-04 04:00:55  
    VAR1:=AMOUNT/10000{GPGS};DF:=ema(VAR1,12)-ema(VAR1,26){GPGS};DA:=EMA(DF,9){GPGS};VAR2:2*(DF-DA),linethick0{GPGS};VAR3:=VAR2 REF(VAR2,1)ANDVAR2 0{GPGS};VAR4:=VAR2 =0{GPGS};VAR5:=VAR2 REF(VAR2,1)ANDVAR2 0{GPGS};VAR6:=VAR2 =0{GPGS};STICKLINE(VAR3orVAR4,VAR2,0,8,0),COLOR0055AA{GPGS};STICKLINE(VAR3orVAR4,VAR2,0,5,0),COLOR0077CC{GPGS};STICKLINE(VAR3orVAR4,VAR2,0,3,0),COLOR0099DD{GPGS};STICKLINE(VAR3orVAR4,VAR2,0,1,0),colorwhite{GPGS};STICKLINE(VAR5orVAR6,VAR2,0,8,0),COLOR006600{GPGS};STICKLINE(VAR5orVAR6,VAR2,0,5,0),COLOR009900{GPGS};STICKLINE(VAR5orVAR6,VAR2,0,3,0),COLOR00BB00{GPGS};STICKLINE(VAR5orVAR6,VAR2,0,1,0),colorwhite{GPGS};difF:DF,colorff00ff,layer7{GPGS};DEA:DA,COLORFFFF00{GPGS};AA:=ma(AMOUNT,5)/10000{GPGS};BB:=ma(AMOUNT,10)/10000{GPGS};DRAWTEXTREL(710,40,'今日:'+NUMTOSTRN(VAR1,2)+'万元'),colorff00ff,layer7{GPGS};DRAWTEXTREL(710,160,'五日均量:'+NUMTOSTRN(AA,2)+'万元'),COLORFFFF00{GPGS};DRAWTEXTREL(710,280,'十日均量:'+NUMTOSTRN(BB,2)+'万元'),colorwhite{GPGS};DRAWGBK(C,STRIP(RGB(0,0,50),RGB(0,30,140),0));{!W+W!W_G*P_G=S*C*N*{-} SQX:=(C-MA(CLOSE,13))*100; DIFF:EMA(MA(SQX,7),1),COLORWHITE; DEA:EMA(DIFF,7),COLORYELLOW; MACD:(DIFF-DEA)*2,COLORSTICK; STICKLINE(CROSS(DIFF,DEA)ANDDIFF -0.1,35.5,10.5,2,1),COLORYELLOW,LINETHICK2; 低:IF(CROSS(DIFF,DEA)ANDDIFF -0.1,15,0),COLORYELLOW,LINETHICK0; JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA =0)); STICKLINE(CROSS(DIFF,DEA)ANDDEA 0ANDCOUNT(JCCOUNT=2,21)=1,55.5,35.5,2,1),COLORFF00FF,LINETHICK2; 二金叉:IF(CROSS(DIFF,DEA)ANDDEA 0ANDCOUNT(JCCOUNT=2,21)=1,28,0),COLORFF00FF,LINETHICK0; A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); STICKLINE(REF(CLOSE,A1+1) CLOSEANDDIFF REF(DIFF,A1+1)ANDCROSS(DIFF,DEA),55.5,70.5,2,1),COLORRED,LINETHICK2; 底离:IF(REF(CLOSE,A1+1) CLOSEANDDIFF REF(DIFF,A1+1)ANDCROSS(DIFF,DEA),40,0),COLORRED,LINETHICK0; DRAWLINE(A1=0,DEA,底离,DEA,0),COLOR33FF33,LINETHICK2; A2:=BARSLAST(REF(CROSS(DEA,DIFF),1)); 顶离:=REF(CLOSE,A2+1) CLOSEANDREF(DIFF,A2+1) DIFFANDCROSS(DEA,DIFF); STICKLINE(REF(CLOSE,A2+1) CLOSEANDREF(DIFF,A2+1) DIFFANDCROSS(DEA,DIFF),70,85.5,2,1),COLORF08000,LINETHICK2; {顶离_:IF(REF(CLOSE,A2+1) CLOSEANDREF(DIFF,A2+1) DIFFANDCROSS(DEA,DIFF),66,0),COLORF08000,LINETHICK0;} 压:DRAWLINE(A2=0,DEA,顶离,DEA,0),COLORFFBB99,LINETHICK2; A3:=CROSS(DIFF,DEA)ANDDEA STICKLINE(FILTER(COUNT(A3,21)=2,10),53,68,2,1),COLORWHITE,LINETHICK2; 负二金叉_:IF(FILTER(COUNT(A3,21)=2,10),53,0),COLORWHITE,LINETHICK0; {DRAWICON(CROSS(DIFF,DEA),DIFF,1); DRAWICON(CROSS(DEA,DIFF),DEA,2);} 金叉:if(CROSS(DIFF,DEA),diff,0),color00ff00,stick,linethick2; 死叉:if(CROSS(DEA,DIFF),diff,0),colorff0099,stick,linethick2; N:=5;VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:=IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK2;主动卖盘:=IF(CLOSE OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),LINETHICK2,COLORGREEN;资金异动:=VOL/MA(VOL,55)*100,COLORYELLOW;SQX:=(C-MA(CLOSE,7))*100;DIFF:=EMA(MA(SQX,3),1)*1000,COLOR00FFFF;DEA:=EMA(DIFF,3)*1,COLOR00FF00;LONGCROSS(DIFF,DEA,N);





    通达信神奇资金线指标公式源码解读


    VAR1赋值:成交额(元)/10000 DF赋值:VAR1的12日指数移动平均-VAR1的26日指数移动平均 DA赋值:DF的9日指数移动平均 输出VAR2:2*(DF-DA),线宽为0 VAR3赋值:VAR2 1日前的VAR2ANDVAR2 VAR4赋值:VAR2 VAR5赋值:VAR2 1日前的VAR2ANDVAR2 VAR6赋值:VAR2 当满足条件VAR3ORVAR4时,在VAR2和0位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR0055AA 当满足条件VAR3ORVAR4时,在VAR2和0位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR0077CC 当满足条件VAR3ORVAR4时,在VAR2和0位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR0099DD 当满足条件VAR3ORVAR4时,在VAR2和0位置之间画柱状线,宽度为1,0不为0则画空心柱.,画白色 当满足条件VAR5ORVAR6时,在VAR2和0位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR006600 当满足条件VAR5ORVAR6时,在VAR2和0位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR009900 当满足条件VAR5ORVAR6时,在VAR2和0位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR00BB00 当满足条件VAR5ORVAR6时,在VAR2和0位置之间画柱状线,宽度为1,0不为0则画空心柱.,画白色 输出DIFF:DF,COLORFF00FF,LAYER7 输出DEA:DA,COLORFFFF00 AA赋值:成交额(元)的5日简单移动平均/10000 BB赋值:成交额(元)的10日简单移动平均/10000 DRAWTEXTREL(710,40,' 今日:' +NUMTOSTRN(VAR1,2)+' ),COLORFF00FF,LAYER7 DRAWTEXTREL(710,160,' 五日均量:' +NUMTOSTRN(AA,2)+' ),COLORFFFF00 DRAWTEXTREL(710,280,' 十日均量:' +NUMTOSTRN(BB,2)+' ),画白色 填充背景 SQX赋值:(收盘价-收盘价的13日简单移动平均)*100 输出DIFF:SQX的7日简单移动平均的1日指数移动平均,画白色 输出DEA:DIFF的7日指数移动平均,画黄色 输出平滑异同平:(DIFF-DEA)*2,COLORSTICK 当满足条件DIFF上穿DEAANDDIFF 时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱. -0.1,35.5,10.5,2,1),画黄色,线宽为2 输出低金叉:如果DIFF上穿DEAANDDIFF ,返回?,否则返回? -0.1,15,0),画黄色,线宽为0 JCCOUNT赋值:统计上次DEA 距今天数日中满足DIFF上穿DEA的天数 =0)) 当满足条件DIFF上穿DEAANDDEA 时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱. 0ANDCOUNT(JCCOUNT=2,21)=1,55.5,35.5,2,1),COLORFF00FF,线宽为2 输出二金叉:如果DIFF上穿DEAANDDEA ,返回?,否则返回? 0ANDCOUNT(JCCOUNT=2,21)=1,28,0),COLORFF00FF,线宽为0 A1赋值:上次1日前的DIFF上穿DEA距今天数 当满足条件A1+1日前的收盘价 时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱. CLOSEANDDIFF A1+1日前的DIFFANDCROSS(DIFF,DEA),55.5,70.5,2,1),画红色,线宽为2 输出底离:如果A1+1日前的收盘价 ,返回?,否则返回? CLOSEANDDIFF A1+1日前的DIFFANDCROSS(DIFF,DEA),40,0),画红色,线宽为0 当满足条件A1=0时,在DEA位置画直线起点,当满足条件底离时,在DEA位置画直线终点,0表示是否延长.,COLOR33FF33,线宽为2 A2赋值:上次1日前的DEA上穿DIFF距今天数 顶离赋值:A2+1日前的收盘价 CLOSEANDREF(DIFF,A2+1) DIFFANDCROSS(DEA,DIFF) 当满足条件A2+1日前的收盘价 时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱. CLOSEANDREF(DIFF,A2+1) DIFFANDCROSS(DEA,DIFF),70,85.5,2,1),COLORF08000,线宽为2 输出压:当满足条件A2=0时,在DEA位置画直线起点,当满足条件顶离时,在DEA位置画直线终点,0表示是否延长.,COLORFFBB99,线宽为2 A3赋值:DIFF上穿DEAANDDEA 当满足条件统计21日中满足A3的天数=2的10日过滤时,在53和68位置之间画柱状线,宽度为2,1不为0则画空心柱.,画白色,线宽为2 输出负二金叉_:如果统计21日中满足A3的天数=2的10日过滤,返回53,否则返回0,画白色,线宽为0 输出金叉:如果DIFF上穿DEA,返回DIFF,否则返回0,COLOR00FF00,STICK,线宽为2 输出死叉:如果DEA上穿DIFF,返回DIFF,否则返回0,COLORFF0099,STICK,线宽为2 N赋值:5 VAR1赋值:(手)/((最高价-最低价)*2-收盘价-开盘价的绝对值) 主动买盘赋值:如果收盘价 ,返回?,否则返回? 开盘价,VAR1*(最高价-最低价),如果收盘价 ,返回?,否则返回? 开盘价,VAR1*((最高价-开盘价)+(收盘价-最低价)),成交量(手)/2)),线宽为2 主动卖盘赋值:如果收盘价 ,返回?,否则返回? 开盘价,0-VAR1*((最高价-收盘价)+(开盘价-最低价)),如果收盘价 ,返回?,否则返回? 开盘价,0-VAR1*(最高价-最低价),0-成交量(手)/2)),线宽为2,画绿色 资金异动赋值:成交量(手)/成交量(手)的55日简单移动平均*100,画黄色 SQX赋值:(收盘价-收盘价的7日简单移动平均)*100 DIFF赋值:SQX的3日简单移动平均的1日指数移动平均*1000,COLOR00FFFF DEA赋值:DIFF的3日指数移动平均*1,COLOR00FF00 DIFF小于DEA保持N个交易日后交叉上穿




    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信神奇资金线指标公式 加入收藏