通达信筹码突破均线主图指标公式源码
DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);
HI:=REFDATE(HHV(H,DA),DATE);
C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);
LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);
LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);
LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);
LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);
LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);
L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;
L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;
L5:=REFDATE(HHV(LH5,DA),DATE);
L7:=REFDATE(HHV(LH7,DA),DATE);
L9:=REFDATE(HHV(LH9,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3;
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0)COLOR3C3C3A,LINETHICK3;
MA1:MA(CLOSE,M1);
MA3:MA(CLOSE,M3);
MA5:MA(CLOSE,M5);
MA7:MA(CLOSE,M7);
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1) ;
VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR7:=EMA(VAR6,5);
VAR8:=IF(VAR6<=-20,10,0);
VARA:=IF(VAR9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
D:=EMA(K,5), , COLORWHITE;
VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
DRAWTEXT(VAR8=10 AND FILTER(VAR8=10,5),LOW*0.93,'接近底部') COLORMAGENTA;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.95,'大资金活动'),LINETHICK1,COLORFF00FF;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR19:=IF(VAR18<90,VAR18,100);
VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,LOW*0.95,'大笔成交') COLORWHITE;
未来函数检测结果如下:
该公式包含未来函数:ZIG
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
如果130>TOTALBARSCOUNT返回TOTALBARSCOUNT否则返回130
HI赋值:REFDATE(DA日内H最高值,DATE)
如果 到最后交易的周期<=DA返回C否则返回DRAWNULL
LH1赋值:SUM(IF(C1>=(HI/GZ),V,0),DA)
LH3赋值:SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA)
LH5赋值:SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA)
LH7赋值:SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA)
LH9赋值:SUM(IF(C1>=(LO*GZ) AND C1
L1赋值:REFDATE(DA日内LH1最高值,DATE),LINETHICK0
L3赋值:REFDATE(DA日内LH3最高值,DATE),LINETHICK0
L5赋值:REFDATE(DA日内LH5最高值,DATE)
L7赋值:REFDATE(DA日内LH7最高值,DATE)
L9赋值:REFDATE(DA日内LH9最高值,DATE)
SS赋值:(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10)
STICKLINE(CEILING(DA*L2/SS)*3>= 到最后交易的周期,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L4/SS)*3>= 到最后交易的周期,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L6/SS)*3>= 到最后交易的周期,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L8/SS)*3>= 到最后交易的周期,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3
STICKLINE(CEILING(DA*L10/SS)*3>= 到最后交易的周期,LO,LO*POW(GZ,1)*99/100,9,0)COLOR3C3C3A,LINETHICK3
输出MA1:收盘价的M1日简单移动平均
输出MA3:收盘价的M3日简单移动平均
输出MA5:收盘价的M5日简单移动平均
输出MA7:收盘价的M7日简单移动平均
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),最低价*0.98,1)
VAR3赋值:(收盘价-收盘价的6日简单移动平均)/收盘价的6日简单移动平均*100
VAR5赋值:(收盘价-收盘价的32日简单移动平均)/收盘价的32日简单移动平均*100
VAR7赋值:VAR6的5日指数移动平均
如果VAR6<=-20返回10否则返回0
VARA赋值:IF(VAR9 AND CROSS(收盘价的3日简单移动平均,收盘价的5日简单移动平均),20,0)
D赋值:K的5日指数移动平均, , COLORWHITE
VARB赋值:BETWEEN(收盘价,收盘价的3日简单移动平均,收盘价的5日简单移动平均) AND J>10
DRAWTEXT(VAR8=10 AND VAR8=10的5过滤,最低价*0.93,'接近底部') 画洋红色
VARE赋值:MA(100*(收盘价-34日内收盘价最低值)/(34日内HIGH最高值-34日内最低价最低值),5)-20
VAR10赋值:100-3*SMA((开盘价-75日内最低价最低值)/(75日内HIGH最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((开盘价-75日内最低价最低值)/(75日内HIGH最高值-75日内最低价最低值)*100,20,1),15,1)
DRAWTEXT(VAR11 AND 统计30日满足VAR11的天数=1,最低价*0.95,'大资金活动'),LINETHICK1,COLORFF00FF
VAR13赋值:(VAR12-VAR12的14日简单移动平均)/(0.015*AVEDEV(VAR12,14))
如果VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200返回10否则返回0
VAR17赋值:(收盘价-收盘价的13日简单移动平均)/收盘价的13日简单移动平均*100
如果VAR18<90返回VAR18否则返回100
VAR1B赋值:IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60
DRAWTEXT(VAR1C AND 统计30日满足VAR1C的天数=1,最低价*0.95,'大笔成交') COLORWHITE