通达信【主升AI量化】副图指标 从副图中找寻蛛丝马迹 源码附图
M:=90;
N:=45;
主力仓位%:=100-(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,NODRAW,COLORYELLOW;
获利1:WINNER(CLOSE*0.9)*100,COLORRED,NODRAW;
浮筹1:(WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9)/WINNER(HHV(HIGH,0)))*100,COLORYELLOW,NODRAW;
套牢1:100-浮筹1-获利1,COLORGREEN,NODRAW;
套:STICKLINE(套牢1>0.1,浮筹1+获利1,100,4,0),COLORGREEN;
浮:STICKLINE(浮筹1,获利1,浮筹1+获利1,4,0),COLORYELLOW;
获:STICKLINE(获利1,0,获利1,4,0),COLORMAGENTA;
STICKLINE(获利1>=60,0,获利1,4,0),COLORRED;
筹10:PWINNER(10,C)*100,COLORWHITE,NODRAW;
筹30:PWINNER(30,C)*100,COLORRED,LINETHICK2,NODRAW;
主力:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORLIRED,LINETHICK2,NODRAW;
获利盘:WINNER(CLOSE)*100,COLORRED,NODRAW;
增:获利盘-REF(获利盘,1),NODRAW;
HJ_1:=(WINNER(CLOSE*1.075)-WINNER(CLOSE*0.925))*100;
近邻浮筹:HJ_1/WINNER(HHV(HIGH,0)),COLORYELLOW,NODRAW;
DRAWICON(CROSS(筹30,近邻浮筹),获利盘,1);
纵横:获利盘-近邻浮筹,NODRAW,COLORWHITE;
极强:=90,POINTDOT,COLORBLUE;
强势:=65,POINTDOT,COLORYELLOW;
强弱分界:=50,COLORBLUE;
零位线:=0,COLORBLUE;
主筹估算:=EMA(WINNER(C)*70,3)*C,LINETHICK2,COLORRED;
散筹估算:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3)*C,LINETHICK1,COLORGREEN;
涨停数:="880006$C",NODRAW;
EE1:=CON2STR(涨停数,0);
EE2:=STRCAT(EE1,' 家');
EE3:=STRCAT('涨停数: ',EE2);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ISLASTBAR,0.11,0.06,0,EE3),COLORRED;
跌停数:="880006$O",NODRAW;
FE1:=CON2STR(跌停数,0);
FE2:=STRCAT(FE1,' 家');
FE3:=STRCAT('跌停数: ',FE2);
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND ISLASTBAR,0.21,0.06,0,FE3),COLORBLACK;
VAR1:=IF(YEAR>=2038 AND MONTH>=1,0,1);
VAR2:=REF(LOW,1)*VAR1;
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;
VAR5:=LLV(LOW,30)*VAR1;
VAR6:=HHV(VAR4,30)*VAR1;
VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;
吸筹:=IF(VAR8>100,100,VAR8)*VAR1,COLORRED;
庄家吸筹:STICKLINE(吸筹>-150,0,吸筹,8,0),COLORBLACK;
散户:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORFFFF00,LINETHICK1;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
庄家:EMA(J,6),COLORFF00FF,LINETHICK1;
SF:(WINNER(C*1.1)-WINNER(C*0.9))/WINNER(HHV(H,0))*100,NODRAW;
ZL:=100-SF;
DRAWNUMBER_FIX(ISLASTBAR AND ZL>0,0.95,0.5,0,ZL),COLORBLACK;
DRAWTEXT_FIX(ZL>0,0.99,0.5,0,'%'),COLORBLACK;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:PWINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
M赋值:90
N赋值:45
主力仓位%赋值:100-(C*1.1计算的获利盘比例-WINNER(C*0.9))/WINNER(0日内H最高值)*100,NODRAW,画黄色
输出获利1:收盘价*0.9计算的获利盘比例*100,COLORRED,NODRAW
输出浮筹1:(收盘价*1.1计算的获利盘比例-WINNER(收盘价*0.9)/WINNER(0日内最高价最高值))*100,画黄色,NODRAW
输出套牢1:100-浮筹1-获利1,COLORGREEN,NODRAW
当满足条件套牢1>0.1时,在浮筹1+获利1和100之间画柱状线
当满足条件浮筹1时,在获利1和浮筹1+获利1之间画柱状线
当满足条件获利1时,在0和获利1之间画柱状线
当满足条件获利1>=60时,在0和获利1之间画柱状线
输出筹10:P10,C计算的获利盘比例*100,画白色,NODRAW
输出筹30:P30,C计算的获利盘比例*100,COLORRED,LINETHICK2,NODRAW
输出主力:EMA(100*(收盘价-34日内最低价最低值)/(34日内最高价最高值-34日内最低价最低值),3),COLORLIRED,LINETHICK2,NODRAW
获利盘:收盘价计算的获利盘比例*100,COLORRED,NODRAW
输出增:获利盘-1日前的获利盘,NODRAW
HJ_1赋值:(收盘价*1.075计算的获利盘比例-WINNER(收盘价*0.925))*100
近邻浮筹:HJ_1/0日内最高价最高值计算的获利盘比例,画黄色,NODRAW
DRAWICON(筹30上穿近邻浮筹,获利盘,1)
输出纵横:获利盘-近邻浮筹,NODRAW,画白色
极强赋值:90,POINTDOT, 画蓝色
强势赋值:65,POINTDOT,画黄色
强弱分界赋值:50, 画蓝色
零位线赋值:0, 画蓝色
主筹估算赋值:EMA(C计算的获利盘比例*70,3)*C,LINETHICK2,COLORRED
散筹估算赋值:EMA((C*1.1计算的获利盘比例-WINNER(C*0.9))*70,3)*C,LINETHICK1,COLORGREEN
涨停数赋值:"880006$C",NODRAW
EE1赋值:CON2STR(涨停数,0)
EE2赋值:STRCAT(EE1,' 家')
EE3:=STRCAT('输出涨停数: ',EE2)
当满足条件CURRBARSCOUNT=1 AND ISLASTBAR时,在横轴0.11纵轴0.06位置书写文字
跌停数赋值:"880006$O",NODRAW
FE1赋值:CON2STR(跌停数,0)
FE2赋值:STRCAT(FE1,' 家')
FE3:=STRCAT('输出跌停数: ',FE2)
当满足条件CURRBARSCOUNT=1 AND ISLASTBAR时,在横轴0.21纵轴0.06位置书写文字
如果YEAR>=2038 AND MONTH>=1返回0否则返回1
VAR2赋值:1日前的最低价*VAR1
VAR3赋值:SMA(最低价-VAR2的绝对值,3,1)/SMA(最低价-VAR2和0较大值,3,1)*100*VAR1
如果收盘价*1.3返回VAR3*10否则返回VAR3/10
VAR5赋值:30日内最低价最低值*VAR1
VAR6赋值:30日内VAR4最高值*VAR1
VAR7赋值:IF(收盘价的58日简单移动平均,1,0)*VAR1
VAR8赋值:EMA(IF(最低价<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1
如果VAR8>100返回100否则返回VAR8
当满足条件吸筹>-150时,在0和吸筹之间画柱状线
输出散户:100*(M日内最高价最高值-收盘价)/(M日内最高价最高值-M日内最低价最低值),COLORFFFF00,LINETHICK1
RSV赋值:(收盘价-N日内最低价最低值)/(N日内最高价最高值-N日内最低价最低值)*100
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
J赋值:3*K-2*D
输出庄家:J的6日指数移动平均,COLORFF00FF,LINETHICK1
输出SF:(C*1.1计算的获利盘比例-WINNER(C*0.9))/WINNER(0日内H最高值)*100,NODRAW
ZL赋值:100-SF
当满足条件ISLASTBAR AND ZL>0时,在横轴0.95纵轴0.5位置书写数字
当满足条件ZL>0时,在横轴0.99纵轴0.5位置书写文字