波浪理论主图指标

VOL03082020-11-03 11:44:22

M5:=MA(C,5),LINETHICK2; M10:=MA(C,10); STICKLINE(C<=O,LOW,HIGH,0,0),COLORLIGREEN; STICKLINE(C<=O,CLOSE,OPEN,3,1),COLORLIGREEN; T:=BARSLAST(CROSS(M5,M10)); ST:=BARSLAST(CROSS(M10,M5)); T1:=SUMBARS(T=0,2); T2:=SUMBARS(T=0,3); ST1:=SUMBARS(ST=0,2); ST2:=SUMBARS(ST=0,3); H1:=IF(CONST(M5)>CONST(M10),HHV(H,T+1),REF(HHV(H,T+1),ST)); L1:=IF(CONST(M5)<CONST(M10),LLV(L,ST+1),REF(LLV(L,ST+1),T)); H2:=IF(CONST(M5)>CONST(M10),REF(HHV(H,T+1),ST),REF(HHV(H,T+1),ST1-1)); L2:=IF(CONST(M5)<CONST(M10),REF(LLV(L,ST+1),T),REF(LLV(L,ST+1),T1-1)); H3:=IF(CONST(M5)>CONST(M10),REF(HHV(H,T+1),ST1-1),REF(HHV(H,T+1),ST2-1)); L3:=IF(CONST(M5)<CONST(M10),REF(LLV(L,ST+1),T1-1),REF(LLV(L,ST+1),T2-1)); TJ1:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(T2) AND CURRBARSCOUNT<=CONST(ST2) AND L=CONST(L3); TJ2:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(ST1) AND CURRBARSCOUNT<=CONST(T2) AND H=CONST(H3); TJ3:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(T1) AND CURRBARSCOUNT<=CONST(ST1) AND L=CONST(L2); TJ4:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(ST) AND CURRBARSCOUNT<=CONST(T1) AND H=CONST(H2); TJ5:=CONST(M5)>CONST(M10) AND CURRBARSCOUNT>=CONST(T)+1 AND CURRBARSCOUNT<=CONST(ST)+1 AND L=CONST(L1); TJ6:=CONST(M5)>CONST(M10) AND H=CONST(H1) AND CURRBARSCOUNT<=CONST(ST2); TJ7:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(ST2) AND CURRBARSCOUNT<=CONST(T2) AND H=CONST(H3); TJ8:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(T1) AND CURRBARSCOUNT<=CONST(ST2) AND L=CONST(L3); TJ9:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(ST1) AND CURRBARSCOUNT<=CONST(T1) AND H=CONST(H2); TJ10:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(T) AND CURRBARSCOUNT<=CONST(ST1) AND L=CONST(L2); TJ11:=CONST(M5)<CONST(M10) AND CURRBARSCOUNT>=CONST(ST)+1 AND CURRBARSCOUNT<=CONST(T)+1 AND H=CONST(H1); TJ12:=CONST(M5)<CONST(M10) AND L=CONST(L1)AND CURRBARSCOUNT<=CONST(T2); DRAWLINE(TJ1,L,TJ2,H,0),COLORMAGENTA; DRAWLINE(TJ2,H,TJ3,L,0),COLORMAGENTA; DRAWLINE(TJ3,L,TJ4,H,0),COLORMAGENTA; DRAWLINE(TJ4,H,TJ5,L,0),COLORMAGENTA; DRAWLINE(TJ5,L,TJ6,H,0),COLORMAGENTA; DRAWLINE(TJ7,H,TJ8,L,0),COLORGREEN; DRAWLINE(TJ8,L,TJ9,H,0),COLORGREEN; DRAWLINE(TJ9,H,TJ10,L,0),COLORGREEN; DRAWLINE(TJ10,L,TJ11,H,0),COLORGREEN; DRAWLINE(TJ11,H,TJ12,L,0),COLORGREEN; 近高:H1,COLORMAGENTA,NODRAW; 近低:L1,COLORGREEN,NODRAW; 中高:H2,COLORMAGENTA,NODRAW; 中底:L2,COLORGREEN,NODRAW; 远高:H3,COLORMAGENTA,NODRAW; 远底:L3,COLORGREEN,NODRAW; 高:=REFDATE(HHV(H,150),DATE); 低:=REFDATE(LLV(L,466),DATE); H4:=高-(高-低)*0.625; 待涨:=NOT(UPNDAY(CLOSE,5)); 底:REFDATE(REF(LLV(L,55),3),DATE)COLORRED; DRAWTEXT(CURRBARSCOUNT=13,底,CON2STR(底,2)),COLORWHITE; 底线:REFDATE(REF(LLV(L,150),3),DATE)COLORLIRED; 止:=IF(CURRBARSCOUNT<70,CONST(底线),底线); DRAWTEXT(ISLASTBAR,止,'【①浪底】')COLORYELLOW; DRAWTEXT(CURRBARSCOUNT=13,止,CON2STR(止,2)),COLORWHITE; DRAWTEXT_FIX(1,0.1,5,0,'※指标联盟※')COLORYELLOW;

(0)

相关推荐