通达信活筹宝塔指标公式

 

VAR11:=SMA(AMOUNT,15,1)/5670000;
VAR22:=MA(REF(CLOSE,1),5);
VAR2:=VAR11*CLOSE/VAR22;
B0:=REF(VAR2-O,2);
B1:=REF(VAR2,1);
B2:=REF(VAR2,2);
B3:=REF(VAR2,3);
B4:=REF(VAR2,4);
VAR2MAX:=MAX(MAX(MAX(VAR2,B1),B2),B3);
VAR2MIN:=MIN(MIN(MIN(VAR2,B1),B2),B3);
{ _通达信股票指标公式}
RS1:=(VAR2=VAR2MAX AND (B1>=B2 OR B1>=B3)) OR (B1=VAR2MAX AND (B2=VAR2MIN OR B3=VAR2MIN) AND VAR2>=B2) OR (B2=VAR2MAX AND B3=VAR2MIN AND VAR2>=B1) OR (B3=VAR2MAX AND VAR2>=B1 AND VAR2>=B2);
RS2:=VAR2=VAR2MAX AND B1=VAR2MIN;
RS3:=(B1=VAR2MAX AND VAR2<B2) OR (B2=VAR2MAX AND B1>B3) OR (B3=VAR2MAX AND B1>B2 AND B2>=B4 AND VAR2<B1);
STICKLINE(RS1,B1,VAR2,2,1),COLORRED;
STICKLINE(RS2,B2,VAR2,2,1),COLORRED;
STICKLINE(RS3,B1,B2,2,1),COLORRED;
GS1:=(VAR2=VAR2MIN AND (B1<B2 OR B1<B3)) OR (B1=VAR2MIN AND (B2=VAR2MAX OR B3=VAR2MAX) AND VAR2<B2) OR (B2=VAR2MIN AND B3=VAR2MAX AND VAR2<B1) OR (B3=VAR2MIN AND VAR2<B1 AND VAR2<B2);
GS2:=B1=VAR2MAX AND VAR2=VAR2MIN;
GS3:=(B1=VAR2MIN AND VAR2>=B2) OR (B2=VAR2MIN AND B1<=B3) OR (B3=VAR2MIN AND B1<=B2 AND B2<B4 AND VAR2>=B1);
STICKLINE(GS1,B1,VAR2,2,0),COLORGREEN;
STICKLINE(GS2,B2,VAR2,2,0),COLORGREEN;
STICKLINE(GS3,B1,B2,2,0),COLORGREEN;




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


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

相关指标公式

VAR11赋值:成交额(元)的15日[1日权重]移动平均/5670000
VAR22赋值:1日前的收盘价的5日简单移动平均
VAR2赋值:VAR11*收盘价/VAR22
B0赋值:2日前的VAR2-开盘价
B1赋值:1日前的VAR2
B2赋值:2日前的VAR2
B3赋值:3日前的VAR2
B4赋值:4日前的VAR2
VAR2MAX赋值:VAR2和B1的较大值和B2的较大值和B3的较大值
VAR2MIN赋值:VAR2和B1的较小值和B2的较小值和B3的较小值
RS1赋值:(VAR2=VAR2MAX AND (B1>=B2 OR B1>=B3)) OR (B1=VAR2MAX AND (B2=VAR2MIN OR B3=VAR2MIN) AND VAR2>=B2) OR (B2=VAR2MAX AND B3=VAR2MIN AND VAR2>=B1) OR (B3=VAR2MAX AND VAR2>=B1 AND VAR2>=B2)
RS2赋值:VAR2=VAR2MAX AND B1=VAR2MIN
RS3赋值:(B1=VAR2MAX AND VAR2B3) OR (B3=VAR2MAX AND B1>B2 AND B2>=B4 AND VAR2当满足条件RS1时,在B1和VAR2位置之间画柱状线,宽度为2,1不为0则画空心柱.,画红色
当满足条件RS2时,在B2和VAR2位置之间画柱状线,宽度为2,1不为0则画空心柱.,画红色
当满足条件RS3时,在B1和B2位置之间画柱状线,宽度为2,1不为0则画空心柱.,画红色
GS1赋值:(VAR2=VAR2MIN AND (B1GS2赋值:B1=VAR2MAX AND VAR2=VAR2MIN
GS3赋值:(B1=VAR2MIN AND VAR2>=B2) OR (B2=VAR2MIN AND B1<=B3) OR (B3=VAR2MIN AND B1<=B2 AND B2=B1)
当满足条件GS1时,在B1和VAR2位置之间画柱状线,宽度为2,0不为0则画空心柱.,画绿色
当满足条件GS2时,在B2和VAR2位置之间画柱状线,宽度为2,0不为0则画空心柱.,画绿色
当满足条件GS3时,在B1和B2位置之间画柱状线,宽度为2,0不为0则画空心柱.,画绿色

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

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