通达信【游资控盘量化】监控主力操盘全过程 揭示中信海直等主升浪的秘密 源码附图
RSV:=(C-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;
量价擒牛:=(TFXXS-REF(TFXXS,1));
量价起爆:=量价擒牛>0 AND 量价擒牛>REF(量价擒牛,1);
STICKLINE(量价擒牛>0 AND 量价擒牛>REF(量价擒牛,1),100,量价擒牛+100,2.5,0),COLOR0000AA;
STICKLINE(量价擒牛>0 AND 量价擒牛>REF(量价擒牛,1),100,量价擒牛+100,1.5,0),COLOR0022CC;
STICKLINE(量价擒牛>0 AND 量价擒牛>REF(量价擒牛,1),100,量价擒牛+100,0.5,0),COLOR0055FF;
STICKLINE(量价擒牛<0 AND 量价擒牛>REF(量价擒牛,1),100,量价擒牛+100,2.5,0),COLORAA00BB;
STICKLINE(量价擒牛<0 AND 量价擒牛>REF(量价擒牛,1),100,量价擒牛+100,1.5,0),COLORCC22BB;
STICKLINE(量价擒牛<0 AND 量价擒牛>REF(量价擒牛,1),100,量价擒牛+100,0.5,0),COLORFF55BB;
STICKLINE(量价擒牛>0 AND 量价擒牛<=REF(量价擒牛,1),100,量价擒牛+100,2.5,0),COLOR00AAFF;
STICKLINE(量价擒牛>0 AND 量价擒牛<=REF(量价擒牛,1),100,量价擒牛+100,1.5,0),COLOR00CCFF;
STICKLINE(量价擒牛>0 AND 量价擒牛<=REF(量价擒牛,1),100,量价擒牛+100,0.5,0),COLOR00FFFF;
STICKLINE(量价擒牛<0 AND 量价擒牛<=REF(量价擒牛,1),100,量价擒牛+100,2.5,0),COLORFF7700;
STICKLINE(量价擒牛<0 AND 量价擒牛<=REF(量价擒牛,1),100,量价擒牛+100,1.5,0),COLORFFAA22;
STICKLINE(量价擒牛<0 AND 量价擒牛<=REF(量价擒牛,1),100,量价擒牛+100,0.5,0),COLORFFFF55;
STICKLINE(量价擒牛=0 AND REF(量价擒牛,1)>=0,100,量价擒牛+100,8,0),COLORBROWN;
STICKLINE(量价擒牛=0 AND REF(量价擒牛,1)<0,100,量价擒牛+100,8,0),COLORWHITE;
ZLCM:=EMA(WINNER(C)*70,3);
SHCM:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,3);
ZSHTL:=SHCM/(ZLCM+SHCM)*100;
起飞KP:=ZLCM/(ZLCM+SHCM)*100;
ZSHJJ:=EMA(ZSHTL,55);
起飞JJ:=EMA(起飞KP,55);
黄金坑:IF(起飞KP<=10,起飞KP,起飞KP),COLORMAGENTA,NODRAW;
STICKLINE(C>0,ZSHTL,起飞KP,2,0),COLOR808080;
STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLORC0C0C0;
STICKLINE(起飞KP>REF(起飞KP,1) AND 起飞KP>20,起飞KP,20,2.5,0 ),COLORAA00BB;
STICKLINE(起飞KP>REF(起飞KP,1) AND 起飞KP>20,起飞KP,20,1.5,0 ),COLORCC22BB;
STICKLINE(起飞KP>REF(起飞KP,1) AND 起飞KP>20,起飞KP,20,0.5,0 ),COLOREE44BB;
STICKLINE(起飞KP<=REF(起飞KP,1) AND 起飞KP>20,起飞KP,20,2.5,0 ),COLORFF7700;
STICKLINE(起飞KP<=REF(起飞KP,1) AND 起飞KP>20,起飞KP,20,1.5,0 ),COLORFFAA22;
STICKLINE(起飞KP<=REF(起飞KP,1) AND 起飞KP>20,起飞KP,20,0.5 ,0 ),COLORFFFF55;
STICKLINE(起飞KP>REF(起飞KP,1) AND 起飞KP<20,起飞KP,0,2.5,0 ),COLOR131FFD;
STICKLINE(起飞KP>REF(起飞KP,1) AND 起飞KP<20,起飞KP,0,1.5,0 ),COLOR5050FF;
STICKLINE(起飞KP>REF(起飞KP,1) AND 起飞KP<20,起飞KP,0,0.5,0 ),COLOR7E7EFF;
STICKLINE(起飞KP<=REF(起飞KP,1) AND 起飞KP<20,起飞KP,0,2.5,0 ),COLORAA0000;
STICKLINE(起飞KP<=REF(起飞KP,1) AND 起飞KP<20,起飞KP,0,1.5,0 ),COLORCC0000;
STICKLINE(起飞KP<=REF(起飞KP,1) AND 起飞KP<20,起飞KP,0,0.5 ,0 ),COLORFF0000;
STICKLINE(起飞JJ>REF(起飞JJ,1),起飞KP,起飞JJ,2.5,0 ),COLOR00AAFF;
STICKLINE(起飞JJ>REF(起飞JJ,1),起飞KP,起飞JJ,1.5,0 ),COLOR00CCFF;
STICKLINE(起飞JJ>REF(起飞JJ,1),起飞KP,起飞JJ,0.5,0 ),COLOR00FFFF;
STICKLINE(起飞KP>起飞JJ AND 起飞JJ>50,起飞KP,起飞JJ,2.5,0 ),COLOR0000AA;
STICKLINE(起飞KP>起飞JJ AND 起飞JJ>50,起飞KP,起飞JJ,1.5,0 ),COLOR0022CC;
STICKLINE(起飞KP>起飞JJ AND 起飞JJ>50,起飞KP,起飞JJ,0.5 ,0 ),COLOR0055FF;
STICKLINE(起飞KP>起飞JJ AND 起飞JJ<50 AND 起飞KP>50 AND 起飞JJ>REF(起飞JJ,1),起飞KP,50,2.5,0 ),COLOR0000AA;
STICKLINE(起飞KP>起飞JJ AND 起飞JJ<50 AND 起飞KP>50 AND 起飞JJ>REF(起飞JJ,1),起飞KP,50,1.5,0 ),COLOR0022CC;
STICKLINE(起飞KP>起飞JJ AND 起飞JJ<50 AND 起飞KP>50 AND 起飞JJ>REF(起飞JJ,1),起飞KP,50,0.5 ,0 ),COLOR0055FF;
STICKLINE(起飞KP>80,起飞KP,起飞KP-(起飞KP-80)/2,2.5,0),COLOR00AA00;
STICKLINE(起飞KP>80,起飞KP,起飞KP-(起飞KP-80)/2,1.5,0),COLOR00CC00;
STICKLINE(起飞KP>80,起飞KP,起飞KP-(起飞KP-80)/2,0.5,0),COLOR00FF00;
STICKLINE(起飞KP<=10,起飞KP,0,5,0),COLORDD00DD;
100,COLORRED;
80,COLORGREEN;
DRAWTEXT(ISLASTBAR,100,' 资金进出线'),COLOR0000CC;
DRAWTEXT(ISLASTBAR,80,' 量价突破线'),COLOR669900;
AA:=C>MA(C,60);
量价:=3*SMA((C-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -2*SMA(SMA((C-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1) NODRAW;
量价共振:量价,COLORWHITE,LINETHICK3;
主线:=(((量价-LLV(量价,27))/(HHV(量价,27)-LLV(量价,27)))*(4))*(25) ,COLORCYAN,NODRAW;
快线:=(((量价-LLV(量价,9))/(HHV(量价,9)-LLV(量价,9)))*(4))*(25) ,COLOR55AAFF,NODRAW;
DRAWICON(CROSS(量价共振,80),80*1.002,9);
DRAWICON(CROSS(快线,80) AND AA AND 量价擒牛>0,量价共振,23);
{游资控盘}
N:=35;
M:=35;
N1:=3;
游资控盘1:=(HHV(H,N)-C)/(HHV(H,N)-LLV(LOW,N))*100- M;
游资控盘2:=SMA(游资控盘1,N,1)+100;
游资控盘3:=(C-LLV(L,N))/(HHV(H,N)- LLV(L,N))*100;
游资控盘4:=SMA(游资控盘3,3,1);
游资控盘5:=SMA(游资控盘4,3,1)+100;
游资控盘6:=游资控盘5-游资控盘2;
游资控盘:(IF(游资控盘6>N1,游资控盘6-N1,0))*2.5,COLORYELLOW;
控盘度:=100,COLORRED;
STICKLINE(CROSS(游资控盘,控盘度),0,游资控盘,4,0),COLORYELLOW;
控盘主升:游资控盘>100 AND 游资控盘>REF(游资控盘,1),NODRAW;
DRAWICON(CROSS(游资控盘,控盘度),游资控盘,34);
DRAWICON(CROSS(游资控盘,控盘度),游资控盘*0.8,10);
STICKLINE(游资控盘>100,0,游资控盘,0.0,0),COLORRED;
STICKLINE(游资控盘>100 AND 控盘主升=0,0,游资控盘,0.0,0),COLORLIGREEN;
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
RSV赋值:(C-13日内最低价最低值)/(13日内最高价最高值-13日内最低价最低值)*100
RSV的3日[1日权重]移动平均
K1的3日[1日权重]移动平均
KK赋值:INTPART(K1)
DD赋值:INTPART(D1)
TFXXS赋值:KK+DD
量价擒牛赋值:(TFXXS-1日前的TFXXS)
量价起爆赋值:量价擒牛>0 AND 量价擒牛>1日前的量价擒牛
STICKLINE(量价擒牛>0 AND 量价擒牛>1日前的量价擒牛,100,量价擒牛+100,2.5,0),COLOR0000AA
STICKLINE(量价擒牛>0 AND 量价擒牛>1日前的量价擒牛,100,量价擒牛+100,1.5,0),COLOR0022CC
STICKLINE(量价擒牛>0 AND 量价擒牛>1日前的量价擒牛,100,量价擒牛+100,0.5,0),COLOR0055FF
STICKLINE(量价擒牛<0 AND 量价擒牛>1日前的量价擒牛,100,量价擒牛+100,2.5,0),COLORAA00BB
STICKLINE(量价擒牛<0 AND 量价擒牛>1日前的量价擒牛,100,量价擒牛+100,1.5,0),COLORCC22BB
STICKLINE(量价擒牛<0 AND 量价擒牛>1日前的量价擒牛,100,量价擒牛+100,0.5,0),COLORFF55BB
STICKLINE(量价擒牛>0 AND 量价擒牛<=1日前的量价擒牛,100,量价擒牛+100,2.5,0),COLOR00AAFF
STICKLINE(量价擒牛>0 AND 量价擒牛<=1日前的量价擒牛,100,量价擒牛+100,1.5,0),COLOR00CCFF
STICKLINE(量价擒牛>0 AND 量价擒牛<=1日前的量价擒牛,100,量价擒牛+100,0.5,0),COLOR00FFFF
STICKLINE(量价擒牛<0 AND 量价擒牛<=1日前的量价擒牛,100,量价擒牛+100,2.5,0),COLORFF7700
STICKLINE(量价擒牛<0 AND 量价擒牛<=1日前的量价擒牛,100,量价擒牛+100,1.5,0),COLORFFAA22
STICKLINE(量价擒牛<0 AND 量价擒牛<=1日前的量价擒牛,100,量价擒牛+100,0.5,0),COLORFFFF55
STICKLINE(量价擒牛=0 AND 1日前的量价擒牛>=0,100,量价擒牛+100,8,0),COLORBROWN
STICKLINE(量价擒牛=0 AND 1日前的量价擒牛<0,100,量价擒牛+100,8,0),画白色
ZLCM赋值:EMA(C计算的获利盘比例*70,3)
SHCM赋值:EMA((C*1.1计算的获利盘比例-WINNER(C*0.9))*80,3)
ZSHTL赋值:SHCM/(ZLCM+SHCM)*100
起飞KP赋值:ZLCM/(ZLCM+SHCM)*100
ZSHJJ赋值:ZSHTL的55日指数移动平均
起飞JJ赋值:起飞KP的55日指数移动平均
如果起飞KP<=10返回起飞KP否则返回起飞KP
当满足条件C>0时,在ZSHTL和起飞KP之间画柱状线
STICKLINE(ZSHJJ>1日前的ZSHJJ,ZSHTL,ZSHJJ,2,0),COLORC0C0C0
STICKLINE(起飞KP>1日前的起飞KP AND 起飞KP>20,起飞KP,20,2.5,0 ),COLORAA00BB
STICKLINE(起飞KP>1日前的起飞KP AND 起飞KP>20,起飞KP,20,1.5,0 ),COLORCC22BB
STICKLINE(起飞KP>1日前的起飞KP AND 起飞KP>20,起飞KP,20,0.5,0 ),COLOREE44BB
STICKLINE(起飞KP<=1日前的起飞KP AND 起飞KP>20,起飞KP,20,2.5,0 ),COLORFF7700
STICKLINE(起飞KP<=1日前的起飞KP AND 起飞KP>20,起飞KP,20,1.5,0 ),COLORFFAA22
STICKLINE(起飞KP<=1日前的起飞KP AND 起飞KP>20,起飞KP,20,0.5 ,0 ),COLORFFFF55
STICKLINE(起飞KP>1日前的起飞KP AND 起飞KP<20,起飞KP,0,2.5,0 ),COLOR131FFD
STICKLINE(起飞KP>1日前的起飞KP AND 起飞KP<20,起飞KP,0,1.5,0 ),COLOR5050FF
STICKLINE(起飞KP>1日前的起飞KP AND 起飞KP<20,起飞KP,0,0.5,0 ),COLOR7E7EFF
STICKLINE(起飞KP<=1日前的起飞KP AND 起飞KP<20,起飞KP,0,2.5,0 ),COLORAA0000
STICKLINE(起飞KP<=1日前的起飞KP AND 起飞KP<20,起飞KP,0,1.5,0 ),COLORCC0000
STICKLINE(起飞KP<=1日前的起飞KP AND 起飞KP<20,起飞KP,0,0.5 ,0 ),COLORFF0000
STICKLINE(起飞JJ>1日前的起飞JJ,起飞KP,起飞JJ,2.5,0 ),COLOR00AAFF
STICKLINE(起飞JJ>1日前的起飞JJ,起飞KP,起飞JJ,1.5,0 ),COLOR00CCFF
STICKLINE(起飞JJ>1日前的起飞JJ,起飞KP,起飞JJ,0.5,0 ),COLOR00FFFF
当满足条件起飞KP>起飞JJ AND 起飞JJ>50时,在起飞KP和起飞JJ之间画柱状线
当满足条件起飞KP>起飞JJ AND 起飞JJ>50时,在起飞KP和起飞JJ之间画柱状线
当满足条件起飞KP>起飞JJ AND 起飞JJ>50时,在起飞KP和起飞JJ之间画柱状线
STICKLINE(起飞KP>起飞JJ AND 起飞JJ<50 AND 起飞KP>50 AND 起飞JJ>1日前的起飞JJ,起飞KP,50,2.5,0 ),COLOR0000AA
STICKLINE(起飞KP>起飞JJ AND 起飞JJ<50 AND 起飞KP>50 AND 起飞JJ>1日前的起飞JJ,起飞KP,50,1.5,0 ),COLOR0022CC
STICKLINE(起飞KP>起飞JJ AND 起飞JJ<50 AND 起飞KP>50 AND 起飞JJ>1日前的起飞JJ,起飞KP,50,0.5 ,0 ),COLOR0055FF
STICKLINE(起飞KP>80,起飞KP,起飞KP-(起飞KP-80)/2,2.5,0),COLOR00AA00
STICKLINE(起飞KP>80,起飞KP,起飞KP-(起飞KP-80)/2,1.5,0),COLOR00CC00
STICKLINE(起飞KP>80,起飞KP,起飞KP-(起飞KP-80)/2,0.5,0),COLOR00FF00
当满足条件起飞KP<=10时,在起飞KP和0之间画柱状线
100,画红色
80,画绿色
当满足条件ISLASTBAR时,在100和' 资金进出线'位置书写文字
当满足条件ISLASTBAR时,在80和' 量价突破线'位置书写文字
AA赋值:C>C的60日简单移动平均
量价赋值:3*SMA((C-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100,5,1) -2*SMA(SMA((C-27日内最低价最低值)/(27日内最高价最高值-27日内最低价最低值)*100,5,1),3,1) NODRAW
量价共振:量价,画白色, 线宽为3
主线赋值:(((量价-27日内量价最低值)/(27日内量价最高值-27日内量价最低值))*(4))*(25) ,画青色,NODRAW
快线赋值:(((量价-9日内量价最低值)/(9日内量价最高值-9日内量价最低值))*(4))*(25) ,COLOR55AAFF,NODRAW
DRAWICON(量价共振上穿80,80*1.002,9)
DRAWICON(快线上穿80 AND AA AND 量价擒牛>0,量价共振,23)
{游资控盘}
N赋值:35
M赋值:35
N1赋值:3
游资控盘1赋值:(N日内H最高值-C)/(N日内H最高值-N日内最低价最低值)*100- M
游资控盘1的N日[1日权重]移动平均
游资控盘3赋值:(C-N日内L最低值)/(N日内H最高值- N日内L最低值)*100
游资控盘3的3日[1日权重]移动平均
游资控盘4的3日[1日权重]移动平均
游资控盘6赋值:游资控盘5-游资控盘2
如果游资控盘6>N1返回游资控盘6-N1否则返回0
控盘度赋值:100,画红色
STICKLINE(游资控盘上穿控盘度,0,游资控盘,4,0),画黄色
输出控盘主升:游资控盘>100 AND 游资控盘>1日前的游资控盘,NODRAW
DRAWICON(游资控盘上穿控盘度,游资控盘,34)
DRAWICON(游资控盘上穿控盘度,游资控盘*0.8,10)
当满足条件游资控盘>100时,在0和游资控盘之间画柱状线
当满足条件游资控盘>100 AND 控盘主升=0时,在0和游资控盘之间画柱状线