通达信筹码提高版主图指标 助力新规抓龙头 源码 附图
N1:=21;
DRAWTEXT_FIX(1,0.00,0.00,0,'')COLOR9966CC;
DRAWTEXT_FIX(1,0.00,0.01,0,EXTERNSTR(0,6))COLOR9966CC;
DRAWTEXT_FIX(1,0.00,0.04,0,'主营业务:'),COLORFF00FF;
DRAWTEXT_FIX(1,0.05,0.04,0,EXTERNSTR(0,1))COLORFF00FF;
DRAWTEXT_FIX(1,0.00,0.07,0,'所属概念:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.05,0.07,0,EXTERNSTR(0,2))COLOR00FFFF;
DRAWTEXT_FIX(1,0.00,0.00,0,'')COLORFFFFFF;
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);
LH1:=SUM(IF(C1>=(HI/GZ),V,0),DA);
LH2:=SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA);
LH3:=SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA);
LH4:=SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA);
LH5:=SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA);
LH6:=SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA);
LH7:=SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA);
LH8:=SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA);
LH9:=SUM(IF(C1>=(LO*GZ) AND C1<LO*POW(GZ,2),V,0),DA);
LH10:=SUM(IF(C1>=LO AND C1<LO*GZ,V,0),DA);
L1:=REFDATE(HHV(LH1,DA),DATE);
L2:=REFDATE(HHV(LH2,DA),DATE);
L3:=REFDATE(HHV(LH3,DA),DATE);
L4:=REFDATE(HHV(LH4,DA),DATE);
L5:=REFDATE(HHV(LH5,DA),DATE);
L6:=REFDATE(HHV(LH6,DA),DATE);
L7:=REFDATE(HHV(LH7,DA),DATE);
L8:=REFDATE(HHV(LH8,DA),DATE);
L9:=REFDATE(HHV(LH9,DA),DATE);
L10:=REFDATE(HHV(LH10,DA),DATE);
SS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);
STICKLINE(CEILING(DA*L1/SS)*3>=CURRBARSCOUNT,HI/GZ*0.98-GZ*0.0019,HI/GZ*0.97,9,0),COLOR222222;
STICKLINE(CEILING(DA*L2/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/POW(GZ,2),9,0),COLOR222222;
STICKLINE(CEILING(DA*L3/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,3),HI/POW(GZ,3)*99/100,9,0),COLOR222222;
STICKLINE(CEILING(DA*L4/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,4),HI/POW(GZ,4)*99/100,9,0),COLOR222222;
STICKLINE(CEILING(DA*L5/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/POW(GZ,5),9,0),COLOR222222;
STICKLINE(CEILING(DA*L6/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/POW(GZ,6),9,0),COLOR222222;
STICKLINE(CEILING(DA*L7/SS)*3>=CURRBARSCOUNT,HI/POW(GZ,7)*99/100,HI/POW(GZ,7),9,0),COLOR222222;
STICKLINE(CEILING(DA*L8/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,2)*99/100,9,0),COLOR222222;
STICKLINE(CEILING(DA*L9/SS)*3>=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,1)*99/100,9,0),COLOR222222;
STICKLINE(CEILING(DA*L10/SS)*3>=CURRBARSCOUNT,LO,LO-LO*0.01,9,0),COLOR222222;
DRAWKLINE(H,O,L,C);
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(WINNER(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,N1),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,N1)=HHV(GJ,2*N1+1);
BB1:=FILTER(AA1,N1);
CC1:=BACKSET(BB1,N1+1);
DD1:=FILTER(CC1,N1),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;
A1:MCST;
S升:IF(A1>=REF(A1,1),A1,DRAWNULL),LINETHICK2 COLORYELLOW;
S降:IF(A1<REF(A1,1),A1,DRAWNULL),LINETHICK2,COLORLICYAN;
MR:CROSS(C,A1) AND ZT,NODRAW;
DRAWICON(MR,L*0.999,15);
MCST:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL);{市场成本=以成交量(手)/当前流通股本(手)为权重成交额(元)/(100*成交量(手))的动态移动平均};
股东占流通比:FINVALUE(244)/FINVALUE(239);{十大流通股东/流通}
换手衰减系数:1/(1-股东占流通比),NODRAW;
{DRAWTEXT_FIX(ISLASTBAR,0,0,0,VARCAT('十大占流通%:',VAR2STR(股东占流通比*100,1))),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0,0.1,0,VARCAT('换手衰减系数:',VAR2STR(换手衰减系数,1))),COLORYELLOW;};
{筹码峰长}
HL:=(COST(97)-COST(3))/10;
CM1:=WINNER(COST(3)+HL*1)-WINNER(COST(3)+HL*0);
CM2:=WINNER(COST(3)+HL*2)-WINNER(COST(3)+HL*1);
CM3:=WINNER(COST(3)+HL*3)-WINNER(COST(3)+HL*2);
CM4:=WINNER(COST(3)+HL*4)-WINNER(COST(3)+HL*3);
CM5:=WINNER(COST(3)+HL*5)-WINNER(COST(3)+HL*4);
CM6:=WINNER(COST(3)+HL*6)-WINNER(COST(3)+HL*5);
CM7:=WINNER(COST(3)+HL*7)-WINNER(COST(3)+HL*6);
CM8:=WINNER(COST(3)+HL*8)-WINNER(COST(3)+HL*7);
CM9:=WINNER(COST(3)+HL*9)-WINNER(COST(3)+HL*8);
CM10:=WINNER(COST(3)+HL*10)-WINNER(COST(3)+HL*9);
MXCM:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(CM1,CM2),CM3),CM4),CM5),CM6),CM7),CM8),CM9),CM10);
峰价上:=IF(CM10>=MXCM,COST(3)+HL*10,IF(CM9>=MXCM,COST(3)+HL*9,IF(CM8>=MXCM,COST(3)+HL*8,
IF(CM7>=MXCM,COST(3)+HL*7,IF(CM6>=MXCM,COST(3)+HL*6,IF(CM5>=MXCM,COST(3)+HL*5,
IF(CM4>=MXCM,COST(3)+HL*4,IF(CM3>=MXCM,COST(3)+HL*3,IF(CM2>=MXCM,COST(3)+HL*2,
IF(CM1>=MXCM,COST(3)+HL*1,0)))))))))),COLORWHITE;
峰价下:=峰价上-HL,COLORWHITE;
峰价中:=峰价上-HL*0.5,COLORMAGENTA;
峰量:MXCM*100,NODRAW;
CB:=COST(60)> REF(COST(60),1);
XG:=REF(C,1)<峰价中 AND CROSS(C,峰价中) AND CB;
DRAWICON(XG,峰价中,1);
{最长筹码线}
X_36:=COST(1);
X_37:=COST(10);
X_38:=COST(20);
X_39:=COST(30);
X_40:=COST(40);
X_41:=COST(50);
X_42:=COST(60);
X_43:=COST(70);
X_44:=COST(80);
X_45:=COST(90);
X_46:=COST(99);
X_47:=COST(5);
X_48:=COST(15);
X_49:=COST(25);
X_50:=COST(35);
X_51:=COST(45);
X_52:=COST(55);
X_53:=COST(65);
X_54:=COST(75);
X_55:=COST(85);
X_56:=COST(95);
X_57:=X_47-X_36;
X_58:=X_37-X_47;
X_59:=X_48-X_37;
X_60:=X_38-X_48;
X_61:=X_49-X_38;
X_62:=X_39-X_49;
X_63:=X_50-X_39;
X_64:=X_40-X_50;
X_65:=X_51-X_40;
X_66:=X_41-X_51;
X_67:=X_52-X_41;
X_68:=X_42-X_52;
X_69:=X_53-X_42;
X_70:=X_43-X_53;
X_71:=X_54-X_43;
X_72:=X_44-X_54;
X_73:=X_55-X_44;
X_74:=X_45-X_55;
X_75:=X_56-X_45;
X_76:=X_46-X_56;
X_77:=MIN(X_57,MIN(X_58,MIN(X_59,MIN(X_60,MIN(X_61,MIN(X_62,MIN(X_63,MIN(X_64,MIN(X_65,MIN(X_66,MIN(X_67,MIN(X_68,MIN(X_69,MIN(X_70,MIN(X_71,MIN(X_72,MIN(X_73,MIN(X_74,MIN(X_75,X_76)))))))))))))))))));
X_78:=IF(X_57=X_77,(X_47+X_36)/2,IF(X_58=X_77,(X_47+X_37)/2,IF(X_59=X_77,(X_48+X_37)/2,IF(X_60=X_77,(X_48+X_38)/2,IF(X_61=X_77,(X_49+X_38)/2,IF(X_62=X_77,(X_49+X_39)/2,IF(X_63=X_77,(X_50+X_39)/2,IF(X_64=X_77,(X_50+X_40)/2,IF(X_65=X_77,(X_51+X_40)/2,IF(X_66=X_77,(X_51+X_41)/2,IF(X_67=X_77,(X_52+X_41)/2,IF(X_68=X_77,(X_52+X_42)/2,IF(X_69=X_77,(X_53+X_42)/2,IF(X_70=X_77,(X_53+X_43)/2,IF(X_71=X_77,(X_54+X_43)/2,IF(X_72=X_77,(X_54+X_44)/2,IF(X_73=X_77,(X_55+X_44)/2,IF(X_74=X_77,(X_55+X_45)/2,IF(X_75=X_77,(X_56+X_45)/2,(X_56+X_46)/2)))))))))))))))))));
筹码峰线:X_78,NODRAW,COLOR00EEEE;
STICKLINE(ISLASTBAR,筹码峰线,筹码峰线*1.001,60,0),COLORWHITE,COLORLIMAGENTA;
筹码单峰密集:IF(CROSS(C,筹码峰线),1,0 );
DRAWICON(筹码单峰密集 AND ZT,L*0.98,9);
N日平台:=30;
X_1:=VOL/REF(MA(VOL,5),1);
X_2:=(CLOSE/REF(CLOSE,1)-1)*100;
X_3:=CLOSE=HHV(CLOSE,N日平台);
X_4:=BARSLAST(FILTER(CROSS(0.9,X_3),2))+1;
平台高点:=REF(CLOSE,X_4);
X_7:=IF(FINDHIGHBARS(平台高点,1,20,1)>=10,1,0);
X_8:=CROSS(CLOSE,平台高点);
平台突破:IF(X_8>0 AND X_1>1 AND X_2>=3 AND X_7>0,1,0);
DRAWICON(平台突破 ,L*0.98,18);
未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:WINNER
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
该公式包含未来函数:DHIGH
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N1赋值:21
当满足条件1时,在横轴0.00纵轴0.00位置书写文字
DRAWTEXT_FIX(1,0.00,0.01,0,EXTERNSTR(0,6))COLOR9966CC
当满足条件1时,在横轴0.00纵轴0.04位置书写文字
DRAWTEXT_FIX(1,0.05,0.04,0,EXTERNSTR(0,1))COLORFF00FF
当满足条件1时,在横轴0.00纵轴0.07位置书写文字
DRAWTEXT_FIX(1,0.05,0.07,0,EXTERNSTR(0,2))COLOR00FFFF
当满足条件1时,在横轴0.00纵轴0.00位置书写文字
如果130>TOTALBARSCOUNT返回TOTALBARSCOUNT否则返回130
如果 到最后交易的周期>DA1返回0否则返回DA1
HI赋值:REFDATE(DA日内H最高值,DATE)
LO赋值:REFDATE(DA日内L最低值,DATE)
如果 到最后交易的周期<=DA返回C否则返回DRAWNULL
GZ赋值:EXP(LN(HI/LO)/10)
LH1赋值:SUM(IF(C1>=(HI/GZ),V,0),DA)
LH2赋值:SUM(IF(C1>=(HI/POW(GZ,2)) AND C1<(HI/GZ),V,0),DA)
LH3赋值:SUM(IF(C1>=(HI/POW(GZ,3)) AND C1<(HI/POW(GZ,2)),V,0),DA)
LH4赋值:SUM(IF(C1>=(HI/POW(GZ,4)) AND C1<(HI/POW(GZ,3)),V,0),DA)
LH5赋值:SUM(IF(C1>=(HI/POW(GZ,5)) AND C1<(HI/POW(GZ,4)),V,0),DA)
LH6赋值:SUM(IF(C1>=(HI/POW(GZ,6)) AND C1<(HI/POW(GZ,5)),V,0),DA)
LH7赋值:SUM(IF(C1>=(HI/POW(GZ,7)) AND C1<(HI/POW(GZ,6)),V,0),DA)
LH8赋值:SUM(IF(C1>=(HI/POW(GZ,8)) AND C1<(HI/POW(GZ,7)),V,0),DA)
LH9赋值:SUM(IF(C1>=(LO*GZ) AND C1如果C1>=LO AND C1
L1赋值:REFDATE(DA日内LH1最高值,DATE)
L2赋值:REFDATE(DA日内LH2最高值,DATE)
L3赋值:REFDATE(DA日内LH3最高值,DATE)
L4赋值:REFDATE(DA日内LH4最高值,DATE)
L5赋值:REFDATE(DA日内LH5最高值,DATE)
L6赋值:REFDATE(DA日内LH6最高值,DATE)
L7赋值:REFDATE(DA日内LH7最高值,DATE)
L8赋值:REFDATE(DA日内LH8最高值,DATE)
L9赋值:REFDATE(DA日内LH9最高值,DATE)
L10:=REFDATE(DA日内LH10最高值,DATE)
SS赋值:(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10)
STICKLINE(CEILING(DA*L1/SS)*3>= 到最后交易的周期,HI/GZ*0.98-GZ*0.0019,HI/GZ*0.97,9,0),COLOR222222
STICKLINE(CEILING(DA*L2/SS)*3>= 到最后交易的周期,HI/POW(GZ,2)*99/100,HI/POW(GZ,2),9,0),COLOR222222
STICKLINE(CEILING(DA*L3/SS)*3>= 到最后交易的周期,HI/POW(GZ,3),HI/POW(GZ,3)*99/100,9,0),COLOR222222
STICKLINE(CEILING(DA*L4/SS)*3>= 到最后交易的周期,HI/POW(GZ,4),HI/POW(GZ,4)*99/100,9,0),COLOR222222
STICKLINE(CEILING(DA*L5/SS)*3>= 到最后交易的周期,HI/POW(GZ,5)*99/100,HI/POW(GZ,5),9,0),COLOR222222
STICKLINE(CEILING(DA*L6/SS)*3>= 到最后交易的周期,HI/POW(GZ,6)*99/100,HI/POW(GZ,6),9,0),COLOR222222
STICKLINE(CEILING(DA*L7/SS)*3>= 到最后交易的周期,HI/POW(GZ,7)*99/100,HI/POW(GZ,7),9,0),COLOR222222
STICKLINE(CEILING(DA*L8/SS)*3>= 到最后交易的周期,LO*POW(GZ,2),LO*POW(GZ,2)*99/100,9,0),COLOR222222
STICKLINE(CEILING(DA*L9/SS)*3>= 到最后交易的周期,LO*POW(GZ,1),LO*POW(GZ,1)*99/100,9,0),COLOR222222
STICKLINE(CEILING(DA*L10/SS)*3>= 到最后交易的周期,LO,LO-LO*0.01,9,0),COLOR222222
DRAWKLINE(H,O,L,C)
输出ZT:C/1日前的C>1.094 AND H=C
当满足条件ZT时,在C和O之间画柱状线
输出W5:获利盘为5%的成本分布,DOTLINE
输出W95:获利盘为95%的成本分布,DOTLINE
输出C2:W95-W5,NODRAW
输出获利筹码:CONST(C计算的获利盘比例*100),NODRAW
ZG赋值:598日内H最高值
输出BZ:C2/ZG*100,NODRAW
输出JZ:BZ<20 AND CROSS(C,获利盘为90%的成本分布) AND C/1日前的C>1.0618
当满足条件JZ时,在L*0.989和38之间画图标
{过前高}
GJ赋值:N1日内H最高值,COLORRED,POINTDOT
ZTS:上次GJ<>1日前的GJ距今天数>=6,NODRAW
TJ1赋值:上次GJ=1日前的GJ距今天数
输出HX:H>IF(ZTS=1,1日前的GJ,DRAWNULL),NODRAW
AA1赋值:N1日前的GJ=2*N1+1日内GJ最高值
BB1赋值:AA1的N1过滤
CC1赋值:BACKSET(BB1,N1+1)
DD1赋值:CC1的N1过滤,NODRAW
{高点}
前期高点赋值:REF(GJ,上次DD1距今天数),COLORFF00FF,DOTLINE
当满足条件C>0时,在前期高点和前期高点之间画柱状线
PL1赋值:(CROSS(C,1日前的前期高点)OR L<前期高点 AND C>前期高点) AND C/1日前的C>=1.098 AND C=H,NODRAW
STICKLINE(PL1,(C+O)/2,C,3,0),COLORRED
输出A1:MCST
输出S升:IF(A1>=1日前的A1,A1,DRAWNULL),LINETHICK2 COLORYELLOW
输出S降:IF(A1<1日前的A1,A1,DRAWNULL),LINETHICK2,COLORLICYAN
输出MR:C上穿A1 AND ZT,NODRAW
当满足条件MR时,在L*0.999和15之间画图标
MCST赋值:DMA(成交额/(100*成交量),成交量/当前流通股本)
{市场成本=以成交量(手)/当前流通股本(手)为权重成交额(元)/(100*成交量(手))的动态移动平均}
输出股东占流通比:FINVALUE(244)/FINVALUE(239)
输出{十大流通股东/流通}
换手衰减系数:1/(1-股东占流通比),NODRAW
{DRAWTEXT_FIX(ISLASTBAR,0,0,0,VARCAT('十大占流通%:',VAR2STR(股东占流通比*100,1))),COLORYELLOW
DRAWTEXT_FIX(ISLASTBAR,0,0.1,0,VARCAT('换手衰减系数:',VAR2STR(换手衰减系数,1))),COLORYELLOW
}
{筹码峰长}
HL赋值:(获利盘为97%的成本分布-COST(3))/10
CM1赋值:获利盘为3计算的获利盘比例+HL*1%的成本分布-COST(3计算的获利盘比例+HL*0)
CM2赋值:获利盘为3计算的获利盘比例+HL*2%的成本分布-COST(3计算的获利盘比例+HL*1)
CM3赋值:获利盘为3计算的获利盘比例+HL*3%的成本分布-COST(3计算的获利盘比例+HL*2)
CM4赋值:获利盘为3计算的获利盘比例+HL*4%的成本分布-COST(3计算的获利盘比例+HL*3)
CM5赋值:获利盘为3计算的获利盘比例+HL*5%的成本分布-COST(3计算的获利盘比例+HL*4)
CM6赋值:获利盘为3计算的获利盘比例+HL*6%的成本分布-COST(3计算的获利盘比例+HL*5)
CM7赋值:获利盘为3计算的获利盘比例+HL*7%的成本分布-COST(3计算的获利盘比例+HL*6)
CM8赋值:获利盘为3计算的获利盘比例+HL*8%的成本分布-COST(3计算的获利盘比例+HL*7)
CM9赋值:获利盘为3计算的获利盘比例+HL*9%的成本分布-COST(3计算的获利盘比例+HL*8)
CM10:=获利盘为3计算的获利盘比例+HL*10%的成本分布-COST(3计算的获利盘比例+HL*9)
MXCM赋值:CM1和CM2较大值,CM3),CM4),CM5),CM6),CM7),CM8),CM9),CM10)
峰价上赋值:IF(CM10>=MXCM,获利盘为3%的成本分布+HL*10,IF(CM9>=MXCM,获利盘为3%的成本分布+HL*9,IF(CM8>=MXCM,获利盘为3%的成本分布+HL*8,
IF(CM7>=MXCM,获利盘为3%的成本分布+HL*7,IF(CM6>=MXCM,获利盘为3%的成本分布+HL*6,IF(CM5>=MXCM,获利盘为3%的成本分布+HL*5,
IF(CM4>=MXCM,获利盘为3%的成本分布+HL*4,IF(CM3>=MXCM,获利盘为3%的成本分布+HL*3,IF(CM2>=MXCM,获利盘为3%的成本分布+HL*2,
IF(CM1>=MXCM,获利盘为3%的成本分布+HL*1,0)))))))))),COLORWHITE
峰价下赋值:峰价上-HL,COLORWHITE
峰价中赋值:峰价上-HL*0.5,COLORMAGENTA
输出峰量:MXCM*100,NODRAW
CB赋值:获利盘为60%的成本分布> REF(获利盘为60%的成本分布,1)
XG赋值:1日前的C<峰价中 AND C上穿峰价中 AND CB
当满足条件XG时,在峰价中和1之间画图标
{最长筹码线}
X_36赋值:获利盘为1%的成本分布
X_37赋值:获利盘为10%的成本分布
X_38赋值:获利盘为20%的成本分布
X_39赋值:获利盘为30%的成本分布
X_40赋值:获利盘为40%的成本分布
X_41赋值:获利盘为50%的成本分布
X_42赋值:获利盘为60%的成本分布
X_43赋值:获利盘为70%的成本分布
X_44赋值:获利盘为80%的成本分布
X_45赋值:获利盘为90%的成本分布
X_46赋值:获利盘为99%的成本分布
X_47赋值:获利盘为5%的成本分布
X_48赋值:获利盘为15%的成本分布
X_49赋值:获利盘为25%的成本分布
X_50赋值:获利盘为35%的成本分布
X_51赋值:获利盘为45%的成本分布
X_52赋值:获利盘为55%的成本分布
X_53赋值:获利盘为65%的成本分布
X_54赋值:获利盘为75%的成本分布
X_55赋值:获利盘为85%的成本分布
X_56赋值:获利盘为95%的成本分布
X_57赋值:X_47-X_36
X_58赋值:X_37-X_47
X_59赋值:X_48-X_37
X_60赋值:X_38-X_48
X_61赋值:X_49-X_38
X_62赋值:X_39-X_49
X_63赋值:X_50-X_39
X_64赋值:X_40-X_50
X_65赋值:X_51-X_40
X_66赋值:X_41-X_51
X_67赋值:X_52-X_41
X_68赋值:X_42-X_52
X_69赋值:X_53-X_42
X_70赋值:X_43-X_53
X_71赋值:X_54-X_43
X_72赋值:X_44-X_54
X_73赋值:X_55-X_44
X_74赋值:X_45-X_55
X_75赋值:X_56-X_45
X_76赋值:X_46-X_56
X_77赋值:MIN(X_57,MIN(X_58,MIN(X_59,MIN(X_60,MIN(X_61,MIN(X_62,MIN(X_63,MIN(X_64,MIN(X_65,MIN(X_66,MIN(X_67,MIN(X_68,MIN(X_69,MIN(X_70,MIN(X_71,MIN(X_72,MIN(X_73,MIN(X_74,MIN(X_75,X_76)))))))))))))))))))
X_78赋值:IF(X_57=X_77,(X_47+X_36)/2,IF(X_58=X_77,(X_47+X_37)/2,IF(X_59=X_77,(X_48+X_37)/2,IF(X_60=X_77,(X_48+X_38)/2,IF(X_61=X_77,(X_49+X_38)/2,IF(X_62=X_77,(X_49+X_39)/2,IF(X_63=X_77,(X_50+X_39)/2,IF(X_64=X_77,(X_50+X_40)/2,IF(X_65=X_77,(X_51+X_40)/2,IF(X_66=X_77,(X_51+X_41)/2,IF(X_67=X_77,(X_52+X_41)/2,IF(X_68=X_77,(X_52+X_42)/2,IF(X_69=X_77,(X_53+X_42)/2,IF(X_70=X_77,(X_53+X_43)/2,IF(X_71=X_77,(X_54+X_43)/2,IF(X_72=X_77,(X_54+X_44)/2,IF(X_73=X_77,(X_55+X_44)/2,IF(X_74=X_77,(X_55+X_45)/2,IF(X_75=X_77,(X_56+X_45)/2,(X_56+X_46)/2)))))))))))))))))))
输出筹码峰线:X_78,NODRAW,COLOR00EEEE
当满足条件ISLASTBAR时,在筹码峰线和筹码峰线*1.001之间画柱状线
输出筹码单峰密集:IF(C上穿筹码峰线,1,0 )
当满足条件筹码单峰密集 AND ZT时,在L*0.98和9之间画图标
N日平台赋值:30
X_1赋值:成交量/REF(成交量的5日简单移动平均,1)
X_2赋值:(CLOSE/1日前的CLOSE-1)*100
X_3赋值:CLOSE=N日平台日内CLOSE最高值
X_4赋值:上次FILTER(0.9上穿X_3,2距今天数)+1
平台高点赋值:X_4日前的CLOSE
X_7赋值:IF(FINDHIGHBARS(平台高点,1,20,1)>=10,1,0)
X_8赋值:CLOSE上穿平台高点
如果X_8>0 AND X_1>1 AND X_2>=3 AND X_7>0返回1否则返回0
当满足条件平台突破 时,在L*0.98和18之间画图标