当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:与狼共舞:主力资金流向指标
软件名称:[B]与狼共舞:主力资金流向指标[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:5.00 KB
官方主页:Home Page
更新时间:2017-12-01 02:27:15
软件简介:
与狼共舞:主力资金流向指标
建仓:主力资金进场;清仓:主力资金出逃.
1.主力流入
2.主力流出
3.主力净流入
4.多日主力资金流向
5.3日主力资金流向
6.5日主力资金流向
7.10日主力资金流向
8.20日主力资金流向
//jg:BIGBUYCOUNT1-BIGSELLCOUNT1+BIGBUYCOUNT2-BIGSELLCOUNT2;
//tD:=COUNT(jg,0);
//myd:=MIN(tD,60);
//机构:EMA(jg,myd)*myd/CAPITAL,colorff00ff;
//散户:-机构,Color22ff33;
//小单买:BIGBUYCOUNT3+WAITBUYCOUNT3;
//小单卖:BIGSELLCOUNT3+WAITSELLCOUNT3;
//小股民净买:=(小单买-小单卖)*100;
//小股民:=SUM(小股民净买,1);
//a:=(ZDMR[-1]+BDMR[-1])/10000*CLOSE;
b:=(ZDMC+BDMC)*CLOSE/10000;
a:=(ZDMR+BDMR)*CLOSE/10000;//主力资金流入金額
//b:=(ZDMC+BDMC)/10000*CLOSE;//主力资金流出金
//STICKLINE(a/100,0,a/100,5,8),color0000ff;//绘制主力买入柱状线
//STICKLINE(-b/100,0,-b/100,5,8),color00ff00;//绘制主力卖出柱状线
a1:=SUM(a,1),coloryellow;
b1:=-SUM(b,1),coloryellow;
ab:=a1+b1;//主力资金净量
a135:=MA(a1,135),coloryellow;
b135:=MA(b1,135),coloryellow;
a89:=MA(a1,89),coloryellow;
b89:=MA(b1,89),coloryellow;
a55:=MA(a1,55),coloryellow;
b55:=MA(b1,55),coloryellow;
a34:=MA(a1,34),coloryellow;
b34:=MA(b1,34),coloryellow;
a21:=MA(a1,21),coloryellow;
b21:=MA(b1,21),coloryellow;
a13:=MA(a1,13),coloryellow;
b13:=MA(b1,13),coloryellow;
a5:=MA(a1,5),coloryellow;
b5:=MA(b1,5),coloryellow;
a3:=MA(a1,3),coloryellow;
b3:=MA(b1,3),coloryellow;
STICKLINE(ab>0,0,ab,8,0),color0000ff;//绘制柱状线
STICKLINE(ab<0,0,ab,8,0),color00ff00;//绘制柱状线
AB2:EMA(a1,21),coloryellow;
AB3:EMA(b1,21),coloryellow;
//DRAWTEXT(CROSS(a5,a89),a89+5000,"!"),colorred;
//DRAWTEXT(CROSS(a89,a5),a89+5000,"!"),colorgreen;
//卖的策略
//量减价减
//V1:=REF(VOL,1)>MA(VOL,135);//昨天量大于135天均量
//V2:=VOL<REF(VOL,1);//今天的量小于昨天
//C1:=CLOSE<REF(CLOSE,1);//今天价小于昨天
//VC:=V1 AND V2 AND C1 AND REF(ab,1)>0 AND ab<0;
//DRAWTEXT(VC,ab-1000,"S"),colorred;//添加文字
//V11:=REF(VOL,1)>MA(VOL,135) AND VOL>=REF(VOL,1) AND CLOSE>REF(CLOSE,1) AND REF(ab,1)>0 AND ab<0;
//DRAWTEXT(V11,ab-1000,"S"),colorred;//添加文字
//DRAWTEXT(ab<b21,ab-300,"S"),colorred;//添加文字
DRAWTEXT(ab<b34 AND ab>b135,ab-600,"S"),colorred;//添加文字
DRAWTEXT(ab<b135,ab-1000,"S"),colorred;//添加文字
//一天主力资金流向:=SUM(ab,1),colorcyan;
//三日主力资金流向:=SUM(ab,3),colorcyan;
//五日主力资金流向:=SUM(ab,5),colorred;
//十日主力资金流向:=SUM(ab,10),colorwhite;
//二十日主力资金流向:=SUM(ab,20),colorlicyan;
//主力净量
主力净量:=TOSTRING('主力净量(手):',1);
主力净量值:=ab/C*1000;
DRAWTEXT_FIX(ISLASTBAR,0.60,0.6,0,主力净量),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.70,0.6,0,主力净量值),colormagenta;
//主力流入
主力流入:=TOSTRING('主力流入金額:',1);
主力流入值:=a1;
DRAWTEXT_FIX(ISLASTBAR,0.60,0.7,0,主力流入),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.70,0.7,0,主力流入值),colormagenta;
//主力流出
主力流出:=TOSTRING('主力流出金額:',1);
主力流出值:=b1;
DRAWTEXT_FIX(ISLASTBAR,0.60,0.8,0,主力流出),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.70,0.8,0,主力流出值),colormagenta;
//主力净流入
主力净流入:=TOSTRING('主力净流入金額:',1);
主力净流入值:=ab;
DRAWTEXT_FIX(ISLASTBAR,0.60,0.9,0,主力净流入),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.70,0.9,0,主力净流入值),colormagenta;
//3日主力资金流向
三日主力资金流向:=TOSTRING('3日主力资金流向:',1);
三日主力资金流向值:=TOSTRING(SUM(ab,3),2);
DRAWTEXT_FIX(ISLASTBAR,0.80,0.6,0,三日主力资金流向),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.90,0.6,0,三日主力资金流向值),colormagenta;
//5日主力资金流向
五日主力资金流向:=TOSTRING('5日主力资金流向:',1);
五日主力资金流向值:=TOSTRING(SUM(ab,5),2);
DRAWTEXT_FIX(ISLASTBAR,0.80,0.7,0,五日主力资金流向),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.90,0.7,0,五日主力资金流向值),colormagenta;
//10日主力资金流向
十日主力资金流向:=TOSTRING('10日主力资金流向:',1);
十日主力资金流向值:=TOSTRING(SUM(ab,10),2);
DRAWTEXT_FIX(ISLASTBAR,0.80,0.8,0,十日主力资金流向),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.90,0.8,0,十日主力资金流向值),colormagenta;
//20日主力资金流向
二十日主力资金流向:=TOSTRING('20日主力资金流向:',1);
二十日主力资金流向值:=TOSTRING(SUM(ab,20),2);
DRAWTEXT_FIX(ISLASTBAR,0.80,0.9,0,二十日主力资金流向),colormagenta;
DRAWTEXT_FIX(ISLASTBAR,0.90,0.9,0,二十日主力资金流向值),colormagenta;
//数据回测
//11.量增价增主力增,次日增价
//V1:=REF(VOL,2)>REF(MA(VOL,135),1);//昨天量大于135天均量
//V2:=REF(VOL,1)>REF(VOL,2);//量增
//C1:=REF(CLOSE,1)>REF(CLOSE,2);//价增
//Z1;=ab>0;//主力增
//VCZ:=V1 AND V2 AND C1;
//D1:=DOWNNDAY(CLOSE,1)=1 AND UPNDAY(CLOSE,1)=1;
//VC:=VCZ AND D1;
//IF(D1=1){
//DRAWTEXT(VC,ab-1000,"S"),colorred;//添加文字
//}
//12.量增价增主力增,次日增减
//21.量增价增主力减,次日增价
//22.量增价增主力减,次日增减
//31.量增价减主力减,次日增价
//32.量增价减主力减,次日增减
//41.量减价增主力增,次日增价
//42.量减价增主力增,次日增减
//51.量减价增主力减,次日增价
//52.量减价增主力减,次日增减
//61.量减价减主力减,次日增价
//62.量减价减主力减,次日增减
[url=http://www.70822.com/soft/sort013/sort036/down-118769.html]与狼共舞:主力资金流向指标[/url]