通达信上帝视角副图指标 股价涨跌一目了然 主力无处遁形 源码
当前获利:=WINNER(C)*100,COLORAAAAFF,STICK,NODRAW;
赚10%:WINNER(C/1.1)*100,LINETHICK1;
赚20%:WINNER(C/1.2)*100,NODRAW,COLOR00FFFF;
赚30%:WINNER(C/1.3)*100,NODRAW,COLOR0000FF;
NSYJ1:= 当前获利- 赚10%;
STICKLINE(1,当前获利, 赚10%,-1,0)COLORAAAAFF,NODRAW;
STICKLINE(1,赚10%,赚20%,-1,0)COLOR0000CC;
STICKLINE(1,赚20%,赚30%,-1,0),COLOR00FFFF;
STICKLINE(1,赚30%,0,-1,0),COLORFF00FF;
亏10%:(1-WINNER(C/0.9))*100,NODRAW,COLORFFDD00;
亏20%:(1-WINNER(C/0.8))*100,NODRAW,COLOR00FF00;
亏30%:(1-WINNER(C/0.7))*100,NODRAW,COLORFFFFFF;
NSYJ2:=100-亏10%-当前获利;
STICKLINE(C>0, 100-亏10%,100-亏20%,-1,0),COLORFFDD00;
STICKLINE(C>0, 100-亏20%,100-亏30%,-1,0),COLOR00FF00;
STICKLINE(C>0, 100-亏30%,100,-1,0),COLORFFFFFF;
当前价获利盘%:当前获利,COLORYELLOW,LINETHICK1,NODRAW;
当日获利套牢:当前获利-REF(当前获利,1),NODRAW;
近5日获利比例:LWINNER(5,C)*100,COLORRED,NODRAW;
浮筹%:=NSYJ1+NSYJ2,NODRAW,COLORFF99FF;
NSYJ1,NODRAW,COLORFF99FF;
NSYJ2,NODRAW,COLORFF99FF;
老筹:PPART(30)*100,COLOR808080,LINETHICK4;
区间集中度:(WINNER(C*(1+0.05))-WINNER(C*(1-0.05)))*100,NODRAW;
40,DOTLINE,COLORLIMAGENTA;
70,DOTLINE;
12.5,CIRCLEDOT,COLORWHITE;
空仓:IF(SAR(10,2,20)>=H,100,DRAWNULL),CIRCLEDOT,COLORWHITE,LINETHICK4;
持股:IF(SAR(10,2,20)<=L,100,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK4;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:LWINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
当前获利赋值:C计算的获利盘比例*100,COLORAAAAFF,STICK,NODRAW
输出赚10%:C/1.1计算的获利盘比例*100,LINETHICK1
输出赚20%:C/1.2计算的获利盘比例*100,NODRAW,COLOR00FFFF
输出赚30%:C/1.3计算的获利盘比例*100,NODRAW,COLOR0000FF
NSYJ1赋值: 当前获利- 赚10%
当满足条件1时,在当前获利和 赚10%之间画柱状线
当满足条件1时,在赚10%和赚20%之间画柱状线
当满足条件1时,在赚20%和赚30%之间画柱状线
当满足条件1时,在赚30%和0之间画柱状线
输出亏10%:(1-C/0.9计算的获利盘比例)*100,NODRAW,COLORFFDD00
输出亏20%:(1-C/0.8计算的获利盘比例)*100,NODRAW,COLOR00FF00
输出亏30%:(1-C/0.7计算的获利盘比例)*100,NODRAW,COLORFFFFFF
NSYJ2赋值:100-亏10%-当前获利
当满足条件C>0时,在 100-亏10%和100-亏20%之间画柱状线
当满足条件C>0时,在 100-亏20%和100-亏30%之间画柱状线
当满足条件C>0时,在 100-亏30%和100之间画柱状线
输出当前价获利盘%:当前获利,画黄色,LINETHICK1,NODRAW
输出当日获利套牢:当前获利-1日前的当前获利,NODRAW
输出近5日获利比例:L5,C计算的获利盘比例*100,画红色,NODRAW
浮筹%赋值:NSYJ1+NSYJ2,NODRAW,COLORFF99FF
NSYJ1,NODRAW,COLORFF99FF
NSYJ2,NODRAW,COLORFF99FF
输出老筹:PPART(30)*100,COLOR808080,LINETHICK4
输出区间集中度:(C*(1+0.05计算的获利盘比例)-WINNER(C*(1-0.05)))*100,NODRAW
40,DOTLINE,COLORLIMAGENTA
70,DOTLINE
12.5,CIRCLEDOT,画白色
输出空仓:IF(SAR(10,2,20)>=H,100,DRAWNULL),CIRCLEDOT,画白色,LINETHICK4
输出持股:IF(SAR(10,2,20)<=L,100,DRAWNULL),CIRCLEDOT,画红色,LINETHICK4