资金博弈指标公式源码
仿某操盘手资金博弈源码
原理解析:
JGV赋值:(BIGBUYCOUNT1+WAITBUYCOUNT1 - BIGSELLCOUNT1-WAITSELLCOUNT1)*成交量(手)/10000
DHV赋值:(BIGBUYCOUNT2+WAITBUYCOUNT2 - BIGSELLCOUNT2-WAITSELLCOUNT2)*成交量(手)/10000
ZHV赋值:(BIGBUYCOUNT3+WAITBUYCOUNT3 - BIGSELLCOUNT3-WAITSELLCOUNT3)*成交量(手)/10000
SHV赋值:(成交量(手)-JGV-DHV-ZHV)
输出机构资金:JGV的60日指数移动平均*60/当前流通股本(手),画洋红色
输出游资资金:DHV的60日指数移动平均*60/当前流通股本(手),COLOR3399FF
输出中户资金:ZHV的60日指数移动平均*60/当前流通股本(手),画青色
输出散户资金:SHV的60日指数移动平均*60/当前流通股本(手),画绿色
TIPTEXT(ISNULL(1日后的收盘价),0,' '),画红色
TIPTEXT(ISNULL(1日前的收盘价),0,'同花顺程序化交易')
源码:
中户资金:Line0,,1,0,1,5,16776960;
散户资金:Line0,,1,0,1,5,65280;
机构资金:Line0,,1,0,1,5,16711935;
0,0.000000;
0,0.000000;
0,0.000000;
0,0.000000;
0;
0,0.000000//#@@FUNCSPEC@=source
JGV:=(BIGBUYCOUNT1+WAITBUYCOUNT1 - BIGSELLCOUNT1-WAITSELLCOUNT1)*VOL/10000;
DHV:=(BIGBUYCOUNT2+WAITBUYCOUNT2 - BIGSELLCOUNT2-WAITSELLCOUNT2)*VOL/10000;
ZHV:=(BIGBUYCOUNT3+WAITBUYCOUNT3 - BIGSELLCOUNT3-WAITSELLCOUNT3)*VOL/10000;
SHV:=(VOL-jgv-dhv-zhv);
机构资金:EMA(JGV,60)*60/CAPITAL,colormagenta;
游资资金:EMA(DHV,60)*60/CAPITAL,COLOR3399FF ;
中户资金:EMA(ZHV,60)*60/CAPITAL,colorcyan;
散户资金:EMA(SHV,60)*60/CAPITAL,colorgreen;
TIPTEXT(ISNULL(REFX(CLOSE,1)),0,' '),colorred;
TIPTEXT(ISNULL(REF(CLOSE,1)),0,'');