受一发千钧‘强弱K线’和红枫林-2009‘看庄定势’启发,我也来优化一下!
首先感谢两位老师的好智慧和好指标!
很早就盼望着有这么好的主图,这里不揣冒昧,斗胆而为,作了如下改动:
1。鉴于主力主动,股票就涨是红色的,所以改成了红色;
2。鉴于黄金柱的特别作用及美丽的色彩,用上了黄s芯柱;
3。表示相对地量的棕色在大智慧主图里几乎没有显示,改成了绿色;
4。把芯柱的宽度加大了,在大智慧中更加一目了然;
5。添加了前期高位,前期低位及虚线;
6。补上了操盘提示。
7。适用大智慧。
不妥之处,望各位老师和同学批评指正。
源码如下:
{黄金K线-大智慧通用}
MA10:MA(C,10),LINETHICK0;
MA60:MA(C,60),LINETHICK0;
VAR6:=(( ABS((OPEN-CLOSE))/(HIGH-LOW))*VOL);
VAR7:=(( (HIGH-IF((CLOSE>OPEN),CLOSE,OPEN))/(HIGH-LOW))*VOL);
VAR8:=(( (IF((CLOSE>OPEN),OPEN,CLOSE)-LOW)/(HIGH-LOW))*VOL);
VAR9:=IF(((VOL/CAPITAL)>0.001),1,EXP(ABS(LOG(((VOL/CAPITAL)*100)))));
加仓:=VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE>OPEN;
减仓:=VAR6>=VAR7 AND VAR6>=VAR8 AND CLOSE<OPEN;
洗盘:=VAR8>VAR6 AND VAR8>VAR7;
高抛:=VAR7>VAR6 AND VAR7>VAR8;
地量:=VAR9>2 AND VOL<MA(VOL,5)/2;
主动加仓:STICKLINE(加仓,H,L,0,0),COLORred;
STICKLINE(加仓,O,C,5,0),COLORred;
轻度洗盘:STICKLINE(洗盘,H,L,0,0),COLORWHITE;
STICKLINE(洗盘,O,C,5,0),COLORWHITE;
深度洗盘:STICKLINE(减仓,H,L,0,0),COLORBLUE;
STICKLINE(减仓,O,C,5,0),COLORBLUE;
主动高抛:STICKLINE(高抛,H,L,0,0),COLORMAGENTA;
STICKLINE(高抛,O,C,5,0),COLORMAGENTA;
相对地量:STICKLINE(地量,H,L,0,0),COLORgreen;
STICKLINE(相对地量,O,C,5,0),COLORgreen;
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);
STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),6,0),COLORred;
STICKLINE(CLOSE,REF(CLOSE,BARSLAST(LJL)),REF(CLOSE,BARSLAST(LJL)),6,0),COLORyellow;
STICKLINE(LJL,OPEN,CLOSE,3,0),COLORyellow;
MA(C,10),COLORWHITE;
MA(C,60),COLORGREEN;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
前期高位:REF(H,BARSLAST(HD)), COLORff00ff,POINTDOT,linethick3;
前期低位:REF(L,BARSLAST(LD)), COLORgreen,POINTDOT,linethick3;
DRAWTEXTABS(10,0,'蓝芯-主力低位深度洗盘或高位出货坚决'),colorblue,LINETHICK1;
DRAWTEXTABS(10,15,'白芯-主力轻度洗盘'),colorwhite,LINETHICK1;
DRAWTEXTABS(10,30,'棕芯-出现了近期相对地量'),colorgreen,LINETHICK1;
DRAWTEXTABS(10,45,'粉芯-主力在做高抛低吸或低吸高抛'),colorff00ff,LINETHICK1;
DRAWTEXTABS(10,60,'红芯-主力吸筹进货积极主动'),colorred,LINETHICK1;
DRAWTEXTABS(10,75,'黄芯-主力吸筹进货强并且成交量出现黄金柱'),coloryellow,LINETHICK1; |