通达信指标公式源码 主力能量潮

合集下载

通达信指标公式源码 主力进出副图指标

通达信指标公式源码 主力进出副图指标

{主力进出N:1,100,8;M:1,100,13;P:1,100,60;S:1,100,3}V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;主力开始出: IF(V4<=0,V4,0),COLOR00FF00,LINETHICK2;主力开始进: IF(V4>=0,V4,0),COLORFF00FF,LINETHICK2;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大资金进场: IF(VB>=0,VB,0),COLORRED,LINETHICK2;大资金撤走: IF(VB<=0,VB,0),COLORBLUE,LINETHICK2;说明:当主力开始进大于0时,即紫线开始出现时,可以跟进,当主力大于100时,可以开始减仓,当主力开始出大于0时,即绿线出现时,坚决离场。

通达信经典划线指标(压力支撑);明天HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY: =0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF, POINTDOT;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW ,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55B B,LINETHICK2;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENT A,POINTDOT,;DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,PO INTDOT;通达信趋势WW1:=FILTER(OPEN<REF(LOW,1) AND CLOSE>OPEN AND VOL>REF(VOL,1),13);LC:=REF(CLOSE,1);JH:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;SZ:=FILTER(CROSS(JH,35),13);SX:=FILTER(CROSS(JH,30),7);SQ:=FILTER(CROSS(71,JH)<0,74);SD:=FILTER(CROSS(80,JH)<0,74);AA:=IF(CAPITAL<1,SZ,SX);BB:=IF(CAPITAL<1,SQ,SD);W10:=BARSLAST(AA);W11:=BARSLAST(BB);W12:=IF(W10>0 AND W10<W11,W10,0);W13:=IF(W11>0 AND W11<W10,W11,0);{VERTLINE(AA),LINEDOT,COLOR0000FF;VERTLINE(BB),LINEDOT,COLOR00FB00;}STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,1),COLORRED;STICKLINE(CLOSE>REF(CLOSE,1),CLOSE,OPEN,3,1),COLORRED;STICKLINE(CLOSE<REF(CLOSE,1),HIGH,LOW,0,1),COLORGREEN;STICKLINE(CLOSE<REF(CLOSE,1),CLOSE,OPEN,3,1),COLORGREEN;STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,1),COLORFFFFFF;STICKLINE(CLOSE=REF(CLOSE,1),CLOSE,OPEN,3,1),COLORBBBBBB;STICKLINE(WW1,HIGH,LOW,0,0),COLOR00CCFF;{黄}STICKLINE(WW1,CLOSE,OPEN,3,0),COLOR00CCFF;STICKLINE(AA,HIGH,LOW,0,0),COLOR9900FF;{粉}STICKLINE(AA,CLOSE,OPEN,3,0),COLORFF99FF;{红柱牛股.粉柱买入.黄柱洗盘.绿柱卖出}{解盘}AAA:=CONST(HHV(H,90));A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10)))+ IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T2:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T3:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 > V2)) AND (DSLX < DSLX1)),1,0));T4:=CONST(IF(C<200 AND ((CROSS(AVX,1) AND (V1 <= V2)) AND (DSLX < DSLX1)),1,0));T5:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T6:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T7:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T8:=CONST(IF(C<200 AND ((CROSS(1,AVX) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0)); T9:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T10:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T11:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T12:=CONST(IF(C<200 AND ((((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T13:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX >= DSLX1)),1,0));T14:=CONST(IF( C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX >= DSLX1)),1,0));T15:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)) AND (DSLX < DSLX1)),1,0));T16:=CONST(IF(C<200 AND ((((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)) AND (DSLX < DSLX1)),1,0));T17:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T18:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 >= V2)),1,0));T19:=CONST(IF(C>200 AND (CROSS(AVX,1) AND (V1 < V2)),1,0));T20:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 >= V2)),1,0));T21:=CONST(IF(C>200 AND (CROSS(1,AVX) AND (V1 < V2)),1,0));T22:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 >= V2)),1,0)); T23:=CONST(IF(C>200 AND (((AVX >= 1) AND (REF(AVX,1) > 0)) AND (V1 < V2)),1,0)); T24:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 >= V2)),1,0)); T25:=CONST(IF(C>200 AND (((AVX < 1) AND (REF(AVX,1) < 0)) AND (V1 < V2)),1,0)); DRAWTEXT(T1=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右'),COLORFF00FF ;DRAWTEXT(T2=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'走势趋强,还显不足,短线进场,仓位在1/2左右'),COLORFF00FF ;DRAWTEXT(T3=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右'),COLORFF00FF ;DRAWTEXT(T4=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右'),COLORFF00FF ; DRAWTEXT(T5=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望'),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=60,AAA*0.98,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓'),COLORFF00FF ; DRAWTEXT(T7=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望'),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=60,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。

通达信指标公式源码 看大量DDX 追觅超级主力行踪

