霍邱二中翰林:趋势线

来源:百度文库 编辑:九乡新闻网 时间:2024/06/19 14:49:21
VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2:=CROSS(VAR1,0.9);VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4:=CROSS(VAR3,0.9);VAR5:=IF(VAR2,HIGH,IF(VAR4,LOW,0));趋势线:=ZIG(3,6);DRAWTEXT(CROSS(ZIG(3,6),TROUGHBARS(3,6,1)),HIGH*1.008,'加仓*'),LINETHICK1;VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOWREF(LOW,1) AND HIGH>REF(HIGH,1),3);VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGHREF(LOW,1)AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)REF(LOW,1) AND HIGH>REF(HIGH,1),3);VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOWREF(LOW,1)AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)LOW+0.01),L-0.02,'买*'),COLORRED;MA5:MA(C,5),COLORWHITE,LINETHICK2;MA18:MA(C,18),COLOR0099FF,LINETHICK2;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);A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)BARSLAST(LD) AND NOT(LD);波峰:IF(T1,A,A),COLORFF00FF,POINTDOT;STICKLINE(T1,A,A,9,0),COLORFF00FF;波谷:IF(T2,B,B),COLOR80FF00,POINTDOT;STICKLINE(T2,B,B,9,0),COLOR80FF00;买进价:=((C-REF(MA5,1))/5+MA5)*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);白买进:IF(买进条件,L,H),COLORWHITE,POINTDOT;STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK2;STICKLINE(买进条件,O,C,4,1),COLORWHITE,LINETHICK2;加码价:=((C-REF(MA18,1))/18+MA18)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);黄加码:IF(加码条件,L,H),COLORYELLOW,POINTDOT;STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;STICKLINE(加码条件,O,C,4,1),COLORYELLOW,LINETHICK2;现价:CLOSE,POINTDOT,COLOR000F89;DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,LOW*0.98,1);DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) ,HIGH*1.02,2);DRAWTEXT(CROSS(ZIG(3,10),REF(ZIG(3,10),1)),LOW*0.99,'买') , COLORRED,LINETHICK1;DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.008,'卖') , COLORGREEN,LINETHICK1;