通达信立体宝塔指标公式

 

B1:=REF(C,1);B2:=REF(C,2);B3:=REF(C,3);B4:=REF(C,4);
CMAX:=MAX(MAX(MAX(C,B1),B2),B3);CMIN:=MIN(MIN(MIN(C,B1),B2),B3);
STICKLINE(C=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND C>=B2 OR
B2=CMAX AND B3=CMIN AND C>=B1 OR B3=CMAX AND C>=B1 AND C>=B2,B1,C,8,0),COLOR000099;
STICKLINE(C=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND C>=B2 OR
B2=CMAX AND B3=CMIN AND C>=B1 OR B3=CMAX AND C>=B1 AND C>=B2,B1,C,5,0),COLOR0000BB;
STICKLINE(C=CMAX AND (B1>=B2 OR B1>=B3) OR B1=CMAX AND (B2=CMIN OR B3=CMIN) AND C>=B2 OR
B2=CMAX AND B3=CMIN AND C>=B1 OR B3=CMAX AND C>=B1 AND C>=B2,B1,C,3,0),COLOR0000FF;
STICKLINE(C=CMAX AND B1=CMIN,B2,C,8,0),COLOR000099;
STICKLINE(C=CMAX AND B1=CMIN,B2,C,5,0),COLOR0000BB;
STICKLINE(C=CMAX AND B1=CMIN,B2,C,3,0),COLOR0000FF;
STICKLINE(C=CMIN AND (B1<B2 OR B1<B3) OR B1=CMIN AND (B2=CMAX OR B3=CMAX) AND C<B2 OR
B2=CMIN AND B3=CMAX AND C<B1 OR B3=CMIN AND C<B1 AND C<B2,B1,C,8,0),COLOR009900;
STICKLINE(C=CMIN AND (B1<B2 OR B1<B3) OR B1=CMIN AND (B2=CMAX OR B3=CMAX) AND C<B2 OR
B2=CMIN AND B3=CMAX AND C<B1 OR B3=CMIN AND C<B1 AND C<B2,B1,C,5,0),COLOR00BB00;
STICKLINE(C=CMIN AND (B1<B2 OR B1<B3) OR B1=CMIN AND (B2=CMAX OR B3=CMAX) AND C<B2 OR
B2=CMIN AND B3=CMAX AND C<B1 OR B3=CMIN AND C<B1 AND C<B2,B1,C,3,0),COLOR00FF00;
STICKLINE(B1=CMAX AND C=CMIN,B2,C,8,0),COLOR009900;
STICKLINE(B1=CMAX AND C=CMIN,B2,C,5,0),COLOR00BB00;
STICKLINE(B1=CMAX AND C=CMIN,B2,C,3,0),COLOR00FF00;
STICKLINE(B1=CMIN AND C>=B2 OR (B2=CMIN AND B1<=B3 OR
B3=CMIN AND B1<=B2) AND B2<B4 AND C>=B1,B1,B2,8,0),COLORFF9900;
STICKLINE(B1=CMIN AND C>=B2 OR (B2=CMIN AND B1<=B3 OR
B3=CMIN AND B1<=B2) AND B2<B4 AND C>=B1,B1,B2,5,0),COLORFFBB00;
STICKLINE(B1=CMIN AND C>=B2 OR (B2=CMIN AND B1<=B3 OR
B3=CMIN AND B1<=B2) AND B2<B4 AND C>=B1,B1,B2,3,0),COLORFFFF00;
STICKLINE(B1=CMAX AND C<B2 OR (B2=CMAX AND B1>B3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND C<B1,B1,B2,8,0),COLOR000099;
STICKLINE(B1=CMAX AND C<B2 OR (B2=CMAX AND B1>B3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND C<B1,B1,B2,5,0),COLOR0000BB;
STICKLINE(B1=CMAX AND C<B2 OR (B2=CMAX AND B1>B3 OR
B3=CMAX AND B1>B2) AND B2>=B4 AND C<B1,B1,B2,3,0),COLOR0000FF;




来函数检测结果如下
该公式没有未来函数


解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

B1赋值:1日前的收盘价
B2赋值:2日前的收盘价
B3赋值:3日前的收盘价
B4赋值:4日前的收盘价
CMAX赋值:收盘价和B1的较大值和B2的较大值和B3的较大值
CMIN赋值:收盘价和B1的较小值和B2的较小值和B3的较小值
当满足条件收盘价=CMAXAND(B1>=B2ORB1>=B3)ORB1=CMAXAND(B2=CMINORB3=CMIN)ANDC>=B2ORB2=CMAXANDB3=CMINANDC>=B1ORB3=CMAXANDC>=B1ANDC>=B2时,在B1和收盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR000099
当满足条件收盘价=CMAXAND(B1>=B2ORB1>=B3)ORB1=CMAXAND(B2=CMINORB3=CMIN)ANDC>=B2ORB2=CMAXANDB3=CMINANDC>=B1ORB3=CMAXANDC>=B1ANDC>=B2时,在B1和收盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR0000BB
当满足条件收盘价=CMAXAND(B1>=B2ORB1>=B3)ORB1=CMAXAND(B2=CMINORB3=CMIN)ANDC>=B2ORB2=CMAXANDB3=CMINANDC>=B1ORB3=CMAXANDC>=B1ANDC>=B2时,在B1和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR0000FF
当满足条件收盘价=CMAXANDB1=CMIN时,在B2和收盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR000099
当满足条件收盘价=CMAXANDB1=CMIN时,在B2和收盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR0000BB
当满足条件收盘价=CMAXANDB1=CMIN时,在B2和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR0000FF
当满足条件收盘价=CMINAND(B1当满足条件收盘价=CMINAND(B1当满足条件收盘价=CMINAND(B1当满足条件B1=CMAXANDC=CMIN时,在B2和收盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR009900
当满足条件B1=CMAXANDC=CMIN时,在B2和收盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR00BB00
当满足条件B1=CMAXANDC=CMIN时,在B2和收盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR00FF00
当满足条件B1=CMINANDC>=B2OR(B2=CMINANDB1<=B3ORB3=CMINANDB1<=B2)ANDB2=B1时,在B1和B2位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLORFF9900
当满足条件B1=CMINANDC>=B2OR(B2=CMINANDB1<=B3ORB3=CMINANDB1<=B2)ANDB2=B1时,在B1和B2位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORFFBB00
当满足条件B1=CMINANDC>=B2OR(B2=CMINANDB1<=B3ORB3=CMINANDB1<=B2)ANDB2=B1时,在B1和B2位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLORFFFF00
当满足条件B1=CMAXANDCB3ORB3=CMAXANDB1>B2)ANDB2>=B4ANDC当满足条件B1=CMAXANDCB3ORB3=CMAXANDB1>B2)ANDB2>=B4ANDC当满足条件B1=CMAXANDCB3ORB3=CMAXANDB1>B2)ANDB2>=B4ANDC

指标安装下载帮助  |   联系我们  |  股朋指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股朋指标网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:股朋指标网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图