通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信主力资金流向指标公式源码
价量: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),COLOR00CCFF,NODRAW;
主线:(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25),COLORCYAN,NODRAW;
快线:(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25),COLOR55AAFF,NODRAW;
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K1:=SMA(RSV,3,1);
D1:=SMA(K1,3,1);KK:=INTPART(K1);DD:=INTPART(D1);
TFXXS:=KK+DD;{变异KD风险系数}
TGLXS:=(TFXXS-REF(TFXXS,1));{变异KD乖离系数:资金流向}{红}
STICKLINE(TGLXS>0ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000AA;
STICKLINE(TGLXS>0ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022CC;
STICKLINE(TGLXS>0ANDTGLXS>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF;{粉}
STICKLINE(TGLXS<0andtglxs>REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00BB;
STICKLINE(TGLXS<0andtglxs>REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22BB;
STICKLINE(TGLXS<0andtglxs>REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55BB;{黄}
STICKLINE(TGLXS>0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00AAFF;
STICKLINE(TGLXS>0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR00CCFF;
STICKLINE(TGLXS>0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR00FFFF;
{蓝}
STICKLINE(TGLXS<0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700;
STICKLINE(TGLXS<0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORFFAA22;
STICKLINE(TGLXS<0ANDTGLXS<=REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFFFF55;
STICKLINE(TGLXS=0ANDREF(TGLXS,1)>=0,100,TGLXS+100,8,0),COLORBROWN;
STICKLINE(TGLXS=0ANDREF(TGLXS,1)<0,100,TGLXS+100,8,0),COLORWHITE;
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;{主
力控盘筹码系数}ZSHJJ:=EMA(ZSHTL,55);{散户警戒}ZZLJJ:=EMA(ZZLKP,55);{主力警戒}
散兵坑:IF(ZZLKP<=10,ZZLKP,ZZLKP),COLORMAGENTA,NODRAW;{散户套牢筹码}
STICKLINE(C>0,ZSHTL,ZZLKP,2,0),COLOR808080;{散户筹码警戒}
STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLORC0C0C0;{主力控盘筹码}{粉}
STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP>20,ZZLKP,20,2.5,0),COLORAA00BB;
STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP>20,ZZLKP,20,1.5,0),COLORCC22BB;
STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP>20,ZZLKP,20,0.5,0),COLOREE44BB;{蓝}
STICKLINE(ZZLKP<=ref(zzlkp,1)andzzlkp>20,ZZLKP,20,2.5,0),COLORFF7700;
STICKLINE(ZZLKP<=ref(zzlkp,1)andzzlkp>20,ZZLKP,20,1.5,0),COLORFFAA22;
STICKLINE(ZZLKP<=ref(zzlkp,1)andzzlkp>20,ZZLKP,20,0.5,0),COLORFFFF55;{亮红}
STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,2.5,0),COLOR131FFD;
STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,1.5,0),COLOR5050FF;
STICKLINE(ZZLKP>REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,0.5,0),COLOR7E7EFF;{深蓝}
STICKLINE(ZZLKP<=REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,2.5,0),COLORAA0000;
STICKLINE(ZZLKP<=REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,1.5,0),COLORCC0000;
STICKLINE(ZZLKP<=REF(ZZLKP,1)ANDZZLKP<20,ZZLKP,0,0.5,0),COLORFF0000;{主力
筹码警戒}{黄}
STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2.5,0),COLOR00AAFF;
STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,1.5,0),COLOR00CCFF;
STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,0.5,0),COLOR00FFFF;{红}
STICKLINE(ZZLKP>ZZLJJANDZZLJJ>50,ZZLKP,ZZLJJ,2.5,0),COLOR0000AA;
STICKLINE(ZZLKP>ZZLJJANDZZLJJ>50,ZZLKP,ZZLJJ,1.5,0),COLOR0022CC;
STICKLINE(ZZLKP>ZZLJJANDZZLJJ>50,ZZLKP,ZZLJJ,0.5,0),COLOR0055FF;{红}
STICKLINE(ZZLKP>ZZLJJANDZZLJJ<50andzzlkp>50AND
ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,2.5,0),COLOR0000AA;STICKLINE(ZZLKP>ZZLJJAND
ZZLJJ<50andzzlkp>50ANDZZLJJ>REF(ZZLJJ,1),ZZLKP,50,1.5,0),COLOR0022CC;
STICKLINE(ZZLKP>ZZLJJANDZZLJJ<50andzzlkp>50AND
ZZLJJ>REF(ZZLJJ,1),ZZLKP,50,0.5,0),COLOR0055FF;{铸顶风险区}{绿}
STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,2.5,0),COLOR00AA00;
STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,1.5,0),COLOR00CC00;
STICKLINE(ZZLKP>80,ZZLKP,ZZLKP-(ZZLKP-80)/2,0.5,0),COLOR00FF00;{散兵坑}
STICKLINE(ZZLKP<=10,ZZLKP,0,5,0),COLORDD00DD;100,COLORGREEN;
80,COLORGREEN;{0,COLORGREEN;}{主线快线}
价量,COLOR0CC0FF,LINETHICK2;主线,COLOR00FFAA,LINETHICK2;快线,LINESTICK,COLORFF68DD;
N:=34;
预测量:IF(CURRBARSCOUNT=1AND
PERIOD=5,vol*240/FROMOPEN,DRAWNULL),COLORCCCCFF,NODRAW;
STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,预测量,0,8,-1),COLORYELLOW;
【成交量】:VOL,VOLSTICK,COLORRED;
成交额亿:=AMOUNT/100000000,NODRAW;
流通:=CAPITAL/1000000,NODRAW;
成交流通比:=AMOUNT/CAPITAL/100,NODRAW;
大盘成交【手】:INDEXV,COLORFF55FF,NODRAW;
涨家数:INDEXADV,COLOR0000EE,NODRAW;
跌家数:INDEXDEC,COLOR00EE00,NODRAW;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.2,0),COLORFF77FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,2.7,0),COLORFF33FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,2.1,0),COLORFF55FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,1,6),COLORFF77FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,0.8,0),COLORFF99FF;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,0.5,0),COLORFFBBFF;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,0.1,0),COLORFFDDFF;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3,2),COLORFF1100;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,2.7,0),COLORFF3300;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,2.1,0),COLORFF5500;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,1.6,0),COLORFF7700;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0,8),COLORFF9900;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0.5,0),COLORFFBB00;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,0.1,0),COLORFFDD00;
HL10:=WINNER(C/1.1)*V,COLORBLUE;
{STICKLINE(((C/1.1)*V),HL10,0,3,0),COLORMAGENTA;}
STICKLINE(HL10>0,0,HL10,3,2),COLORFF0033;{紫罗兰色–攻击量}
STICKLINE(HL10>0,0,HL10,2.7,0),COLORFF0066;
STICKLINE(HL10>0,0,HL10,2,1),COLORFF0099;
STICKLINE(HL10>0,0,HL10,1.6,0),COLORFF00CC;
STICKLINE(HL10>0,0,HL10,0.5,0),COLORFF00FF;
HL20:=WINNER(C/1.2)*V;
{STICKLINE(((C/1.2)*V),HL20,0,2.1,0)COLORYELLOW;}
STICKLINE(HL20>0,0,HL20,3,2),COLOR0035FF;{黄色–潜入量}
STICKLINE(HL20>0,0,HL20,2.7,0),COLOR0064FF;
STICKLINE(HL20>0,0,HL20,2,1),COLOR0093FF;
STICKLINE(HL20>0,0,HL20,1.6,0),COLOR00C2FF;
STICKLINE(HL20>0,0,HL20,0.5,0),COLOR00FFFF;
HL30:=WINNER(C/1.3)*V;
STICKLINE(((C/1.3)*V),HL30,0,2.5,0),COLORRED;
STICKLINE(HL30>0,0,HL30,3.2,0),COLOR000066;{红色–拉升量}
STICKLINE(HL30>0,0,HL30,2,7),COLOR000077;
STICKLINE(HL30>0,0,HL30,2.1,0),COLOR000099;
STICKLINE(HL30>0,0,HL30,1.6,0),COLOR0000CC;
STICKLINE(HL30>0,0,HL30,0.2,0),COLORCC66FF;
MA5:MA(V,5),COLORLIMAGENTA;
MA13:MA(V,13),COLORCYAN;
DRAWTEXT(CROSS(MA5,MA13),(V*1.05),'★'),COLORYELLOW;
{VOL动能均分量}
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
主力能量:=(主力-均量);
大户能量:=(大户-均量);
中户能量:=(中户-均量);
散户能量:=(散户-均量);
DRAWTEXT(V>0ANDISLASTBARANDABS(主力能量),V*0.98,IF(主力能量>0AND主力
能量>REF(主力能量,1),'机构+','机构-')),COLORYELLOW;
DRAWTEXT(V>0ANDISLASTBARANDABS(大户能量),V/4*3,IF(大户能量>0AND大户能
量>REF(大户能量,1),'大户+','大户-')),COLOR0000CC;
DRAWTEXT(V>0ANDISLASTBARANDABS(中户能量),V/2,IF(中户能量>0AND中户能
量>REF(中户能量,1),'中户+','中户-')),COLORMAGENTA;
DRAWTEXT(V>0ANDISLASTBARANDABS(散户能量),V/4,IF(散户能量>0AND散户能
量>REF(散户能量,1),'散户+','散户-')),COLORCYAN;
{——–VOL.量能饱和——–}
N1:=N;
N2:=N1*1.05;
N3:=N1+3;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和:IF(SAT>1,1,SAT)*100,COLORYELLOW,NODRAW;
中点:=REFDATE(HHV(V,100)/2,DATE);{量能饱和的变色切换}{中点:=REFDATE(HHV(V,240)/2,DATE);}
STICKLINE(CURRBARSCOUNT=N1,中点*1.9,中点*1.5,100,1),COLOR00DDDD;
STICKLINE(CURRBARSCOUNT=N1,中点*1.88,中点*1.52,量能饱和,0),COLOR0033FF;
STICKLINE(CURRBARSCOUNT=N1,中点*1.82,中点*1.58,量能饱和,0),COLOR0077FF;
STICKLINE(CURRBARSCOUNT=N1,中点*1.76,中点*1.64,量能饱和,0),COLOR0099FF
二、通达信主力资金进出指标源码
ZC_1:=IF(LDYNAINFO(7),DYNAINFO(7)-(DYNAINFO(7)-H+0.02)/(HL+0.02),0));
ZC_2:=DMA(ZC_1,V/CAPITAL)*100;
出货:=IF(ZC_2>0ANDZC_2>REF(ZC_2,1),ZC_2/20,0);
轴:0,COLOR00FF00;
PJJ:=DMA((H+L+C*2)/4,0.9);
JJ:=REF(EMA(PJJ,3),1);
QJJ:=VOL/((H-L)*2-ABS(C-O));
XVL:=IF(C>O,QJJ*(H-L),IF(CO,0-QJJ*(H-C
+(O-L)),IF(C<O,0-QJJ*(H-L),0-VOL/2));
ZLL:=VOL/CAPITAL;
HSL1:=IF(ZLL>10,10,ZLL);
HSL:=XVL/20/1.15;
攻击流量:=HSL*0.55+REF(HSL,1)*0.33+REF(HSL,2)*0.22;
GJJ:=EMA(攻击流量,8);
LLJX:=EMA(攻击流量,3);
流量:LLJX,COLORC875B7,COLORRED,NODRAW;
STICKLINE(流量>0,流量,0,2.3,0)COLOR0000FF;
STICKLINE(流量<0,流量,0,2.3,0),COLORFF4242;
流量基线:GJJ,COLOR00BBBB,COLORGREEN;
STICKLINE(HSL*0.4>=0,HSL*0.4*1.5,0,0,1)COLORYELLOW;
STICKLINE(HSL*0.4<0,HSL*0.4*1.5,0,0,1)COLORGREEN;
ZJLL:=REF(LLJX,1);
QZJJ:=(((LLJX-ZJLL)/ZJLL)*100);
流量幅%:IF(((LLJX>0)AND(ZJLL<0)),ABS(QZJJ),IF((((LLJX<0)AND(ZJLL<0))AND
(LLJX<ZJLL)),(0-QZJJ),QZJJ))COLORMAGENTA,NODRAW;
⼒度:HSL/1000,COLOR9B37FF,COLORRED,NODRAW;
周流量:SUM(LLJX,5),COLORFFBFDF,COLORMAGENTA,NODRAW;
BB:=REF(周流量,1);
ZQZJJ:=(周流量-BB)/BB*100;
周幅%:IF(周流量>0ANDBB<0,ABS(ZQZJJ),IF(周流量<0ANDBB<0AND周流量<BB,-
ZQZJJ,ZQZJJ))COLORMAGENTA,NODRAW;
VARQ1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VARQ2:=SMA(ABS(LOW-VARQ1),13,1)/SMA(MAX(LOW-VARQ1,0),10,1);
VARQ3:=EMA(VARQ2,10);
VARQ4:=LLV(LOW,33);
VARQ5:=EMA(IF(LOW<=VARQ4,VARQ3,0),3)*100;
主⼒进场:STICKLINE(VARQ5>REF(VARQ5,1)AND出货<=0,0,VARQ5,7,0),COLOR00FFFF;
VARACl:=(CLOSE*2+HIGH+LOW)/4;
VARBC1:=EMA(VARAC1,13)-EMA(VARAC1,34);
VARCC1:=EMA(VARBC1Z5);
多方主力:2*(VARBC1・VARCC1)*380,COLORRED,LINETHICKO;
空方主力:(-2)*(VARBC1-VARCC1)*38O,COLORGREEN,LINETHICK0;
VAR1:=((CLOSE-LLV(LO\A421))/(HHV(HIGH,21)-LLV(LOW,21))*200-100)/2;
VAR2:=SMA(SMA(VAR1Z3,1)Z3Z1);
跟风盘:=MA(EMA(VAR2Z3),3),COLORYELLOW,LINETHICKO;
股价:=3*VAR2・2*跟风盘,COLORBLUE,LINETHICKO;
VAR3:=EMA(CLOSE,13)・EMA(CLOSE,26)*100;
VAR4:=EMA(VAR3,3);
多头:3*(VAR4-VAR3)ZCOLORFFOOFF,LINETHICKO;
空头:2*跟风盘-3*VAR2,COLORLIBLUE,LINETHICKO;
多差:多方主力•多头,NODRAW;
空差:空头■空方主力ZCOLORLIBLUEZNODRAW;
DRAWBAND(空头,RGB(99,100,500),空方主力,RGB(0,9000,100));
DRAWBAND(多方主力,RGB(200,15,50),多头,RGB(10,250,50));
VARCO:=(2*CLOSE+HIGH+LOW)/4;
VARC1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LI_V(LOW,24))*100;
VARC2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
B1:=EMA((VARCO-LLV(LOW,26))/(HHV(HIGH,34)-LLV(LOW,26))*100,16);多方:=SMA(SMA(VARC2,2,1)+3,2,1)・50,COLORRED;
浮筹:=EMA(B1,4)-50ZLINETHICK1,COLOR545454;
空方:=SMA(VARC1,3,1)・5O,COLORBLUE;
DRAWICON(CROSS(多方主力'多头),多头,11);
DRAWICON(CROSS(空头,空方主力),空头,1);
DRAWICON(CROSS(多头,多方主力),多头,12);
DRAWICON(CROSS(空方主力,空头),空头,2);
DRAWICON(多方主力〉多头AND空头〉空方主力ANDCROSS(多方主力,空头),0,14);
STICKLINE(多方主力〉多头AND空头〉空方主力,多方主力,空方主力,0广1),COLOR545454;
DRAWTEXT(多方主力>REF(多方主力,1)ANDREF(REF(多方主力,1),1)>REF(多
方主力,1)。'n
DRAWTEXT(多方主力vREF(多方主力,1)ANDREF(REF(多方主力,l),l)vREF(多
方主力,1),0;降');
B:REF(C,BARSLAST(CROSS(多头,多方主力))),NODRAW;
B涨:(C-B)*100/B,NODRAW;
B天:BARSLAST(CROSS(多头,多方主力)),NODRAW;
B均:B涨/B天,NODRAW;
双B涨跌:(B・REF(B,1))/REF(B,1)*100,NODRAW;
升:多方主力>REF(多方主力,1)ANDREF(REF(多方主力,1),1)>REF(多方主
力Z1),NODRAW;
[源码注释]通达信公式动态翻译结果
输出MA5:收盘价的5日简单移动平均
输出MA10:收盘价的10日简单移动平均
输出MA20:收盘价的20日简单移动平均
ZT赋值:收盘价/1日前的收盘价>1.097
XH赋值:ZT的13日过滤
BH赋值:上次ZT距今天数
CZ赋值:BH日前的最高价-BH日前的最低价
VARZT赋值:上次收盘价/1日前的收盘价>1.097距今天数
当满足条件VARZT=2时,在最低价*0.97和最低价*0.98位置之间画柱状线,宽度为6,0不为0则画空心柱.,画红色
当满足条件VARZT=2时,在最低价*0.95位置书写文字,画红色
当满足条件VARZT=4时,在最高价*1.03和最高价*1.02位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR006600
当满足条件VARZT=4时,在最高价*1.06位置书写文字,画黄色
当满足条件VARZT=7时,在最低价*0.97和最低价*0.98位置之间画柱状线,宽度为8,0不为0则画空心柱.,画红色
当满足条件VARZT=7时,在最低价*0.95位置书写文字,画红色
当满足条件VARZT=12时,在最高价*1.03和最高价*1.02位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR006600
当满足条件VARZT=12时,在最高价*1.06位置书写文字,画黄色
当满足条件VARZT=20时,在最低价*0.97和最低价*0.98位置之间画柱状线,宽度为8,0不为0则画空心柱.,画红色
当满足条件VARZT=20时,在最低价*0.95位置书写文字,画红色
当满足条件VARZT=33时,在最高价*1.03和最高价*1.02位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR006600
当满足条件VARZT=33时,在最高价*1.06位置书写文字,画黄色
当满足条件VARZT=54时,在最低价*0.97和最低价*0.98位置之间画柱状线,宽度为8,0不为0则画空心柱.,画红色
当满足条件VARZT=54时,在最低价*0.95位置书写文字,画红色
当满足条件VARZT=88时,在最高价*1.03和最高价*1.02位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR006600
当满足条件VARZT=88时,在最高价*1.06位置书写文字,画黄色
当满足条件VARZT=143时,在最低价*0.97和最低价*0.98位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLORCCFFFF
当满足条件VARZT=143时,在最低价*0.95位置书写文字,画黄色
当满足条件VARZT=232时,在最高价*1.03和最高价*1.02位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLORFF0033
当满足条件VARZT=232时,在最高价*1.06位置书写文字,画黄色
当满足条件VARZT=376时,在最低价*0.97和最低价*0.98位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLORFF9966
当满足条件VARZT=376时,在最低价*0.95位置书写文字,画黄色
推荐阅读:通达信主力资金进入指标公式
VAR2:=(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6))*100);
VAR3:=(((CLOSE-MA(CLOSE,12))/MA(CLOSE,12))*100);
VAR4:=(((CLOSE-MA(CLOSE,24))/MA(CLOSE,24))*100);
VAR5:=(((VAR2+(2*VAR3))+(3*VAR4))/6);
VAR6:=MA(VAR5,3);
开始控盘:=STICKLINE((VAR6<=(0-10)),0,(0-20),3.5,0),COLOR00AAFF;
STICKLINE((VAR6<=(0-10)),0,(0-20),3.5,0),COLOR0044FF;
STICKLINE((VAR6<=(0-10)),0,(0-20),2.5,0),COLOR0088FF;
STICKLINE((VAR6<=(0-10)),0,(0-20),3,0),COLOR00AAFF;
VAR1:=EMA(EMA(CLOSE,3),1);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00;
STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400;
STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800;
STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;
主力出货:0,COLORFFAA00;
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,3.5,0),COLOR000088;
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,2.5,0),COLOR0000AA;
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,1.5,0),COLOR0000CC;
STICKLINE(控盘>REF(控盘,3)AND控盘>0,控盘,0,1,0),COLOR0000EE;
主力吸货:0,COLOR0000FF;
STICKLINE(控盘0,控盘,0,3.5,0),COLOR008800;
STICKLINE(控盘0,控盘,0,2.5,0),COLOR00AA00;
STICKLINE(控盘0,控盘,0,1.5,0),COLOR00CC00;
STICKLINE(控盘0,控盘,0,1,0),COLOR00EE00;
STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;
STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;
STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;
STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;
对倒出货洗盘:0,COLOR00FF00;
黄色底部吸货:0,COLORYELLOW;
DRAWTEXT(CROSS(控盘,0),0-3,'买。追'),COLORFF00FF;
DRAWTEXT(CROSS(0,控盘),0-0,'卖'),COLORGREEN;
DATA:=5;
{多头买入}DRAWICON(ZIG(3,DATA)>REF(ZIG(3,DATA),1)
ANDREF(ZIG(3,DATA),1)<=REF(ZIG(3,DATA),2)
ANDREF(ZIG(3,DATA),2)<=REF(ZIG(3,DATA),3),L*0.98,1);
{多头卖出}DRAWICON(ZIG(3,DATA)<REF(ZIG(3,DATA),1)
ANDREF(ZIG(3,DATA),1)>=REF(ZIG(3,DATA),2)
ANDREF(ZIG(3,DATA),2)>=REF(ZIG(3,DATA),3),H*1.02,2);
A1:30,COLORWHITE;
A2:50,COLORRED;
A3:60,POINTDOT,COLORYELLOW;
A4:70,POINTDOT,COLORGREEN;
A5:80,COLORRED;
TYP:=AMOUNT/VOL/100;
V1:=SUM(IF(TYP>REF(TYP,1),TYP*VOL,0),14)/SUM(IF(TYP<REF(TYP,1),TYP*VOL,0),14
);
MFI:=100-(100/(1+V1));
资金流向:EMA(MFI,5)COLORBLUE;
IF(资金流向<50,资金流向,DRAWNULL)COLORGREEN;
IF(资金流向>80,资金流向,DRAWNULL)COLORMAGENTA;
IF(资金流向<80and资金流向>60,资金流向,DRAWNULL),COLORRED;
IF(资金流向>50AND资金流向<=60,资金流向,DRAWNULL)COLORYELLOW
评论(0)