通达信【筹码抓单峰】选牛三部曲用法详解 主副图指标 源码

{筹码抓单峰主图源码如下}

DA1:=IF(130>TOTALBARSCOUNT,TOTALBARSCOUNT,130);
DA:=IF(CURRBARSCOUNT>DA1,0,DA1);
HI:=REFDATE(HHV(H,DA),DATE);
LO:=REFDATE(LLV(L,DA),DATE);
C1:=IF(CURRBARSCOUNT<=DA,C,DRAWNULL);
GZ:=EXP(LN(HI/LO)/10);
ABC1:=SUM(IF(C1>=(HI/GZ),V,0),DA);
ABC2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1< (HI/GZ),V,0),DA);
ABC3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1< (HI/POW(GZ,2)),V,0),DA);
ABC4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1< (HI/POW(GZ,3)),V,0),DA);
ABC5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1< (HI/POW(GZ,4)),V,0),DA);
ABC6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1< (HI/POW(GZ,5)),V,0),DA);
ABC7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1< (HI/POW(GZ,6)),V,0),DA);
ABC8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1< (HI/POW(GZ,7)),V,0),DA);
ABC9:=SUM(IF(C1>=(LO*GZ) AND C1< LO*POW(GZ,2),V,0),DA);
ABC10:=SUM(IF(C1>=LO AND C1< LO*GZ,V,0),DA);
L1:=REFDATE(HHV(ABC1,DA),DATE);
L2:=REFDATE(HHV(ABC2,DA),DATE);
L3:=REFDATE(HHV(ABC3,DA),DATE);
L4:=REFDATE(HHV(ABC4,DA),DATE);
L5:=REFDATE(HHV(ABC5,DA),DATE);
L6:=REFDATE(HHV(ABC6,DA),DATE);
L7:=REFDATE(HHV(ABC7,DA),DATE);
L8:=REFDATE(HHV(ABC8,DA),DATE);
L9:=REFDATE(HHV(ABC9,DA),DATE);
L10:=REFDATE(HHV(ABC10,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);
ZT:=C/REF(C,1)>1.094 AND H=C;
STICKLINE(ZT,C,O,3.0,0),COLORYELLOW;
W5:COST(5),DOTLINE;
W95:COST(95),DOTLINE;
C2:W95-W5,NODRAW;
获利筹码:CONST( (C)*100),NODRAW;
ZG:=HHV(H,598);
BZ:=C2/ZG*100,NODRAW;
JZ:=BZ< 20 AND CROSS(C,COST(90)) AND C/REF(C,1)>1.0618;
DRAWICON(JZ,L*0.989,38);
GJ:=HHV(H,21),COLORRED,POINTDOT;
ZTS:BARSLAST(GJ<>REF(GJ,1))>=6,NODRAW;
TJ1:=BARSLAST(GJ=REF(GJ,1));
HX:H>IF(ZTS=1,REF(GJ,1),DRAWNULL),NODRAW;
AA1:=REF(GJ,21)=HHV(GJ,2*21+1);
BB1:=FILTER(AA1,21);
CC1:= (BB1,21+1);
DD1:=FILTER(CC1,21),NODRAW;
前期高点:=REF(GJ,BARSLAST(DD1)),COLORFF00FF,DOTLINE;
PT:STICKLINE(C>0,前期高点,前期高点,1,0),COLORRED;
PL1:=(CROSS(C,REF(前期高点,1))OR L< 前期高点 AND C>前期高点) AND C/REF(C,1)>=1.098 AND C=H,NODRAW;
STICKLINE(PL1,(C+O)/2,C,3,0),COLORRED;
HL:=(COST(97)-COST(3))/10;
BCD1:= (COST(3)+HL*1)- (COST(3)+HL*0);
BCD2:= (COST(3)+HL*2)- (COST(3)+HL*1);
BCD3:= (COST(3)+HL*3)- (COST(3)+HL*2);
BCD4:= (COST(3)+HL*4)- (COST(3)+HL*3);
BCD5:= (COST(3)+HL*5)- (COST(3)+HL*4);
BCD6:= (COST(3)+HL*6)- (COST(3)+HL*5);
BCD7:= (COST(3)+HL*7)- (COST(3)+HL*6);
BCD8:= (COST(3)+HL*8)- (COST(3)+HL*7);
BCD9:= (COST(3)+HL*9)- (COST(3)+HL*8);
BCD10:= (COST(3)+HL*10)- (COST(3)+HL*9);
MXBCD:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(BCD1,BCD2),BCD3),BCD4),BCD5),BCD6),BCD7),BCD8),BCD9),BCD10);
峰价上:=IF(BCD10>=MXBCD,COST(3)+HL*10,IF(BCD9>=MXBCD,COST(3)+HL*9,IF(BCD8>=MXBCD,COST(3)+HL*8,IF(BCD7>=MXBCD,COST(3)+HL*7,IF(BCD6>=MXBCD,COST(3)+HL*6,IF(BCD5>=MXBCD,COST(3)+HL*5,IF(BCD4>=MXBCD,COST(3)+HL*4,IF(BCD3>=MXBCD,COST(3)+HL*3,IF(BCD2>=MXBCD,COST(3)+HL*2,IF(BCD1>=MXBCD,COST(3)+HL*1,0)))))))))),COLORWHITE;
峰价下:=峰价上-HL,COLORWHITE;
峰价中:=峰价上-HL*0.5,COLORMAGENTA;
峰量:MXBCD*100,NODRAW;
CB:=COST(60)> REF(COST(60),1);
XG:=REF(C,1)< 峰价中 AND CROSS(C,峰价中) AND CB;
DRAWICON(XG,峰价中,1);
ACB36:=COST(1);
ACB37:=COST(10);
ACB38:=COST(20);
ACB39:=COST(30);
ACB40:=COST(40);
ACB41:=COST(50);
ACB42:=COST(60);
ACB43:=COST(70);
ACB44:=COST(80);
ACB45:=COST(90);
ACB46:=COST(99);
ACB47:=COST(5);
ACB48:=COST(15);
ACB49:=COST(25);
ACB50:=COST(35);
ACB51:=COST(45);
ACB52:=COST(55);
ACB53:=COST(65);
ACB54:=COST(75);
ACB55:=COST(85);
ACB56:=COST(95);
ACB57:=ACB47-ACB36;
ACB58:=ACB37-ACB47;
ACB59:=ACB48-ACB37;
ACB60:=ACB38-ACB48;
ACB61:=ACB49-ACB38;
ACB62:=ACB39-ACB49;
ACB63:=ACB50-ACB39;
ACB64:=ACB40-ACB50;
ACB65:=ACB51-ACB40;
ACB66:=ACB41-ACB51;
ACB67:=ACB52-ACB41;
ACB68:=ACB42-ACB52;
ACB69:=ACB53-ACB42;
ACB70:=ACB43-ACB53;
ACB71:=ACB54-ACB43;
ACB72:=ACB44-ACB54;
ACB73:=ACB55-ACB44;
ACB74:=ACB45-ACB55;
ACB75:=ACB56-ACB45;
ACB76:=ACB46-ACB56;
ACB77:=MIN(ACB57,MIN(ACB58,MIN(ACB59,MIN(ACB60,MIN(ACB61,MIN(ACB62,MIN(ACB63,MIN(ACB64,MIN(ACB65,MIN(ACB66,MIN(ACB67,MIN(ACB68,MIN(ACB69,MIN(ACB70,MIN(ACB71,MIN(ACB72,MIN(ACB73,MIN(ACB74,MIN(ACB75,ACB76)))))))))))))))))));
ACB78:=IF(ACB57=ACB77,(ACB47+ACB36)/2,IF(ACB58=ACB77,(ACB47+ACB37)/2,IF(ACB59=ACB77,(ACB48+ACB37)/2,IF(ACB60=ACB77,(ACB48+ACB38)/2,IF(ACB61=ACB77,(ACB49+ACB38)/2,IF(ACB62=ACB77,(ACB49+ACB39)/2,IF(ACB63=ACB77,(ACB50+ACB39)/2,IF(ACB64=ACB77,(ACB50+ACB40)/2,IF(ACB65=ACB77,(ACB51+ACB40)/2,IF(ACB66=ACB77,(ACB51+ACB41)/2,IF(ACB67=ACB77,(ACB52+ACB41)/2,IF(ACB68=ACB77,(ACB52+ACB42)/2,IF(ACB69=ACB77,(ACB53+ACB42)/2,IF(ACB70=ACB77,(ACB53+ACB43)/2,IF(ACB71=ACB77,(ACB54+ACB43)/2,IF(ACB72=ACB77,(ACB54+ACB44)/2,IF(ACB73=ACB77,(ACB55+ACB44)/2,IF(ACB74=ACB77,(ACB55+ACB45)/2,IF(ACB75=ACB77,(ACB56+ACB45)/2,(ACB56+ACB46)/2)))))))))))))))))));
筹码峰线:ACB78,NODRAW,COLOR00EEEE;
STICKLINE(ISLASTBAR,筹码峰线,筹码峰线*1.001,60,0),COLORWHITE,COLORLIMAGENTA;
筹码单峰密集:=IF(CROSS(C,筹码峰线),1,0 );
DRAWICON(筹码单峰密集 AND ZT,L*0.98,9);


