把西电老师的【底部支撑决策】用于DZH.我加进了
【1】底部支撑:HHV(MA(L,11),98),COLORGREEN,LINETHICK1; 一律用98对于强势股.和弱势股差别太大.改为参数个人可调.
【2】TP:=TJ2=1;大智慧不显示改用【VERTLINE(TP,2),COLOR00ffff;】
【3】加入顶低反转信号
{底部支撑 }
INPUT:KM(55,21,240);
DRAWGBKlast(c>0,strip(RGB(0,0,500),RGB(0,0,0),0));
底部支撑:HHV(MA(L,13),KM),COLORFF9900,POINTDOT,LINETHICK3;
压力1:MA(底部支撑,11),COLORCYAN;
压力2:MA(底部支撑,18),COLORMAGENTA;
压力3:MA(底部支撑,21),COLORRED;
压力4:MA(底部支撑,34),COLORFF00FF,LINETHICK1;
压力5:MA(底部支撑,55),COLORBFFFF9,LINETHICK1;
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)));
TJ3:=FILTER(TJ2,10);
TP:=TJ3=1;
VERTLINE(TP,2),COLOR00ffff;
STICKLINE((HIGH-REF(C,1))/REF(C,1)*100<1.1,MAX(OPEN,REF(CLOSE,1)),CLOSE,4,0),COLORGREEN;
STICKLINE((HIGH-REF(C,1))/REF(C,1)*100>=1.1,MIN(OPEN,REF(CLOSE,1)),CLOSE,4,0),COLORWHITE;
STICKLINE((HIGH-REF(C,1))/REF(C,1)*100>=2.1,MIN(OPEN,REF(CLOSE,1)),CLOSE,4,0), COLORRED;
买:=EMA(C,3);
卖:=EMA(SLOPE(C,21)*21+C,43);
{6.金黄K线转向升}
STICKLINE(cross(买,卖) ,CLOSE ,OPEN,6,0),COLOR0099ff,LAYER0;
STICKLINE(cross(买,卖),LOW,HIGH,2,0 ),COLOR0099ff;
{白色K线转向跌}
STICKLINE(cross(卖,买),CLOSE ,OPEN,6,0),COLORFFFFFF,LAYER0;
STICKLINE(cross(卖,买),LOW,HIGH,2,0 ),COLOR00FFff;
{波浪顶底}
HHD:=FILTER(BACKSET(FILTER(ref(H,10)=HHV(H,2*10+1),10),10+1),10);
LLD:=FILTER(BACKSET(FILTER(ref(L,10)=LLV(L,2*10+1),10),10+1),10);
A:=ref(H,BARSLAST(HHD));
B:=ref(L,BARSLAST(LLD));
TT1:=BARSLAST(HHD)
波浪顶:if(TT1,A,A),COLORFF00FF,POINTDOT,LINETHICK3;
波浪底:if(TT2,B,B),COLOR80FF00,POINTDOT,LINETHICK3;
{K线}
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),OPEN,CLOSE,0,0),colorred;
STICKLINE(CLOSE
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000088;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR0000AA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000EE;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000FF;