很合适震荡行情和抄顶底
相关简介: 通达信缠论多空指标公式
通达信缠论多空指标公式源码概况:
指标类别:多空指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:副图
通达信缠论多空指标公式未来函数检测结果:
暂未发现存在未来函数
通达信缠论多空指标公式源码:
MID:MA(CLOSE,26);
UPPER:MID+2*STD(CLOSE,26);
LOWER:MID-2*STD(CLOSE,26);
STICKLINE(1,H,L,1,0),colorliblue;
//{笔底分型选股预警确保向下笔成立后的底分型}
V00:=HIGH<REF(HIGH,1)ANDLOW<REF(LOW,1);
V01:=HIGH<REF(HIGH,1)ANDLOW>REF(LOW,1);
V02:=HIGH>REF(HIGH,1)ANDLOW<REF(LOW,1);
V03:=HIGH>REF(HIGH,1)ANDLOW>REF(LOW,1);
V04:=REF(HIGH,2)<HIGHANDREF(LOW,2)<LOW
ANDREF(HIGH,2)>REF(HIGH,1)ANDREF(LOW,2)<REF(LOW,1);
V1:=COUNT(V00,6)>=3ANDCOUNT(V01ORV02,5)=0ANDLLVBARS(LOW,6)=1ANDHHVBARS(HIGH,6)>=5ANDV03;
V2:=COUNT(V00,7)>=3ANDCOUNT(V01ORV02,6)=1ANDLLVBARS(LOW,7)=2ANDHHVBARS(HIGH,7)>=6ANDV04;
V3:=COUNT(V00,7)>=3ANDCOUNT(V01ORV02,6)=1ANDLLVBARS(LOW,7)=1ANDHHVBARS(HIGH,7)>=6ANDV03;
V4:=COUNT(V00,8)>=3ANDCOUNT(V01ORV02,7)<=2ANDLLVBARS(LOW,8)=2ANDHHVBARS(HIGH,8)>=7ANDV04;
V5:=COUNT(V00,8)>=3ANDCOUNT(V01ORV02,7)<=2ANDLLVBARS(LOW,8)=1ANDHHVBARS(HIGH,8)>=7ANDV03;
V6:=COUNT(V00,9)>=3ANDCOUNT(V01ORV02,8)<=3ANDLLVBARS(LOW,9)=2ANDHHVBARS(HIGH,9)>=8ANDV04;
V7:=COUNT(V00,9)>=3ANDCOUNT(V01ORV02,8)<=3ANDLLVBARS(LOW,9)=1ANDHHVBARS(HIGH,9)>=8ANDV03;
V8:=COUNT(V00,10)>=3ANDCOUNT(V01ORV02,9)<=4ANDLLVBARS(LOW,10)=2ANDHHVBARS(HIGH,10)>=9ANDV04;
V9:=COUNT(V00,10)>=3ANDCOUNT(V01ORV02,9)<=4ANDLLVBARS(LOW,10)=1ANDHHVBARS(HIGH,10)>=9ANDV03;
V10:=COUNT(V00,11)>=3ANDCOUNT(V01ORV02,10)<=5ANDLLVBARS(LOW,11)=2ANDHHVBARS(HIGH,11)>=10ANDV04;
XG:=V1ORV2ORV3ORV4ORV5ORV6ORV7ORV8ORV9ORV10;
DRAWTEXT(FILTER(XG=1,5),L*0.998,'底分型'),coloryellow;
//{笔顶分型选股预警确保向上笔成立后的顶分型}
HV00:=HIGH>REF(HIGH,1)ANDLOW>REF(LOW,1);
HV01:=HIGH<REF(HIGH,1)ANDLOW>REF(LOW,1);
HV02:=HIGH>REF(HIGH,1)ANDLOW<REF(LOW,1);
HV03:=HIGH<REF(HIGH,1)ANDLOW<REF(LOW,1);
HV04:=REF(HIGH,2)>HIGHANDREF(LOW,2)>LOWANDREF(HIGH,2)>REF(HIGH,1)ANDREF(LOW,2)<REF(LOW,1);
HV1:=COUNT(HV00,6)>=3ANDCOUNT(HV01ORHV02,5)=0ANDHHVBARS(HIGH,6)=1ANDLLVBARS(LOW,6)>=5ANDHV03;
HV2:=COUNT(HV00,7)>=3ANDCOUNT(HV01ORHV02,6)=1ANDHHVBARS(HIGH,7)=2ANDLLVBARS(LOW,7)>=6ANDHV04;
HV3:=COUNT(HV00,7)>=3ANDCOUNT(HV01ORHV02,6)=1ANDHHVBARS(HIGH,7)=1ANDLLVBARS(LOW,7)>=6ANDHV03;
HV4:=COUNT(HV00,8)>=3ANDCOUNT(HV01ORHV02,7)<=2ANDHHVBARS(HIGH,8)=2ANDLLVBARS(LOW,8)>=7ANDHV04;
HV5:=COUNT(HV00,8)>=3ANDCOUNT(HV01ORHV02,7)<=2ANDHHVBARS(HIGH,8)=1ANDLLVBARS(LOW,8)>=7ANDHV03;
HV6:=COUNT(HV00,9)>=3ANDCOUNT(HV01ORHV02,8)<=3ANDHHVBARS(HIGH,9)=2ANDLLVBARS(LOW,9)>=8ANDHV04;
HV7:=COUNT(HV00,9)>=3ANDCOUNT(HV01ORHV02,8)<=3ANDHHVBARS(HIGH,9)=1ANDLLVBARS(LOW,9)>=8ANDHV03;
HV8:=COUNT(HV00,10)>=3ANDCOUNT(HV01ORHV02,9)<=4ANDHHVBARS(HIGH,10)=2ANDLLVBARS(LOW,10)>=9ANDHV04;
HV9:=COUNT(HV00,10)>=3ANDCOUNT(HV01ORHV02,9)<=4ANDHHVBARS(HIGH,10)=1ANDLLVBARS(LOW,10)>=9ANDHV03;
HV10:=COUNT(HV00,11)>=3ANDCOUNT(HV01ORHV02,10)<=5ANDHHVBARS(HIGH,11)=2ANDLLVBARS(LOW,11)>=10ANDHV04;
HXG:=HV1ORHV2ORHV3ORHV4ORHV5ORHV6ORHV7ORHV8ORHV9ORHV10;
DRAWTEXT(FILTER(HXG=1,3),H*1.01,'顶分型'),colorgreen;
VARPERIOD:=1;
MID:=(3*C+L+H+O)/6;
RISKC10:=EMA(WMA(MID,VARPERIOD),2);
BASICPROB:=33;
ADDPROB:=42;
LIMIT10:=2*MAX(ABS(HHV(H,5)-RISKC10),ABS(RISKC10-LLV(L,5)));
PROB:=(1-ABS(C-RISKC10)/LIMIT10)*ADDPROB+BASICPROB;
BUYPROBTJ:=RISKC10>REF(RISKC10,1)ANDL>RISKC10;
SELLPROBTJ:=RISKC10<=REF(RISKC10,1)ANDH<RISKC10;
开多获利概率:IFF(BUYPROBTJ,PROB,IFF(RISKC10>REF(RISKC10,1),40*PROB/100,DRAWNULL)),NODRAW,COLORRED;
开空获利概率:IFF(SELLPROBTJ,PROB,IFF(RISKC10<=REF(RISKC10,1),40*PROB/100,DRAWNULL)),NODRAW,COLORFFFF00;
高概率提示:IFF((开多获利概率>65)OR(开空获利概率>65),PROB,DRAWNULL),NODRAW,COLORYELLOW;
STICKLINE(开多获利概率>0,0,开多获利概率,2,0),COLORRED;
STICKLINE(开空获利概率>0,0,(-1)*开空获利概率,2,0),COLORFFFF00;
STICKLINE(VARPERIOD,65,65,2,0),COLORYELLOW;
STICKLINE(VARPERIOD,(-1)*65,(-1)*65,2,0),COLORYELLOW;
STICKLINE(VARPERIOD,80,80,0,0),COLOR000000;
STICKLINE(VARPERIOD,(-1)*90,(-1)*90,0,0),COLOR000000;
[源码注释]通达信缠论多空指标公式翻译结果
输出MID:收盘价的26日简单移动平均
输出UPPER:MID+2*收盘价的26日估算标准差
输出LOWER:MID-2*收盘价的26日估算标准差
当满足条件1时,在最高价和最低价位置之间画柱状线,宽度为1,0不为0则画空心柱.,画淡蓝色
V00赋值:最高价<
1日前的最高价ANDLOW<
1日前的最低价
V01赋值:最高价<
1日前的最高价ANDLOW>
1日前的最低价
V02赋值:最高价>
1日前的最高价ANDLOW<
1日前的最低价
V03赋值:最高价>
1日前的最高价ANDLOW>
1日前的最低价
V04赋值:2日前的最高价<
HIGHANDREF(最低价,2)<
最低价ANDREF(最高价,2)>
1日前的最高价ANDREF(最低价,2)<
1日前的最低价
V1赋值:统计6日中满足V00的天数>
=3ANDCOUNT(V01ORV02,5)=0ANDLLVBARS(最低价,6)=1ANDHHVBARS(最高价,6)>
=5ANDV03
V2赋值:统计7日中满足V00的天数>
=3ANDCOUNT(V01ORV02,6)=1ANDLLVBARS(最低价,7)=2ANDHHVBARS(最高价,7)>
=6ANDV04
V3赋值:统计7日中满足V00的天数>
=3ANDCOUNT(V01ORV02,6)=1ANDLLVBARS(最低价,7)=1ANDHHVBARS(最高价,7)>
=6ANDV03
V4赋值:统计8日中满足V00的天数>
=3ANDCOUNT(V01ORV02,7)<
=2ANDLLVBARS(最低价,8)=2ANDHHVBARS(最高价,8)>
=7ANDV04
V5赋值:统计8日中满足V00的天数>
=3ANDCOUNT(V01ORV02,7)<
=2ANDLLVBARS(最低价,8)=1ANDHHVBARS(最高价,8)>
=7ANDV03
V6赋值:统计9日中满足V00的天数>
=3ANDCOUNT(V01ORV02,8)<
=3ANDLLVBARS(最低价,9)=2ANDHHVBARS(最高价,9)>
=8ANDV04
V7赋值:统计9日中满足V00的天数>
=3ANDCOUNT(V01ORV02,8)<
=3ANDLLVBARS(最低价,9)=1ANDHHVBARS(最高价,9)>
=8ANDV03
V8赋值:统计10日中满足V00的天数>
=3ANDCOUNT(V01ORV02,9)<
=4ANDLLVBARS(最低价,10)=2ANDHHVBARS(最高价,10)>
=9ANDV04
V9赋值:统计10日中满足V00的天数>
=3ANDCOUNT(V01ORV02,9)<
=4ANDLLVBARS(最低价,10)=1ANDHHVBARS(最高价,10)>
=9ANDV03
V10赋值:统计11日中满足V00的天数>
=3ANDCOUNT(V01ORV02,10)<
=5ANDLLVBARS(最低价,11)=2ANDHHVBARS(最高价,11)>
=10ANDV04
XG赋值:V1ORV2ORV3ORV4ORV5ORV6ORV7ORV8ORV9ORV10
当满足条件XG=1的5日过滤时,在最低价*0.998位置书写文字,画黄色
HV00赋值:最高价>
1日前的最高价ANDLOW>
1日前的最低价
HV01赋值:最高价<
1日前的最高价ANDLOW>
1日前的最低价
HV02赋值:最高价>
1日前的最高价ANDLOW<
1日前的最低价
HV03赋值:最高价<
1日前的最高价ANDLOW<
1日前的最低价
HV04赋值:2日前的最高价>
HIGHANDREF(最低价,2)>
LOWANDREF(最高价,2)>
1日前的最高价ANDREF(最低价,2)<
1日前的最低价
HV1赋值:统计6日中满足HV00的天数>
=3ANDCOUNT(HV01ORHV02,5)=0ANDHHVBARS(最高价,6)=1ANDLLVBARS(最低价,6)>
=5ANDHV03
HV2赋值:统计7日中满足HV00的天数>
=3ANDCOUNT(HV01ORHV02,6)=1ANDHHVBARS(最高价,7)=2ANDLLVBARS(最低价,7)>
=6ANDHV04
HV3赋值:统计7日中满足HV00的天数>
=3ANDCOUNT(HV01ORHV02,6)=1ANDHHVBARS(最高价,7)=1ANDLLVBARS(最低价,7)>
=6ANDHV03
HV4赋值:统计8日中满足HV00的天数>
=3ANDCOUNT(HV01ORHV02,7)<
=2ANDHHVBARS(最高价,8)=2ANDLLVBARS(最低价,8)>
=7ANDHV04
HV5赋值:统计8日中满足HV00的天数>
=3ANDCOUNT(HV01ORHV02,7)<
=2ANDHHVBARS(最高价,8)=1ANDLLVBARS(最低价,8)>
=7ANDHV03
HV6赋值:统计9日中满足HV00的天数>
=3ANDCOUNT(HV01ORHV02,8)<
=3ANDHHVBARS(最高价,9)=2ANDLLVBARS(最低价,9)>
=8ANDHV04
HV7赋值:统计9日中满足HV00的天数>
=3ANDCOUNT(HV01ORHV02,8)<
=3ANDHHVBARS(最高价,9)=1ANDLLVBARS(最低价,9)>
=8ANDHV03
HV8赋值:统计10日中满足HV00的天数>
=3ANDCOUNT(HV01ORHV02,9)<
=4ANDHHVBARS(最高价,10)=2ANDLLVBARS(最低价,10)>
=9ANDHV04
HV9赋值:统计10日中满足HV00的天数>
=3ANDCOUNT(HV01ORHV02,9)<
=4ANDHHVBARS(最高价,10)=1ANDLLVBARS(最低价,10)>
=9ANDHV03
HV10赋值:统计11日中满足HV00的天数>
=3ANDCOUNT(HV01ORHV02,10)<
=5ANDHHVBARS(最高价,11)=2ANDLLVBARS(最低价,11)>
=10ANDHV04
HXG赋值:HV1ORHV2ORHV3ORHV4ORHV5ORHV6ORHV7ORHV8ORHV9ORHV10
当满足条件HXG=1的3日过滤时,在最高价*1.01位置书写文字,画绿色
VARPERIOD赋值:1
MID赋值:(3*收盘价+最低价+最高价+开盘价)/6
RISKC10赋值:MID的VARPERIOD日加权移动平均的2日指数移动平均
BASICPROB赋值:33
ADDPROB赋值:42
LIMIT10赋值:2*5日内最高价的最高值-RISKC10的绝对值和RISKC10-5日内最低价的最低值的绝对值的较大值
PROB赋值:(1-收盘价-RISKC10的绝对值/LIMIT10)*ADDPROB+BASICPROB
BUYPROBTJ赋值:RISKC10>1日前的RISKC10ANDL>RISKC10
SELLPROBTJ赋值:RISKC10<=1日前的RISKC10ANDH<RISKC10
输出开多获利概率:如果BUYPROBTJ,返回PROB,否则返回如果RISKC10>1日前的RISKC10,返回40*PROB/100,否则返回无效数,NODRAW,画红色
输出开空获利概率:如果SELLPROBTJ,返回PROB,否则返回如果RISKC10<=1日前的RISKC10,返回40*PROB/100,否则返回无效数,NODRAW,COLORFFFF00
输出高概率提示:如果(开多获利概率>65)OR(开空获利概率>65),返回PROB,否则返回无效数,NODRAW,画黄色
当满足条件开多获利概率>0时,在0和开多获利概率位置之间画柱状线,宽度为2,0不为0则画空心柱.,画红色
当满足条件开空获利概率>0时,在0和(-1)*开空获利概率位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLORFFFF00
当满足条件VARPERIOD时,在65和65位置之间画柱状线,宽度为2,0不为0则画空心柱.,画黄色
当满足条件VARPERIOD时,在(-1)*65和(-1)*65位置之间画柱状线,宽度为2,0不为0则画空心柱.,画黄色
当满足条件VARPERIOD时,在80和80位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLOR000000
当满足条件VARPERIOD时,在(-1)*90和(-1)*90位置之间画柱状线,宽度为0,0不为0则画空心柱.,COLOR000000
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)