{筹码抓单峰副源码如下}

ZT:=C/REF(C,1)>1.094 AND H=C;
ACB36:=COST(1);
ACB37:=COST(10);
ACB38:=COST(20);
ACB39:=COST(30);
ACB40:=COST(40);
ACB41:=COST(50);
ACB42:=COST(60);
ACB43:=COST(70);
ACB44:=COST(80);
ACB45:=COST(90);
ACB46:=COST(99);
ACB47:=COST(5);
ACB48:=COST(15);
ACB49:=COST(25);
ACB50:=COST(35);
ACB51:=COST(45);
ACB52:=COST(55);
ACB53:=COST(65);
ACB54:=COST(75);
ACB55:=COST(85);
ACB56:=COST(95);
ACB57:=ACB47-ACB36;
ACB58:=ACB37-ACB47;
ACB59:=ACB48-ACB37;
ACB60:=ACB38-ACB48;
ACB61:=ACB49-ACB38;
ACB62:=ACB39-ACB49;
ACB63:=ACB50-ACB39;
ACB64:=ACB40-ACB50;
ACB65:=ACB51-ACB40;
ACB66:=ACB41-ACB51;
ACB67:=ACB52-ACB41;
ACB68:=ACB42-ACB52;
ACB69:=ACB53-ACB42;
ACB70:=ACB43-ACB53;
ACB71:=ACB54-ACB43;
ACB72:=ACB44-ACB54;
ACB73:=ACB55-ACB44;
ACB74:=ACB45-ACB55;
ACB75:=ACB56-ACB45;
ACB76:=ACB46-ACB56;
ACB77:=MIN(ACB57,MIN(ACB58,MIN(ACB59,MIN(ACB60,MIN(ACB61,MIN(ACB62,MIN(ACB63,MIN(ACB64,MIN(ACB65,MIN(ACB66,MIN(ACB67,MIN(ACB68,MIN(ACB69,MIN(ACB70,MIN(ACB71,MIN(ACB72,MIN(ACB73,MIN(ACB74,MIN(ACB75,ACB76)))))))))))))))))));
ACB78:=IF(ACB57=ACB77,(ACB47+ACB36)/2,IF(ACB58=ACB77,(ACB47+ACB37)/2,IF(ACB59=ACB77,(ACB48+ACB37)/2,IF(ACB60=ACB77,(ACB48+ACB38)/2,IF(ACB61=ACB77,(ACB49+ACB38)/2,IF(ACB62=ACB77,(ACB49+ACB39)/2,IF(ACB63=ACB77,(ACB50+ACB39)/2,IF(ACB64=ACB77,(ACB50+ACB40)/2,IF(ACB65=ACB77,(ACB51+ACB40)/2,IF(ACB66=ACB77,(ACB51+ACB41)/2,IF(ACB67=ACB77,(ACB52+ACB41)/2,IF(ACB68=ACB77,(ACB52+ACB42)/2,IF(ACB69=ACB77,(ACB53+ACB42)/2,IF(ACB70=ACB77,(ACB53+ACB43)/2,IF(ACB71=ACB77,(ACB54+ACB43)/2,IF(ACB72=ACB77,(ACB54+ACB44)/2,IF(ACB73=ACB77,(ACB55+ACB44)/2,IF(ACB74=ACB77,(ACB55+ACB45)/2,IF(ACB75=ACB77,(ACB56+ACB45)/2,(ACB56+ACB46)/2)))))))))))))))))));
筹码峰线:=ACB78;
筹码单峰密集:=IF(CROSS(C,筹码峰线)AND ZT,1,0 );
筹码单峰密集 COLORYELLOW ;
DRAWICON(筹码单峰密集,1,9);


未来函数检测结果如下:
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图