通达信指标公式源码 看大量DDX 追觅超级主力行踪
大量动向:MA((JGV+DHV),5),COLORYELLOW;
{DRAWBAND(D,RGB(200,200,0),0,RGB(0,100,200));}
超级大量:JGV,COLOR0000FF,NODRAW;
机构大量:DHV,COLORMAGENTA,NODRAW;
大量博弈:(JGV+DHV),COLORWHITE,NODRAW;
STICKLINE(机构大量<0,0,机构大量,2,0),COLORCYAN;
STICKLINE(超级大量>0,0,超级大量,2,0),COLORRED;
STICKLINE(超级大量<0,超级大单量和大单量编制大量ddx可与大单ddx比美还可以寻觅超超级主力行踪
指标用超级大单量和大单量编制大量DDX,可与大单DDX比美,还可以寻觅超超级主力行踪。
注:红绿柱代表超级大量,紫青柱代表机构大量。
JGV:=(L2_VOL(0,0) - L2_VOL(0,1))*VOL/10000000000,COLORRED;
轴线:0,POINTDOT,COLORYELLOW;
STICKLINE(大量博弈>0,0,大量博弈,3,-1),COLORYELLOW;
STICKLINE(大量博弈<0,0,大量博弈,3,-1),COLORFF8800;
STICKLINE(机构大量>0,0,机构大量,2,0),COLORMAGENTA;
DHV:=(L2_VOL(1,0) - L2_VOL(1,1))*VOL/10000000000,COLORFF00FF;
ZHV:=(L2_VOL(2,0) - L2_VOL(2,1))*VOL/10000000000,COLOR00FFFF;

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标

通达信指标公式源码主力资金副图指标通达信是一款常用的股票分析软件,其指标公式源码被广大投资者广泛使用。

主力资金副图指标是一种衡量市场主力资金流向的指标,通过计算买方力量与卖方力量之间的差异,从而判断市场的主力资金流入或流出情况。

以下是通达信主力资金副图指标的公式源码:```//主力资金指标公式AA:=C>REF(C,1)?(V-C):C<REF(C,1)?(V+C):V;//AA表示根据成交量和价格计算得到的主力资金V1:=SUM(V,5);//V1表示5日内的成交量合计V2:=SUM(V,10);//V2表示10日内的成交量合计AA1:=SUM(AA,5);//AA1表示5日内的主力资金合计AA2:=SUM(AA,10);//AA2表示10日内的主力资金合计MAV1:=MA(V,5);//MAV1表示成交量5日均线MAV2:=MA(V,10);//MAV2表示成交量10日均线MAAA1:=MA(AA,5);//MAAA1表示主力资金5日均线MAAA2:=MA(AA,10);//MAAA2表示主力资金10日均线COLORAA:IF(AA>0,4,7);//若主力资金大于0,则显示为绿色,否则显示为灰色COLORAA1:IF(AA1>0,4,7);COLORAA2:IF(AA2>0,4,7);//绘制主力资金副图Plot(AA,"AA",COLORAA,64);Plot(AA1,"AA1",COLORAA1,64);Plot(AA2,"AA2",COLORAA2,64);MAV1,MAV2,BARS,V1,V2,AA,AA1,AA2均为通达信中的基本指标函数,用来计算不同时间段内的成交量、主力资金、均线等数据。

以上的源码描述了主力资金指标的计算过程,包括根据成交量和价格计算得到主力资金、计算不同时间段内的主力资金合计、计算成交量和主力资金的均线等操作。

通达信精品指标源码3{主力流入流出公式}

通达信精品指标源码3{主力流入流出公式}

通达信精品指标源码3{主力流入流出公式}{主力流入流出公式}CN1:=HHV(V,5);{5日最高量}CN2:=O>C;CN02:=C>O;CN03:=C=O;CN04:=((SUM(V,5)/CN1));CN05:=IF(CN04>0.3,1,0);{大资金}CN06:=IF(CN2 AND CN05,V,0);{大资金流出}CN07:=IF(CN02 AND CN05,V,0);{大资金流入}CN08:=IF(CN03 AND CN05,V,0);{不明流向大资金}累积资金流入:SUM(CN07,9);累积资金流出:SUM(CN06,9);净流入:(累积资金流入-累积资金流出),COLOR0000FF;净流入MA3:MA(净流入,3),DOTLINE,COLOR0000FF;净流入MA5:MA(净流入,5),DOTLINE,COLORWHITE;不明流向大资金:SUM(CN08,9),COLORMAGENTA;{资金流向}QJJ:=VOL / ((H - L) * 2 - ABS(C - O));XVL:=IF(C > O,QJJ * (H - L),IF(C < O,QJJ * (H - O + (C - L)),VOL / 2)) + IF(C > O,0 - QJJ * (H - C + (O - L)),IF(C < O,0 - QJJ * (H - L),0 - VOL / 2));HSL:=XVL / 20 / 1.15;攻击流量:=HSL * 0.55 + REF(HSL,1) * 0.33 + REF(HSL,2) * 0.22;GJJ:=EMA(攻击流量,8);{流量基线‰:GJJ*1000,COLOR00BBBB,COLORGREEN;};{----------------------}GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,净流入*0.96,'白金'),COLORWHITE;HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;DRAWTEXT(HUANGJIN1 AND HUANGJIN2,净流入*0.98,'黄金'),COLORYELLOW;XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100;ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 AND REF(ZHENCANG1,2)>0;DRAWTEXT(ZHENCANG1 AND ZHENCANG2 AND ZHENCANG3 AND ZHENCANG4 AND ZHENCANG5,净流入*0.94,'震仓买入');AA:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;BB:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA1:=AA AND BB;AAA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1;BAA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA2:=AA AND BB ;AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1;BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA3:=AAAA AND BAAA ;BB1:=REF(AA1,1);BB2:=REF(AA2,1);BB3:=REF(AA3,1);DD1:=GJTJ1=100 AND GJTJ2=100 AND AA1 ;DD2:=GJTJ1=100 AND GJTJ2=100 AND AA2 ;DD3:=GJTJ1=100 AND GJTJ2=100 AND AA3 ;AW:=BARSLAST(CROSS(95,GJTJ1))<=2;BW:=BARSLAST(CROSS(95,GJTJ2))<=2;EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;FW:=GJTJ2>50 AND GJTJ3>50;GW:=GJTJ1=100 AND GJTJ2=100;TXW:=COUNT(GW,2)=1;DRAWTEXT(AW AND BW AND EW AND FW AND TXW,净流入*0.90,'起涨');AQ:=GJTJ3=100;BQ:=GJTJ4<90;DRAWTEXT(COUNT(AQ,2) = 2 AND BQ,净流入*0.88,'波启前兆');{}强弱分界线: 50,POINTDOT ,LINETHICK2, COLORFFFF00;VAR2:IF(MONTH<12,1,1);VAR3:=(2*CLOSE+HIGH+LOW)/4;VAR4:=LLV(LOW,34);VAR5:=HHV(HIGH,34);主力:=EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK4,COLORRED;散户:=EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK2,COLORFF9933;DRAWTEXT(CROSS(主力,散户) AND 主力<22,净流入*1.12,'快买入**'),LINETHICK2,COLOR0099FF;DRAWICON(CROSS(主力,散户) AND 主力<22,25,1);DRAWTEXT(CROSS(主力,30) AND 散户<主力,净流入*1.14,'上涨 '),LINETHICK2,COLOR00CCFF;DRAWICON(CROSS(主力,30) AND 散户<主力,35,1);DRAWTEXT(CROSS(主力,65) AND 散户<主力,净流入*1.16,'小心 '),LINETHICK2,COLOR9933FF;DRAWICON(CROSS(主力,65) AND 散户<主力,50,2);DRAWTEXT(CROSS(主力,75) AND 散户<主力,净流入*1.18,'加仓买入'),LINETHICK2,COLOR009900;DRAWICON(CROSS(主力,75) AND 散户<主力,100,2);DRAWTEXT(CROSS(散户,主力)AND 散户>75,净流入*1.20,'头部') ,COLORYELLOW;DRAWICON(CROSS(散户,主力)AND 散户>75,净流入*1.22,2);DRAWTEXT(CROSS(主力,散户) AND 主力<35,净流入*0.84,'买入脉冲');DRAWTEXT(CROSS(散户,主力) AND 散户>75,净流入*1.24,'卖出脉冲');。

通达信最好用的能量指标副图公式源码

通达信最好用的能量指标副图公式源码

通达信最好用的能量指标副图公式源码MTM:=C-REF(C,1);主力做多:100*EMA(EMA(MTM,12),12)/EMA(EMA(ABS(MTM),12),12),CO LORWHITE;多空趋势线:MA(主力做多,6),COLORYELLOW;能量:=主力做多-多空趋势线,COLORBLACK;持仓:能量,COLORRED;STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量 ,0,2.9,0)COLORRED;STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量 ,0,2,0)COLORLIRED;STICKLINE( UPNDAY(能量,1)AND UPNDAY(主力做多,1),能量,0,0.5,0)COLORWHITE;STICKLINE( UPNDAY(能量,1)AND DOWNNDAY(主力做多,1),能量 ,0,2.9,0),COLORGRAY;STICKLINE( UPNDAY(能量,1)AND DOWNNDAY(主力做多,1),能量,0,1,0),COLORLIGRAY;STICKLINE( UPNDAY(能量,1)AND DOWNNDAY(主力做多,1),能量 ,0,0.5,0)COLORWHITE;STICKLINE( DOWNNDAY(能量,1),能量 ,0,2.9,0),COLORGRAY;STICKLINE( DOWNNDAY(能量,1),能量,0,1,0),COLORLIGRAY;STICKLINE( DOWNNDAY(能量,1),能量 ,0,0.5,0)COLORWHITE;{DRAWICON(CROSS(主力做多,多空趋势线),多空趋势线,1);DRAWICON(CROSS(多空趋势线,主力做多),多空趋势线,2);}DRAWICON(UPNDAY(能量,1)AND UPNDAY(主力做多,1) AND UPNDAY(多空趋势线,1),多空趋势线,1);DRAWICON(CROSS(多空趋势线,主力做多),多空趋势线,2);。

超牛指标主力吸筹通达信指标公式源码

超牛指标主力吸筹通达信指标公式源码

VAR2:=1/WINNER(CLOSE);VAR3:=MA(CLOSE,13);VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/100;VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);VARA:=3*VAR8-2*SMA(VAR8,15,1);VARB:=3*VAR9-2*SMA(VAR9,15,1);VARC:=100-VARB;拉升资金: MA(WINNER(CLOSE*0.95)*100,3),COLORYELLOW, ;新庄建仓: (100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0)),COLORGREEN , ; VARD:=拉升资金>VAR4;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;VAR21:=(HIGH+LOW+CLOSE)/3;VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200,10,0); VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 ANDVAR23>-200,-10,VAR24);过中轴线注意:(IF(VAR23>=200 AND VAR22>=150,15,IF(VAR23<=-200 ANDVAR22<=-150,-15,VAR25))+50),COLORCC9900 ,LINETHICK3 ,CROSSDOT; STICKLINE(VARD,VAR4,拉升资金,5,0), ;STICKLINE(1,拉升资金,0,1,0),COLORYELLOW ,COLOR00AAFF ;STICKLINE(1,新庄建仓,100,1,0),COLORGREEN, ;STICKLINE(VAR20,0,80,5,0),COLORRED,LINETHICK3 ;DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,60,'有钱不赚是傻蛋!'),COLORYELLOW,LINETHICK2;DRAWTEXT(CROSS(VARD,0.5) AND COUNT(VARD=1,10)=1,70,'赚钱我走啦!'),,COLORGREEN ;。

通达信指标公式源码 超级资金流指标 超级主力吃货指标

通达信指标公式源码 超级资金流指标 超级主力吃货指标

指标解读核心:主要盯住2条线:1、(主力控盘线上穿控盘临界线)为主力开始要做的起点;上穿强势控盘线为主升和逼空;2、资金流入线上穿资金强弱线,为主力关照的起点,下穿资金强弱线为休息时间。

{PP超级资金流}{副图}流通盘:CAPITAL/1000000,COLOR7F00FF,LINETHICK0;ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//散户筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率}ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天数} ZSHJJ:=EMA(ZSHTL,89);{//散户警戒}ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);散户套牢线:INTPART(ZSHTL),COLOR66FF00,LINETHICK2;主力控盘线:INTPART(ZZLKP),COLOR4D4DFF,LINETHICK2;资金流入线:ZJLRQD,,COLOR7F00FF,LINETHICK2;资金强弱线:15,COLORFF80FF,LINETHICK2,CROSSDOT;控盘临界线:55,COLORFF937F,LINETHICK2,CROSSDOT;强势控盘线:75,COLORFF3399,LINETHICK2,CROSSDOT; ————————————————————————————————————————{PP资金流金叉}{选股}流通盘:=CAPITAL/1000000,COLOR7F00FF,LINETHICK0;ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//散户筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率}ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天数} ZSHJJ:=EMA(ZSHTL,89);{//散户警戒}ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);散户套牢线:=INTPART(ZSHTL),COLOR66FF00,LINETHICK2;主力控盘线:=INTPART(ZZLKP),COLOR4D4DFF,LINETHICK2;{资金流入线:ZJLRQD,,COLOR7F00FF,LINETHICK2;资金强弱线:15,COLORFF80FF,LINETHICK2,CROSSDOT;控盘临界线:55,COLORFF937F,LINETHICK2,CROSSDOT;强势控盘线:75,COLORFF3399,LINETHICK2,CROSSDOT;}资金金叉:CROSS(主力控盘线,散户套牢线);{PP超大主力吃}{副图}{流通盘:CAPITAL/1000000,COLOR7F00FF,LINETHICK0;}N:=8;M:=13;P:=60;S:=3;V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;超大主力吃: IF(V4>=0,V4,0),COLOR7F00FF,LINETHICK3;超大主力吐: IF(V4<=0,V4,0),COLOR66FF00,LINETHICK2;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8; V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10; V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;超大主力吃货线:8,COLORFF80FF,LINETHICK2,CROSSDOT;。

庄家趋势通达信指标公式源码

庄家趋势通达信指标公式源码

庄家趋势通达信指标公式源码《趋势通达信指标公式源码》一、趋势线1、MA:MA(C,N);//N日简单移动平均线2、EMA:EMA(C,N);//N日指数移动平均线3、DMA:DMA(C,A,N);//C,A,N分别为收盘价、角度系数(衰减系数)、移动平均线的期数4、HMA:HMA(C,N);//N日Hull指数移动平均线5、TMA:TMA(C,N);//N日triangular平滑移动平均线6、KMA:KMA(C,N,M);//N,M为KAMA特有参数二、动量指标1、MOM:MOM(C,N);//N日动量线2、MTM:MTM(C,N);//N日动量指标3、ROC:ROC(C,N);//N日变动率指标4、RVI:RVI(C,N);//N日相对动量索引三、平均方差指标1、AVEDEV:AVEDEV(C,N);//N日平均方差2、STD:STD(C,N);//N日标准差3、VAR:VAR(C,N);//N日方差四、波动率指标1、ATR:ATR(C,N);//N日真实波幅,ATR的英文全称为Average True Range2、BOLL:BOLL(C,N,S);//N,S为BOLL特有参数五、变动率指标1、BBI:BBI(C,N);//N日变动率指标2、CCI:CCI(C,N);//N日顺势指标3、DPO:DPO(C,N);//N日DPO(Detrended Price Oscillator)4、MI:MI(C,N);//N日MI指标(Mass Index)5、TRIX:TRIX(C,N);//N日TRIX指标6、WAD:WAD(C,N);//N日WAD指标六、量价关系指标1、OBV:OBV(C,V);//OBV(On Balance Volume)2、MFI:MFI(C,V,N);//N日资金流量指标3、AR:AR(C,V,N);//N日能量潮4、BRAR:BRAR(C,V,N);//N日反转指标5、CR:CR(C,N);//N日顺势指标七、成交量指标1、VMA:VMA(C,V,N);//N日成交量移动平均线2、VOLUME:VOLUME;。

主力 大户 中户 散户资金流 通达信指标公式源码

主力 大户 中户 散户资金流 通达信指标公式源码

主力能量指标:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;主力能量:(主力-均量),NODRAW;操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORRED;减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORRED;反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORGREEN;寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),'主力'),COLORRED;大户量能:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;大户能量:(大户-均量),NODRAW;操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1,0),COLORRED;减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1,0),COLORRED;反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1,0),COLORGREEN;寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),'大户'),COLORYELLOW;中户量能:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;中户能量:(中户-均量),NODRAW;操盘2:STICKLINE(中户能量>=0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORRED;减仓2:STICKLINE(中户能量>=0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORRED;反弹2:STICKLINE(中户能量<0 AND 中户能量>=REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORGREEN;寻底2:STICKLINE(中户能量<0 AND 中户能量< REF(中户能量,1),1.5,1.5+中户能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(中户能量>=0,1.2,1.8),'中户'),COLORMAGENTA;散户量能:换手:=V*100/CAPITAL;主力:=MA(换手,4);大户:=MA(换手,9);中户:=MA(换手,17);散户:=MA(换手,34);均量:=(主力+大户+中户+散户)/4;散户能量:(散户-均量),NODRAW;操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1,0),COLORRED;减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1,0),COLORRED;反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1,0),COLORGREEN;寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1,0),COLORGREEN;DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),'散户'),COLORGREEN;。

通达信指标公式源码 主力动向

通达信指标公式源码 主力动向

特别说明:1:将《主力动向》源码置于K线下方,可能造成K线在日线以下的分时K线(如60,30,15,1)无法显示。

2:指标只是工具,贴图只是举例,切莫对号入座。

请认真斟酌思量,据此买进后果自负。

3: 好坏有你评说,顶起方便共享需要L2行情才能显示超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;主力净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;散户净流入:=(中B+小B)-(中S+小S),COLORRED,NODRAW;净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),COLORRED,NODRAW; 大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW;大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入);大单流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW;大单流出限制:=IF((超B+大B+超S+大S)=0,0,大单流出比);总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;成交总量:=(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW;机构参与度:=(超B+超S+大B+大S)/成交总量*100,COLORYELLOW,NODRAW; 大单强度:=(超B+大B-超S-大S)/成交总量*100,COLORYELLOW,NODRAW;大单强度限制:=IF(大单强度=0,-100,大单强度);大单强度比:=IF(大单强度>=0,(大单强度限制+100)/2,100-ABS((大单强度限制-100)/2)),NODRAW;超单强度:=(超B-超S)/(超B+超S)*100,COLORYELLOW,NODRAW;超单强度限制:=IF(超单强度=0,-100,超单强度);超单强度比:=IF(超单强度>0,(超单强度限制+100)/2,IF(超单强度<0,100-ABS((超单强度限制-100)/2),0)),NODRAW;DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV))-20,30,950,IF(CONST(大宗进>0),RGB(250,125,0),RGB(25,150,250)));DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出>0),RGB(25,150,250),RGB(250,125,0)));DRAWRECTREL(102,CONST(950-(ABS(非大宗进)*250/DAZHIV))-20,132,950,IF(CONST(非大宗进>0),RGB(250,125,0),RGB(25,150,250)));DRAWRECTREL(134,CONST(950-(ABS(非大宗出)*250/DAZHIV))-20,164,950,IF(CONST(非大宗出>0),RGB(25,150,250),RGB(250,125,0)));DRAWRECTREL(204,CONST(950-(ABS(净流入)*250/DAZHIV))-20,234,950,IF(CONST(净流入>0),RGB(200,0,0),RGB(0,125,50)));DRAWTEXT_FIX(1,0.00,0.95,0,STRCAT(STRCAT('主力',CON2STR(主力净流入,0)),'万')),COLORMAGENTA;DRAWTEXT_FIX(1,0.10,0.95,0,STRCAT(STRCAT('散户',CON2STR(散户净流入,0)),'万')),COLORCYAN;DRAWTEXT_FIX(1,0.20,0.95,0,STRCAT(STRCAT('净流入',CON2STR(净流入,0)),'万')),COLORYELLOW;主买A:=ACTINVOL,COLORRED,NODRAW;主卖A:=ACTOUTVOL,COLORGREEN,NODRAW;主买:=主买A*100/(主买A+主卖A),NODRAW,COLORRED;主卖:=主卖A*100/(主买A+主卖A),NODRAW,COLORGREEN;大单买比:=LARGEINTRDVOL*100/(LARGEINTRDVOL+LARGEOUTTRDVOL);大单卖比:=LARGEOUTTRDVOL*100/(LARGEINTRDVOL+LARGEOUTTRDVOL); 主力净买量:=(LARGEINTRDVOL-LARGEOUTTRDVOL),COLORYELLOW,NODRAW;主动买卖差:=(ACTINVOL-ACTOUTVOL),COLORMAGENTA,NODRAW;主力资金差:=((L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1)))/10000,COLO RCYAN,NODRAW;主力买力度:=LARGEINTRDVOL*100/VOL;主力卖力度:=LARGEOUTTRDVOL*100/VOL;主买力度比:=主力买力度/(主力买力度+主力卖力度)*100,NODRAW;主卖力度比:=主力卖力度/(主力买力度+主力卖力度)*100,NODRAW;力度比限制:=IF((LARGEINTRDVOL+LARGEOUTTRDVOL)=0,0,大单买比); JGV:=(L2_VOL(0,0) - L2_VOL(0,1))*VOL/100000000,COLORRED;DHV:=(L2_VOL(1,0) - L2_VOL(1,1))*VOL/100000000,COLORFF00FF;ZHV:=(L2_VOL(2,0) - L2_VOL(2,1))*VOL/100000000,COLOR00FFFF;SHV:=(L2_VOL(3,0) - L2_VOL(3,1))*VOL/100000000,COLORFFFFFF; NOTEXT大量动向:=MA((JGV+DHV),5),COLORYELLOW;超级大量:=JGV,COLOR0000FF,NODRAW;机构大量:=DHV,COLORMAGENTA,NODRAW;大量博弈:=(JGV+DHV),COLORYELLOW,NODRAW;小量博弈:=(ZHV+SHV),COLORWHITE,NODRAW;大量资金比:=大量博弈/(ABS(JGV)+ABS(DHV)+ABS(ZHV)+ABS(SHV))*100,COLORYELLOW,NODRAW; 大量资金比限制:=IF(大量资金比=0,-100,大量资金比);大量强度比:=IF(大量资金比>0,(大量资金比限制+100)/2,IF(大量资金比<0,100-ABS((大量资金比限制-100)/2),0)),COLORGREEN,NODRAW;小量资金比:=小量博弈/(ABS(JGV)+ABS(DHV)+ABS(ZHV)+ABS(SHV))*100,COLORYELLOW,NODRAW; 小量强度比:=IF(小量资金比>=0,(小量资金比+100)/2,100-ABS((小量资金比-100)/2)),COLORCYAN,NODRAW;MVR:=REF(MA(V,5),1);FVR:=REF(V,1);PVR:=(MVR+FVR)/2;量能比:=V/(V+PVR)*100/FROMOPEN*240;{量能饱和度}SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));【量能饱和】:=IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;{活跃度}LC:=REF(CLOSE,1);RSI5:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100;WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;活跃度:=(RSI5-WR10),COLORFFFF00,LINETHICK1,NODRAW;活跃度比:=IF(活跃度>=0,(活跃度+100)/2,100-ABS((活跃度-100)/2)); DRAWRECTREL(100,0,400,40,RGB(0,75,200));DRAWRECTREL(100,0,250,40,RGB(0,250,50));DRAWRECTREL(100,0,100+CONST(力度比限制*300/100),40,RGB(200,0,50)); DRAWTEXT_FIX(1,0.00,0.00,0,STRCAT(STRCAT('【买卖力度比】',CON2STR(大单买比,2)),'%买')),COLORYELLOW;{DRAWTEXT_FIX(1,0.33,0.00,0,STRCAT(STRCAT('',CON2STR(大单卖比,2)),'%卖')),COLORGREEN;}DRAWRECTREL(100,50,400,90,RGB(0,100,0));DRAWRECTREL(100,50,250,90,RGB(0,250,50));DRAWRECTREL(100,50,100+CONST(大量强度比*300/100),90,RGB(250,150,0));DRAWTEXT_FIX(1,0.00,0.05,0,STRCAT(STRCAT('【大量强度比】',CON2STR(大量强度比,2)),'%买')),COLORYELLOW;DRAWRECTREL(100,100,400,140,RGB(0,75,200));DRAWRECTREL(100,100,250,140,RGB(0,250,50));DRAWRECTREL(100,100,100+CONST(主买*300/100),140,RGB(175,50,250)); DRAWTEXT_FIX(1,0.00,0.10,0,STRCAT(STRCAT('【主动买卖比】',CON2STR(主买,2)),' %')),COLORYELLOW;{DRAWTEXT_FIX(1,0.33,0.10,0,STRCAT(STRCAT('',CON2STR(主卖,2)),'%卖')),COLORGREEN;}DRAWRECTREL(100,150,400,190,RGB(0,100,0));DRAWRECTREL(100,150,250,190,RGB(0,250,50));DRAWRECTREL(100,150,100+CONST(机构参与度*300/100),190,RGB(250,100,0));DRAWTEXT_FIX(1,0.00,0.15,0,STRCAT(STRCAT('【机构参与度】',CON2STR(机构参与度,2)),' %')),COLORYELLOW;DRAWRECTREL(600,0,900,40,RGB(0,100,0));DRAWRECTREL(600,0,750,40,RGB(0,250,50));DRAWRECTREL(600,0,600+CONST(大单流入限制*300/100),40,RGB(200,0,50));DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT(STRCAT('【大单流入比】',CON2STR(大单流入限制,2)),' %买')),COLORYELLOW;{DRAWTEXT_FIX(1,0.83,0.01,0,STRCAT(STRCAT('',CON2STR(大单流出限制,2)),' %卖')),COLORGREEN;}DRAWRECTREL(600,50,900,90,RGB(0,200,250));DRAWRECTREL(600,50,750,90,RGB(0,250,50));DRAWRECTREL(600,50,600+CONST(大单强度比*300/100),90,RGB(250,150,0));DRAWTEXT_FIX(1,0.500,0.05,0,STRCAT(STRCAT('【大单强度比】',CON2STR(大单强度比,2)),' %买')),COLORYELLOW;DRAWRECTREL(600,100,900,140,RGB(0,100,0));DRAWRECTREL(600,100,750,140,RGB(0,250,50));DRAWRECTREL(600,100,600+CONST(总流入比*300/100),140,RGB(175,50,250));DRAWTEXT_FIX(1,0.500,0.10,0,STRCAT(STRCAT('【资金流入比】',CON2STR(总流入比,2)),' %')),COLORYELLOW;{DRAWTEXT_FIX(1,0.83,0.10,0,STRCAT(STRCAT('',CON2STR(总流出比,2)),' %卖')),COLORGREEN;}DRAWRECTREL(600,150,900,190,RGB(0,200,250));DRAWRECTREL(600,150,750,190,RGB(0,250,50));DRAWRECTREL(600,150,600+CONST(量能比*300/100),190,RGB(250,100,0)); DRAWTEXT_FIX(1,0.500,0.15,0,STRCAT(STRCAT('【资金量能比】',CON2STR(量能比,2)),' %')),COLORYELLOW;DRAWRECTREL(365,890,655,930,RGB(0,100,0));DRAWRECTREL(365,890,510,930,RGB(0,200,50));DRAWRECTREL(365,890,360+CONST(活跃度比*300/100),930,RGB(150,10,250));DRAWTEXT_FIX(1,0.318,0.89,0,STRCAT(STRCAT('活跃度',CON2STR(活跃度比,2)),' %')),COLORYELLOW;DRAWRECTREL(365,940,655,985,RGB(0,50,150));DRAWRECTREL(365,940,510,985,RGB(0,200,50));DRAWRECTREL(365,940,360+CONST(【量能饱和】*300/100),985,RGB(150,10,0));DRAWTEXT_FIX(1,0.318,0.95,0,STRCAT(STRCAT('饱和度',CON2STR(【量能饱和】,2)),' %')),COLORYELLOW;。

通达信资金抄底指标公式

通达信资金抄底指标公式

通达信资金抄底指标公式引言随着股市逐渐成熟和投资者的不断增多,投资策略也在不断演变。

而在投资中,掌握资金抄底的指标公式是非常重要的,这能够帮助投资者更准确地判断市场的买卖时机。

本文将向您介绍通达信资金抄底的指标公式及其使用方法。

一、资金抄底指标公式在通达信软件中,有一些常用且有效的资金抄底指标公式,包括以下几个方面:1.资金流入指标(F I)资金流入指标(F I)能够衡量资金流入或流出的强度,判断市场的买卖气势。

其计算公式如下:F I=(最高价-开盘价)/(最高价-最低价)×成交量其中,最高价和最低价是每日的最高价格和最低价格,开盘价是当日的开盘价格,成交量表示该日的成交量。

2.资金潮指标(C MF)资金潮指标(CM F)可以衡量资金流入或流出的强度,并结合价格变动判断买卖时机。

其计算公式如下:C M F=(资金流入+资金流出)/成交量3.资金指标(M F I)资金指标(M FI)是一种计算有效交易量的指标,它能够帮助我们判断市场的买卖情况。

其计算公式如下:M F I=100-100/(1+资金比率)其中,资金比率的计算公式为:资金比率=资金流入/资金流出4.能量潮指标(O BV)能量潮指标(OB V)是一种衡量买卖气势的指标,它以成交量变化来反映资金流入和流出的程度。

其计算公式如下:O B V=前一日O BV+当日成交量×当日价格变动的正负二、指标使用方法掌握资金抄底指标公式只是第一步,更重要的是能够正确运用这些指标来判断市场的买卖时机。

以下是一些使用方法供您参考:资金流入指标(F I)1.:当FI指标呈现上升趋势时,意味着资金开始流入市场,此时可以考虑买入;相反,当F I指标下降时,意味着资金流出市场,可以考虑卖出。

资金潮指标(C M F)2.:C MF指标与价格同步变动时,市场上涨或下跌的概率较大;当CM F指标与价格背离时,可能出现转势信号。

资金指标(M F I)3.:MF I指标在超买和超卖时具有较好的判断能力。

最新主力买卖通达信指标公式源码

最新主力买卖通达信指标公式源码

最新主力买卖通达信指标公式源码通达信是国内广泛使用的炒股软件之一,提供了许多技术指标供投资者使用。

其中一个重要的指标是最新主力买卖指标,也称为资金流向指标。

该指标用于判断市场买卖力量的强弱,帮助投资者做出买卖决策。

首先,计算主力卖出成交量的公式如下:SellVol:REF(VOL,1)*(CLOS>OPEN)其中,REF(VOL,1)表示昨日的成交量,VOL表示当日的成交量,CLOS表示收盘价,OPEN表示开盘价。

公式的意思是,如果今日的收盘价大于开盘价,则认为当日的成交量为主力卖出成交量。

然后,计算主力买入成交量的公式如下:BuyVol:REF(VOL,1)*(CLOS<OPEN)类似地,如果今日的收盘价小于开盘价,则认为当日的成交量为主力买入成交量。

接下来,计算主力买卖比的公式如下:BuySellRatio:EMA(BuyVol,5)/EMA(SellVol,5)其中,EMA表示指数移动平均线,BuyVol和SellVol分别表示主力买入和主力卖出成交量。

该公式计算了主力买入成交量和主力卖出成交量的指数移动平均线,并得到了主力买卖比。

最后,计算主力买卖指标的公式如下:MainForceIndex:HHV(BuySellRatio,30)*100/LLV(BuySellRatio,30)其中,HHV表示最高价,LLV表示最低价。

该公式通过计算主力买卖比的最高值和最低值,并将其乘以100后除以最低值,得到了主力买卖指标。

通过以上公式的计算,可以得到最新主力买卖指标的数值。

当指标数值高于70时,表示市场有较强的买入力量;当指标数值低于30时,表示市场有较强的卖出力量。

投资者可以根据这些指标数值进行买卖决策。

总结起来,通达信最新主力买卖指标的公式源码如下:SellVol:REF(VOL,1)*(CLOS>OPEN)BuyVol:REF(VOL,1)*(CLOS<OPEN)BuySellRatio:EMA(BuyVol,5)/EMA(SellVol,5)MainForceIndex:HHV(BuySellRatio,30)*100/LLV(BuySellRatio,30)以上为公式的源码,投资者可以根据这些公式进行编程实现,方便使用最新主力买卖指标。

主力资金通达信指标公式源码

主力资金通达信指标公式源码

通达信主力资金副图指标MACD:"MACD.MACD",NODRAW;W1:STICKLINE(MACD>0,MACD,0,3,1),COLORRED;W2:STICKLINE(MACD<0,MACD,0,3,1),COLORCYAN;VA1:=HHVBARS(MACD,BARSLAST(MACD<0)+1);VA2:=CROSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);QG:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5);前高:DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORMAGENTA;VA3:=LLVBARS(MACD,BARSLAST(MACD>0)+1);VA4:=CROSS(BACKSET(CROSS(MACD,0),REF(VA3,1)+2),0.5);BD:=BARSLAST(FILTERX(CROSS(0,MACD),BARSCOUNT(C)));前低:DRAWLINE(VA4,MACD,REF(VA4,1),REF(MACD,1),1);BDTJ:=IF(MACD<0,FILTERX(MACD=LLV(MACD,BARSLAST(MACD>0)), BARSCOUNT(C)),DRAWNULL);TSBDTJ:=BARSLAST(BDTJ);BDZH:=FILTERX(MACD<CONST(LLV(MACD,BD+1)),BARSCOUNT(C));BDTS:=BARSLAST(BDZH);本低:IF(BD+1>=1,CONST(LLV(MACD,BD+1)),DRAWNULL);BDCL:=CROSS(COUNT(CROSS(MACD>本低/2 AND MACD<0,0.5),TSBDTJ)=1,0.5) AND TSBDTJ>=0;终点:=IF(ISLASTBAR AND MACD>0 AND MACD=HHV(MACD,BARSLAST(MACD<0)),1,IF(FILTERX(QG,BARSCOUNT(C)),2,DRAWNULL));UU:=(终点=1 OR 终点=2) AND MACD>0;ZZ:=FILTERX(UU,BARSCOUNT(C));本高:DRAWLINE(ZZ,MACD,REF(ZZ,1),REF(MACD,1),1),COLORWHITE;横线:=CONST(REF(MACD,BARSLAST(ZZ)));WW:=MACD>横线;起始点:=FILTERX(REFX(BARSLAST(WW),1)=1,BARSCOUNT(C));天数:BARSLAST(起始点),COLORYELLOW,NODRAW;上横线:DRAWLINE(起始点,横线,ZZ,横线,0),COLORGREEN,DOTLINE;下横线:DRAWLINE(BDZH,CONST(LLV(MACD,BD+1)),BDTJ=1,MACD,0),COLOR8080FF,DOTLIN E;DRAWNUMBER(BDTJ,CONST(LLV(MACD,BD+1))*0.9,BDTS);DRAWNUMBER(ZZ,上横线*1.1,天数);TJ:=IF(起始点,BARSNEXT(ZZ),DRAWNULL);红柱数量:IF(天数>0 AND 天数<=REF(TJ,天数),SUM(MACD>0,天数),DRAWNULL),COLORWHITE,NODRAW;横线起始价:REF(C,天数),NODRAW;空间评估:(横线起始价-C)/C*100,NODRAW;TT:=BARSLAST(ZZ);WQG:=CROSS(COUNT(CROSS(MACD<本高/2 AND MACD>0,0.5),ZZ)=1,0.5) AND ZZ>=0; STICKLINE(MACD>前高AND 本高>前高AND BARSLAST(CROSS(MACD<本高/2,0.5))>0 ANDMACD>(前高+本高)/2,MACD,前高,1,0),COLORYELLOW;前高本高二分位:IF(MACD>0 AND 本高!=前高,DRAWLINE(WQG,(前高+本高)/2,REF(WQG,1),REF((前高+本高)/2,1),1),DRAWNULL),COLORC0C000,DOTLINE;AA:=STRCAT(STRCAT(STRCAT('〖','上升空间'),'〗'),CON2STR(IF(空间评估,空间评估, DRAWNULL),2));DRAWTEXT_FIX(C>0,0,1,0,STRCAT(AA,'﹪')),COLORWHITE;DRAWTEXT(WQG,MACD*1.1,'本高成立'),COLORWHITE;DRAWTEXT(BDCL,MACD*1.1,'本低成立'),COLORWHITE;STICKLINE(MACD>前高,MACD,前高,1,0),COLORYELLOW;STICKLINE(WQG,MACD,0,1,0),COLORGREEN;STICKLINE(MACD<0 AND MACD<前低AND 前低<0,MACD,前低,1,0),COLORBLUE;B1:=IF(CROSS(MACD<0,0.5),BARSNEXT(BDTJ),DRAWNULL);TSB1:=BARSLAST(MACD>0)-1;STICKLINE(BARSLAST(BDCL)>=0 AND MACD<前低AND MACD<0,MACD,前低,1,0),COLORGREEN;STICKLINE(BDCL,MACD,0,1,0),COLORWHITE;STICKLINE(MACD>前高AND 本高>前高AND BARSLAST(WQG)>0,MACD,前高,1,0),COLORRED;DRAWTEXT(VA2 AND VA2!=UU,(MACD/10)*9,'前');DRAWTEXT(VA2 AND VA2!=UU,MACD/10,'高');DRAWTEXT(ZZ,(MACD/10)*9,'本'),COLORWHITE;DRAWTEXT(ZZ,MACD/10,'高'),COLORWHITE;DRAWTEXT(BDTJ,(MACD/10)*9,'低'),COLORRED;DRAWTEXT(BDTJ,MACD/10,'本'),COLORRED;IF(BARSLAST(BDCL)>=0,本低/2,DRAWNULL),COLORRED,DOTLINE; VARA1:=(DVOL/C)/2,NODRAW;VARA2:=SUM(IF(VARA1>100 AND CLOSE>REF(CLOSE,1),VARA1,0),0); VARA3:=SUM(IF(VARA1>100 AND CLOSE<REF(CLOSE,1),VARA1,0),0); VARA4:=SUM(IF(VARA1<100 AND CLOSE>REF(CLOSE,1),VARA1,0),0); VARA5:=SUM(IF(VARA1<100 AND CLOSE<REF(CLOSE,1),VARA1,0),0); VARA6:=VARA2+VARA3+VARA4+VARA5;机买:=(VARA2/VARA6)*100,LINETHICK2,COLORRED;机卖:=(VARA3/VARA6)*100,LINETHICK2,COLORGREEN;主力差:=机买-机卖,LINETHICK2,NODRAW;强度:主力差-REF(主力差,1),NODRAW,COLOR6600FF;STICKLINE(强度>1.5,-0.05,0,2,0),COLORMAGENTA;近期:BARSLAST(强度>1.5),NODRAW,COLORGRAY;。

通达信公式

通达信公式

通达信公式
通达信是一种专业的股票分析软件,提供了丰富的技术指标和公式。

以下是一些常见的通达信公式示例:
1. 均线指标:
- MA(CLOSE, N):N日均线
- EMA(CLOSE, N):N日指数平滑移动平均线
- DMA(CLOSE, N, M):N日平均线与M日平均线之差
2. 动量指标:
- MOM(CLOSE, N):N日动量
- ROC(CLOSE, N):N日变动率指标
- RSRS(CLOSE, N, M):N日相对强弱指标
3. 成交量指标:
- VOL():成交量
- VOLRAT():量比指标
4. 价量指标:
- OBV(CLOSE,VOL):能量潮指标
- VROC(CLOSE,VOL, N):量变动指标
5. 相对强弱指标:
- RSI(CLOSE, N):N日相对强弱指标
- KDJ(HIGH, LOW, CLOSE, N):随机指标
这里只列举了部分通达信的公式,实际上还有很多其他的公式可以使用。

需要使用通达信软件时,可以在软件中找到公式编辑器并添加相应的公式。

主力散户筹码通达信指标公式源码

主力散户筹码通达信指标公式源码

主力散户筹码指标,主力散户动向一目了然弱势区:20,LINETHICK2,COLORGREEN;强弱分水岭:50,LINETHICK2,COLORWHITE;强势区:80,LINETHICK2,COLORRED;风险区:95,LINETHICK2,COLORLICYAN;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(V2,DATE),COLORYELLOW,NODRAW;阻力:REFDATE(V3,DATE),COLORYELLOW,NODRAW;主力:EMA(100*(CLOSE-LLV (LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3), COLORRED,LINETHICK2;走势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA(( CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORYELLOW;主力筹码集中度:WINNER(C)*100 ,COLORLIMAGENTA,LINETHICK1;M:=60;散户:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))COLORGREEN,LINETHICK1,DOTLINE;散户筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100,COLORLICYAN,LINETHICK1,DOTLINE;主力换手率:100*VOL/CAPITAL,NODRAW,COLORLIGREEN;主力筹码估算:EMA(WINNER(CLOSE)*70,3),NODRAW;散户筹码估算:EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3),NODRAW;散户套牢比率:散户筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;主力控盘比率:主力筹码估算/(主力筹码估算+散户筹码估算)*100,NODRAW;市场总量:=MA(主力筹码估算+散户筹码估算,13),COLORGREEN,LINETHICK2;筹码总量:=IF(市场总量>REF(市场总量,1),市场总量,DRAWNULL),COLORWHITE,LINETHICK2;DRAWRECTREL(0,0,220,650,RGB(01,000,000));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.0,0, '主力:'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.0,0,'%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.0,0,主力),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.08,0, '走势:'),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.08,0,'%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.08,0,走势),COLORYELLOW; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.24,0, '主力换手率:'),COLORLIGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.24,0, '%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.24,0,主力换手率),COLORLIGREEN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.32,0,'散户:'),COLORGRAY; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.32,0, '%'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.32,0,散户),COLORGRAY; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.40,0,'支撑:'),COLORRED;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.40,0, '¥'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.40,0,支撑),COLORRED; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.48,0,'阻力:'),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.48,0, '¥'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.04,0.48,0,阻力),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.0,0, '主力筹码集中度:'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.0,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.0,0,主力筹码集中度),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.08,0, '主力控盘比率:'),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.08,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.08,0,主力控盘比率),COLORWHITE; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.16,0, '主力筹码估算:'),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.16,0,' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.16,0,主力筹码估算),COLORMAGENTA; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.32,0, '散户套牢比率:'),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.32,0,' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.32,0,散户套牢比率),COLORLICYAN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,0.40,0, '散户筹码集中度:'),COLORGREEN; DRAWTEXT_FIX(CURRBARSCOUNT=1,0.20,0.40,0, ' %'),COLORLIGRAY; DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.17,0.40,0,散户筹码集中度),COLORGREEN;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档