以下是通达信盈亏比例副图指标 源码

{筹码分布}
当前获利:=WINNER(C)*100,COLORAAAAFF,STICK,NODRAW;
赚10%:WINNER(C/1.1)*100,COLORRED,NODRAW;
赚20%:WINNER(C/1.2)*100,COLORYELLOW,NODRAW;
赚30%:WINNER(C/1.3)*100,COLORMAGENTA,NODRAW;
 R10:=当前获利-赚10%;
 STICKLINE(1,当前获利,赚10%,-1,0),COLORRED,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,COLORWHITE,NODRAW;
亏20%:(1-WINNER(C/0.8))*100,COLORGREEN,NODRAW;
亏30%:(1-WINNER(C/0.7))*100,COLORCYAN,NODRAW;
 S10:=100-亏10%-当前获利;
STICKLINE(C>0,100-亏10%,100-亏20%,-1,0),COLORCYAN;
 STICKLINE(C>0,100-亏20%,100-亏30%,-1,0),COLORGREEN;
 STICKLINE(C>0,100-亏30%,100,-1,0),COLORWHITE;

当前价获利盘%:当前获利,COLORYELLOW,LINETHICK1,NODRAW;
当日获利套牢:当前获利-REF(当前获利,1),NODRAW;

近5日获利比例:LWINNER(5,C)*100,COLORRED,NODRAW;
浮筹:R10+S10,DOTLINE,COLORWHITE,LINETHICK2;
老筹:PPART(30)*100,COLORLIRED,LINETHICK3;

{区间集中度:(WINNER(C*(1+0.05))-WINNER(C*(1-0.05)))*100,NODRAW;
 40,DOTLINE,COLORLIMAGENTA;
 70,DOTLINE;
 12.5,CIRCLEDOT,COLORWHITE;}
 {SAR}
 {持币:IF(SAR(10,2,20)>=H,100,DRAWNULL),CIRCLEDOT,COLORWHITE,LINETHICK4;
持股:IF(SAR(10,2,20)<=L,100,DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK4;};
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。