主图源码:
M10:MA(CLOSE,10),;
M20:MA(CLOSE,20),;
TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;
DRAWTEXT(TJ,LOW*0.986,'↖高量柱'),COLORYELLOW;
STICKLINE(TJ,OPEN,CLOSE,1.2,0),COLORYELLOW;
K1:=SUMBARS(TJ,1);
STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),6,0),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.004,1,0,DYBLOCK),COLORYELLOW,LINETHICK2;
DRAWTEXT_FIX(C>0,0.06,1,0,HYBLOCK),COLORRED,LINETHICK2;
DRAWTEXT_FIX(C>0,0.12,1,0,EXTERNSTR(0,1)),COLORWHITE,LINETHICK2;
DRAWTEXT_FIX(C>0,0.004,1,0,DYBLOCK),COLORYELLOW,LINETHICK2;
DRAWTEXT_FIX(C>0,0.06,1,0,HYBLOCK),COLORRED,LINETHICK2;
DRAWTEXT_FIX(C>0,0.12,1,0,EXTERNSTR(0,1)),COLORWHITE,LINETHICK2;
ZT:=(C-REF(C,1))/REF(C,1)*100>9.5 AND C=H;
DRAWLINE(ZT,H,REF(ZT,1),REF(H,1),1);
{通用条件}
LAST3K:=CURRBARSCOUNT>4;
上涨:=REF(CLOSE,3)>REF(CLOSE,4);
未跌破:=REF(CLOSE,2)>REF(LOW,3) AND REF(CLOSE,1)>REF(LOW,3) AND CLOSE>REF(LOW,3);
缩量:=REF(VOL,3)>0.35*(REF(VOL,1)+REF(VOL,2)+VOL) AND REF(VOL,3)>REF(VOL,2);{1.05/3,5%}
逐级缩量:=REF(VOL,3)>=REF(VOL,2) AND REF(VOL,2)>=REF(VOL,1) AND REF(VOL,1)>=VOL;{平量也看成缩量}
逐级价升:=REF(CLOSE,3)<REF(CLOSE,2) AND REF(CLOSE,2)<=REF(CLOSE,1) AND REF(CLOSE,1)<=CLOSE;
{倍量柱}
倍量柱1:=(REF(VOL,3)>=REF(VOL,4)*1.8),NODRAW;{实际给1.8倍}
倍量柱:VOL>REF(VOL,1)*1.8,NODRAW,COLORWHITE;
{高量柱}
高量柱1:=REF(VOL,3)>0.25*(REF(SUM(VOL,3),4)+SUM(VOL,3)) AND REF(VOL,3)>REF(VOL,4) AND REF(VOL,3)>REF(VOL,2),NODRAW,COLORWHITE;{1.5/6,1.5倍}
TEMP1:=BACKSET(高量柱1,4);
高量柱:FILTER(TEMP1,3),NODRAW,COLORWHITE;
{平量柱}
平量柱1:=REF(VOL,3)>REF(VOL,2)*0.97 AND REF(VOL,3)<REF(VOL,2)*1.03 AND REF(VOL,3)>=1.5*REF(VOL,4),NODRAW,COLORWHITE;{平量柱取前一K线,到底是取前还是取后,你自己选}
TEMP2:=BACKSET(平量柱1,4);
平量柱:FILTER(TEMP2,3),NODRAW,COLORWHITE;
{梯量柱}
梯量柱1:=REF(VOL,3)>REF(VOL,4) AND REF(VOL,4)>REF(VOL,5) AND REF(CLOSE,3)>=REF(CLOSE,4) AND REF(CLOSE,4)>=REF(CLOSE,5),NODRAW,COLORWHITE;{虽然是梯量柱,但也不能太小}
N:=3;
BL:=4;
BN:=20;
C2:=REF(C,1);
L0:=0.00;
L1:=ABS(L-REF(L,1))<=L0;
L2:=ABS(L-REF(L,2))<=L0;
L3:=ABS(L-REF(L,3))<=L0;
L4:=ABS(L-REF(L,4))<=L0;
L5:=ABS(L-REF(L,5))<=L0;
首次:=L1 OR L2 OR L3 {OR L4 OR L5};
中点:=(H+L)/2;
本日跌率:=(O-C)*100/O;
比前跌率:=(REF(C,1)-C)*100/REF(C,1);
左大阴K:=FILTER(比前跌率>BL,N) ;
天数:=BARSLAST(左大阴K);
JC:=REF(C,天数);
下:=HHV(中点,天数)<REF(中点,天数);
MAVOL1:=MA(V,5);
JJ:=(3*C+H+L+O)/6;
VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);
LJL:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(HIGH,3),1,0)));
TP:=TJ2=1;
STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),6,0),COLORYELLOW;
TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(LJL)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(LOW,3),1,0)));
DRAWTEXT_FIX(1,0.980,20,1,'提供服务:公式修改,还原源码,做选股。'),COLOR666666;
STFZ:=TJ3=1;
CL:=STFZ AND TP;
TJCL:=FILTER(CL,3);
STICKLINE(LJL,OPEN,CLOSE,5,0),COLORYELLOW;
DRAWTEXT(LJL,L*0.99,'黄金柱'),COLORF00FF0;
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,1.2,0),COLORRED;
梯量柱:VOL>REF(VOL,1) AND REF(VOL,1)>=REF(VOL,2) AND CLOSE>REF(CLOSE,1),NODRAW,COLORWHITE;
将军柱1:=上涨 AND 未跌破 AND (倍量柱1 OR 高量柱1 OR 平量柱1 OR 梯量柱1),NODRAW,COLORYELLOW;
{黄金柱}
黄金柱1:=将军柱1 AND 缩量,NODRAW,COLORYELLOW;
{标准黄金柱}
标准黄金柱1:=黄金柱1 AND 逐级缩量 AND 逐级价升,NODRAW,COLORRED;
将军柱2:=将军柱1 AND 黄金柱1=0 AND BARSLAST(REF(将军柱1,1))>1;
黄金柱2:=黄金柱1 AND 标准黄金柱1=0 AND BARSLAST(REF(将军柱1,1))>1;
将军柱3:=BACKSET(将军柱2,4);
将军柱:FILTER(将军柱3,3),NODRAW,COLORWHITE;
黄金柱3:=BACKSET(黄金柱2,4);
黄金柱:FILTER(黄金柱3,3),NODRAW,COLORYELLOW;
标准黄金柱2:=BACKSET(标准黄金柱1,4);
标准黄金柱:FILTER(标准黄金柱2,3),NODRAW,COLORRED;