通达信天马筹码副图指标 利用筹码比率找出波段底部 让你避免被套 源码 附图
筹码比率:IF(WINNER(CLOSE),WINNER(CLOSE)*100,20),VOLSTICK;
倍:WINNER(CLOSE)*100>=REF(WINNER(CLOSE)*100,1)*1.9 AND CLOSE>REF(CLOSE,1),NODRAW,COLOR80FFFF;
平:ABS(WINNER(CLOSE)*100-HHV(REF(WINNER(CLOSE)*100,1),5))/HHV(REF(WINNER(CLOSE)*100,1),5)<=0.0382 OR ABS(WINNER(CLOSE)*100-REF(WINNER(CLOSE)*100,1))/REF(WINNER(CLOSE)*100,1)<=0.05,NODRAW,COLORWHITE;
低L:WINNER(CLOSE)*100<REF(LLV(WINNER(CLOSE)*100,8),1),NODRAW,COLORGREEN;
地:WINNER(CLOSE)*100<REF(LLV(WINNER(CLOSE)*100,100),1),NODRAW,COLORMAGENTA;
倍缩:WINNER(CLOSE)*100<=REF(WINNER(CLOSE)*100,1)*0.5,NODRAW,COLORRED;
STICKLINE(倍,0,WINNER(CLOSE)*100,1.8,0),COLOR03DFF8;
STICKLINE(低L,0,WINNER(CLOSE)*100,1.5,0),COLOR008000;
STICKLINE(地,0,WINNER(CLOSE)*100,4,0),COLORMAGENTA;
STICKLINE(倍缩,0,WINNER(CLOSE)*100,1.5,0),COLORRED;
X_1:=MA(HHV(HIGH,500),13);
X_2:=MA(HHV(HIGH,250),13);
X_3:=MA(HHV(HIGH,89),13);
X_4:=MA(LLV(LOW,500),13);
X_5:=MA(LLV(LOW,250),13);
X_6:=MA(LLV(LOW,89),13);
X_7:=MA((X_1*0.558+X_2*0.558+X_3*0.558+X_4*0.96+X_5*0.96+X_6*0.96)/6,17);
X_8:=MA((X_1*0.55+X_2*0.55+X_3*0.65+X_4*1.25+X_5*1.23+X_6*1.2)/6,17);
X_9:=MA((X_1*0.68+X_2*0.68+X_3*0.68+X_4*1.3+X_5*1.3+X_6*1.3)/6,17);
X_10:=MA((X_7*3+X_8*2+X_9)/6*1.738,17);
X_11:=SMA(ABS(LOW-REF(LOW,1)),3,1)/SMA(MAX(LOW-REF(LOW,1),0),3,1)*100;
X_12:=MA(IF(CLOSE*1.35<=X_10,X_11*10,X_11/10),3);
X_13:=HHV(X_12,30);
X_14:=MA(IF(LOW<=LLV(LOW,42),(X_13+X_11*2)/3,0),3)/100;
STICKLINE(CROSS(3.8,X_14) AND X_14<REF(X_14,1),0,88,0.1,0),COLORMAGENTA;
DRAWTEXT(CROSS(3.8,X_14) AND X_14<REF(X_14,1),88,1659),COLORMAGENTA;
STICKLINE(CROSS(10,X_14) AND X_14<REF(X_14,1),0,70,0.5,0),COLORYELLOW;
DRAWTEXT(CROSS(10,X_14) AND X_14<REF(X_14,1),70,1660),COLORYELLOW;
STICKLINE(CROSS(62,X_14) AND X_14<REF(X_14,1),0,58,2,0),COLORRED;
DRAWTEXT(CROSS(38,X_14) AND X_14<REF(X_14,1),58,1661),COLORRED;
X_15:=LAST(X_14>0.618,3,1) AND COUNT(CROSS(0.618,X_14) OR CROSS(62,X_14),21)>=2;
STICKLINE(FILTER(X_15,13),40,0,1,0),COLORRED;
DRAWTEXT(FILTER(X_15,13),40,1662),COLORRED;
X_16:=EMA(WINNER(CLOSE)*100,2);
X_17:=EMA(X_16,5);
X_18:=EMA(X_16,21);
DRAWICON(CROSS(X_17,X_18) AND X_18>50 AND X_18>=REF(X_18,3),X_18,1);
DRAWICON(CROSS(X_17,X_18) AND X_18<=50 AND X_18>=REF(X_18,3),X_18,7);
DRAWICON(CROSS(X_16,5),5,26);
X_19:=LLV(LOW,21);
X_20:=HHV(HIGH,21);
X_21:=EMA((CLOSE-X_19)/(X_20-X_19)*100,6);
X_22:=EMA(0.667*REF(X_21,1)+0.333*X_21,2);
DRAWICON(LONGCROSS(X_21,X_22,0.1) AND CROSS(X_16,X_17),X_21,1);
X_23:=MA(CLOSE,8);
X_24:=MA(CLOSE,50);
X_25:=(CLOSE-X_24)/X_24<0.008;
X_26:=(CLOSE-X_23)/X_23<0.058;
X_27:=(X_25=1 AND X_26=1)*0.2;
X_28:=(X_27=0 AND REF(X_27,1)=0.2 AND REF(COUNT(X_27=0.2,10)=10,1)=1)*1;
DRAWTEXT(X_28,HHV(筹码比率,20),1663),COLOR80FFFF;
X_29:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
X_30:=(CLOSE+LOW+HIGH)/3;
X_31:=EMA(X_30,6);
X_32:=EMA(X_31,5);
X_33:=CROSS(X_31,X_32);
X_34:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
X_35:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
X_36:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
X_37:=X_34+100;
X_38:=X_36+100;
X_39:=CROSS(X_38,X_37);
短线反弹:IF(CROSS(X_29,25) AND COUNT(X_33,2)>0 AND COUNT(X_39,2)>0,(-24),DRAWNULL),STICK,COLORGREEN,LINETHICK3;
DRAWTEXT(CROSS(X_29,25) AND COUNT(X_33,2)>0 AND COUNT(X_39,2)>0,(-18),1664),COLORGREEN;
TX50:50,DOTLINE,COLORBLUE;
TX80:80,DOTLINE,COLORBLUE;
DX20:20,POINTDOT,COLORBLUE,LINETHICK4;
K1:EMA((CLOSE-X_19)/(X_20-X_19)*100,6),COLORRED;
D1:EMA(0.667*REF(K1,1)+0.333*K1,2),COLORGREEN;
X_40:=LLV(LOW,55);
X_41:=HHV(HIGH,34);
X_42:=EMA((CLOSE-X_40)/(X_41-X_40)*100,3);
X_43:=(K1+X_42)/2;
X_44:=EMA(0.667*REF(X_42,1)+0.333*K1,2);
X_45:=EMA(X_43,5);
VAR9:EMA(0.667*REF(X_45,1)+0.333*X_45,2);
DRAWICON(LONGCROSS(D1,K1,0.1),D1,2),COLORRED;
DRAWICON(LONGCROSS(K1,D1,0.1),K1,1),COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:WINNER
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出筹码比率:IF(收盘价计算的获利盘比例,收盘价计算的获利盘比例*100,20),成交量STICK
输出倍:收盘价计算的获利盘比例*100>=REF(收盘价计算的获利盘比例*100,1)*1.9 AND 收盘价>REF(收盘价,1),NODRAW,COLOR80FFFF
输出平:收盘价计算的获利盘比例*100-HHV(REF(收盘价计算的获利盘比例*100,1的绝对值,5))/HHV(REF(收盘价计算的获利盘比例*100,1),5)<=0.0382 OR ABS(收盘价计算的获利盘比例*100-REF(收盘价计算的获利盘比例*100,1))/REF(收盘价计算的获利盘比例*100,1)<=0.05,NODRAW,画白色
输出低L:收盘价计算的获利盘比例*100[
输出地:收盘价计算的获利盘比例*100][
倍缩:收盘价计算的获利盘比例*100<=REF(收盘价计算的获利盘比例*100,1)*0.5,NODRAW,画红色]
STICKLINE(倍,0,收盘价计算的获利盘比例*100,1.8,0),COLOR03DFF8
STICKLINE(低L,0,收盘价计算的获利盘比例*100,1.5,0),COLOR008000
STICKLINE(地,0,收盘价计算的获利盘比例*100,4,0),画洋红色
STICKLINE(倍缩,0,收盘价计算的获利盘比例*100,1.5,0),画红色
X_1赋值:500日内最高价最高值的13日简单移动平均
X_2赋值:250日内最高价最高值的13日简单移动平均
X_3赋值:89日内最高价最高值的13日简单移动平均
X_4赋值:500日内最低价最低值的13日简单移动平均
X_5赋值:250日内最低价最低值的13日简单移动平均
X_6赋值:89日内最低价最低值的13日简单移动平均
X_7赋值:MA((X_1*0.558+X_2*0.558+X_3*0.558+X_4*0.96+X_5*0.96+X_6*0.96)/6,17)
X_8赋值:MA((X_1*0.55+X_2*0.55+X_3*0.65+X_4*1.25+X_5*1.23+X_6*1.2)/6,17)
X_9赋值:MA((X_1*0.68+X_2*0.68+X_3*0.68+X_4*1.3+X_5*1.3+X_6*1.3)/6,17)
X_10:=MA((X_7*3+X_8*2+X_9)/6*1.738,17)
X_11:=SMA(最低价-1日前的最低价的绝对值,3,1)/SMA(最低价-1日前的最低价和0较大值,3,1)*100
如果收盘价*1.35<=X_10返回X_11*10否则返回X_11/10
X_13:=30日内X_12最高值
X_14:=MA(IF(最低价<=42日内最低价最低值,(X_13+X_11*2)/3,0),3)/100
STICKLINE(3.8上穿X_14 AND X_14<1日前的X_14,0,88,0.1,0),画洋红色
DRAWTEXT(3.8上穿X_14 AND X_14<1日前的X_14,88,1659),画洋红色
STICKLINE(10上穿X_14 AND X_14<1日前的X_14,0,70,0.5,0),画黄色
DRAWTEXT(10上穿X_14 AND X_14<1日前的X_14,70,1660),画黄色
STICKLINE(62上穿X_14 AND X_14<1日前的X_14,0,58,2,0),画红色
DRAWTEXT(38上穿X_14 AND X_14<1日前的X_14,58,1661),画红色
X_15:=LAST(X_14>0.618,3,1) AND 统计21日满足0.618上穿X_14 OR 62上穿X_14的天数>=2
STICKLINE(X_15的13过滤,40,0,1,0),画红色
DRAWTEXT(X_15的13过滤,40,1662),画红色
X_16:=EMA(收盘价计算的获利盘比例*100,2)
X_17:=X_16的5日指数移动平均
X_18:=X_16的21日指数移动平均
DRAWICON(X_17上穿X_18 AND X_18>50 AND X_18>=3日前的X_18,X_18,1)
DRAWICON(X_17上穿X_18 AND X_18<=50 AND X_18>=3日前的X_18,X_18,7)
DRAWICON(X_16上穿5,5,26)
X_19:=21日内最低价最低值
X_20:=21日内最高价最高值
X_21:=EMA((收盘价-X_19)/(X_20-X_19)*100,6)
X_22:=E0.667*1日前的X_21+0.333*X_21的2日简单移动平均
DRAWICON(LONGCROSS(X_21,X_22,0.1) AND CROSS(X_16,X_17),X_21,1)
X_23:=收盘价的8日简单移动平均
X_24:=收盘价的50日简单移动平均
X_25:=(收盘价-X_24)/X_24<0.008
X_26:=(收盘价-X_23)/X_23<0.058
X_27:=(X_25=1 AND X_26=1)*0.2
X_28:=(X_27=0 AND 1日前的X_27=0.2 AND 1日前的统计10日满足X_27=0.2的天数=10=1)*1
DRAWTEXT(X_28,20日内筹码比率最高值,1663),COLOR80FFFF
X_29:=EMA(100*(收盘价-34日内最低价最低值)/(34日内最高价最高值-34日内最低价最低值),3)
X_30:=(收盘价+最低价+最高价)/3
X_31:=X_30的6日指数移动平均
X_32:=X_31的5日指数移动平均
X_33:=X_31上穿X_32
X_34:=MA((-100)*(34日内最高价最高值-收盘价)/(34日内最高价最高值-34日内最低价最低值),19)
X_35:=(-100)*(14日内最高价最高值-收盘价)/(14日内最高价最高值-14日内最低价最低值)
X_36:=EMA((-100)*(34日内最高价最高值-收盘价)/(34日内最高价最高值-34日内最低价最低值),4)
X_37:=X_34+100
X_38:=X_36+100
X_39:=X_38上穿X_37
输出短线反弹:IF(X_29上穿25 AND 统计2日满足X_33的天数>0 AND 统计2日满足X_39的天数>0,(-24),DRAWNULL),STICK,画绿色, 线宽为3
DRAWTEXT(X_29上穿25 AND 统计2日满足X_33的天数>0 AND 统计2日满足X_39的天数>0,(-18),1664),画绿色
输出TX50:50,DOTLINE, 画蓝色
输出TX80:80,DOTLINE, 画蓝色
输出DX20:20,POINTDOT, 画蓝色,LINETHICK4
输出K1:EMA((收盘价-X_19)/(X_20-X_19)*100,6),画红色
输出D1:E0.667*1日前的K1+0.333*K1的2日简单移动平均,画绿色
X_40:=55日内最低价最低值
X_41:=34日内最高价最高值
X_42:=EMA((收盘价-X_40)/(X_41-X_40)*100,3)
X_43:=(K1+X_42)/2
X_44:=E0.667*1日前的X_42+0.333*K1的2日简单移动平均
X_45:=X_43的5日指数移动平均
输出VAR9:E0.667*1日前的X_45+0.333*X_45的2日简单移动平均
DRAWICON(LONGCROSS(D1,K1,0.1),D1,2),画红色
DRAWICON(LONGCROSS(K1,D1,0.1),K1,1),画绿色