通达信无为K线主图指标公式

 

Y1:=10;
B0:=REF(CLOSE - OPEN,2);
B1:=REF(CLOSE,1);
B2:=REF(CLOSE,2);
B3:=REF(CLOSE,3);
B4:=REF(CLOSE,4);
CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);
CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);
红色持股:STICKLINE((CLOSE = CMAX) and (B1 >= B2) or (B1 >= B3) or (B1 = CMAX) and (B2 = CMIN) or (B3 = CMIN) and (CLOSE >= B2) or (B2 = CMAX) and (B3 = CMIN) and (CLOSE >= B1) or (B3 = CMAX) and (CLOSE >= B1) and (CLOSE >= B2),B1,CLOSE,5,1),colorred;
品红变盘:STICKLINE((CLOSE = CMAX) and (B1 = CMIN),B2,CLOSE,5,1),ColorF0F000;
黄色下跌:STICKLINE((CLOSE = CMIN) and (B1 < B2) or (B1 < B3) or (B1 = CMIN) and (B2 = CMAX) or (B3 = CMAX) and (CLOSE < B2) or (B2 = CMIN) and (B3 = CMAX) and (CLOSE < B1) or (B3 = CMIN) and (CLOSE < B1) and (CLOSE < B2),B1,CLOSE,5,0),coloryellow;
绿色买:STICKLINE((B1 = CMAX) and (CLOSE = CMIN),B2,CLOSE,5,0),Color008000;
STICKLINE((B1 = CMIN) and (CLOSE >= B2) or (B2 = CMIN) and (B1 <= B3) or (B3 = CMIN) and (B1 <= B2) and (B2 < B4) and (CLOSE >= B1),B1,B2,5,0),Color008000;
兰色抛售:STICKLINE((B1 = CMAX) and (CLOSE < B2) or (B2 = CMAX) and (B1 > B3) or (B3 = CMAX) and (B1 > B2) and (B2 >= B4) and (CLOSE < B1),B1,B2,5,1),ColorFF0000;
A1:=SAR(5,1,5);
YS1:=EMA(CLOSE,30);
YS2:=IF((CLOSE > 450),8,IF((CLOSE >= 20) and (CLOSE < 150),0.2,IF((CLOSE < 20) and (CLOSE >= 10),0.07,IF((CLOSE < 10),0.03,0.07))));
彩龙:STICKLINE((CLOSE > A1),YS1,YS1 + YS2,6,0),ColorF0F000;
STICKLINE((CLOSE < A1),YS1,YS1 - YS2,6,0),Color006600;
STICKLINE(crOSS(CLOSE,A1),YS1,YS1 - YS2,6,0),Color000080;
STICKLINE(CROSS(A1,CLOSE),YS1,YS1 + YS2,6,0),Color6600FF;
生命线:FORCAST(CLOSE,30),circledot,coloryellow;
支撑:=(MA(CLOSE,13))*(0.955);
中轨:MA(CLOSE,26),Linethick2,ColorFF00FF;
上轨:中轨 + (2)*(STD(CLOSE,26)),Linethick2,Color0099FF;
下轨:中轨 - (2)*(STD(CLOSE,26)),Linethick2,Color0066FF;




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


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

相关指标公式

Y1赋值:10
B0赋值:2日前的收盘价-开盘价
B1赋值:1日前的收盘价
B2赋值:2日前的收盘价
B3赋值:3日前的收盘价
B4赋值:4日前的收盘价
CMAX赋值:收盘价和B1的较大值和B2的较大值和B3的较大值
CMIN赋值:收盘价和B1的较小值和B2的较小值和B3的较小值
输出红色持股:当满足条件(收盘价=CMAX)AND(B1>=B2)OR(B1>=B3)OR(B1=CMAX)AND(B2=CMIN)OR(B3=CMIN)AND(收盘价>=B2)OR(B2=CMAX)AND(B3=CMIN)AND(收盘价>=B1)OR(B3=CMAX)AND(收盘价>=B1)AND(收盘价>=B2)时,在B1和收盘价位置之间画柱状线,宽度为5,1不为0则画空心柱.,画红色
输出品红变盘:当满足条件(收盘价=CMAX)AND(B1=CMIN)时,在B2和收盘价位置之间画柱状线,宽度为5,1不为0则画空心柱.,COLORF0F000
输出黄色下跌:当满足条件(收盘价=CMIN)AND(B1输出绿色买:当满足条件(B1=CMAX)AND(收盘价=CMIN)时,在B2和收盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR008000
当满足条件(B1=CMIN)AND(收盘价>=B2)OR(B2=CMIN)AND(B1<=B3)OR(B3=CMIN)AND(B1<=B2)AND(B2=B1)时,在B1和B2位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR008000
输出兰色抛售:当满足条件(B1=CMAX)AND(收盘价B3)OR(B3=CMAX)AND(B1>B2)AND(B2>=B4)AND(收盘价A1赋值:步长为1极限值为5的5日抛物转向
YS1赋值:收盘价的30日指数移动平均
YS2赋值:如果(收盘价>450),返回8,否则返回如果(收盘价>=20)AND(收盘价<150),返回0.2,否则返回如果(收盘价<20)AND(收盘价>=10),返回0.07,否则返回如果(收盘价<10),返回0.03,否则返回0.07
输出彩龙:当满足条件(收盘价>A1)时,在YS1和YS1+YS2位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLORF0F000
当满足条件(收盘价当满足条件收盘价上穿A1时,在YS1和YS1-YS2位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLOR000080
当满足条件A1上穿收盘价时,在YS1和YS1+YS2位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLOR6600FF
输出生命线:收盘价的30日线性回归预测值,CIRCLEDOT,画黄色
支撑赋值:(收盘价的13日简单移动平均)*(0.955)
输出中轨:收盘价的26日简单移动平均,线宽为2,COLORFF00FF
输出上轨:中轨 + (2)*(收盘价的26日估算标准差),线宽为2,COLOR0099FF
输出下轨:中轨 - (2)*(收盘价的26日估算标准差),线宽为2,COLOR0066FF

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

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