H1:=MA(H,3); L1:=MA(L,3); 江恩三日線:IF(H1<=REF(H1,1),H1,L1)COLORGREEN,LINETHICK2; 支撐:IF(江恩三日線>=REF(江恩三日線,1),江恩三日線,DRAWNULL),LINETHICK3,COLORRED; 壓力:IF(NOT(江恩三日線>=REF(江恩三日線,1)),江恩三日線,DRAWNULL),LINETHICK3,COLORGREEN; T:=江恩三日線; X1:=CROSS(L,壓力)&&C>O; X2:=CROSS(T,C); 買:X1=1,COLORRED,NODRAW; 賣:X2=1,COLORGREEN,NODRAW; DRAWICON(買,L,7); DRAWICON(賣,H,8); A1:=MIN(REF(C,1),REF(O,1)); A2:=MAX(REF(C,1),REF(O,1)); A3:=(A2-A1)*0.618; A4:=A1+A3; A5:=A4*1.09; STICKLINE(ISLASTBAR,A4,A5,5,-1),COLORYELLOW; STICKLINE(C>REF(C,1) AND ISLASTBAR,O,C,3,0),COLORRED; STICKLINE(C>REF(C,1) AND ISLASTBAR,H,L,0,0),COLORRED; STICKLINE(NOT(C>REF(C,1)) AND ISLASTBAR,O,C,3,0),COLORGREEN; STICKLINE(NOT(C>REF(C,1)) AND ISLASTBAR,H,L,0,0),COLORGREEN; T1:=CONST(MIN(REF(C,1),REF(O,1))+(MAX(REF(C,1),REF(O,1))-MIN(REF(C,1),REF(O,1)))*1.318),COLORLICYAN; T2:=CONST(MIN(REF(C,1),REF(O,1))+(MAX(REF(C,1),REF(O,1))-MIN(REF(C,1),REF(O,1)))*1.618),COLORYELLOW; T3:=CONST(MIN(REF(C,1),REF(O,1))+(MAX(REF(C,1),REF(O,1))-MIN(REF(C,1),REF(O,1)))),COLORWHITE; 觀察點(diǎn):CONST(REF(LOW,2))COLORLIRED; 【高量5】:=BARSCOUNT(C)>20 AND NOT(ISLASTBAR) && IF(V>=HHV(V,5) && V<HHV(V,10),10,0); 【高量10】:=BARSCOUNT(C)>20 AND NOT(ISLASTBAR) && IF(V>=HHV(V,10) && V<HHV(V,20),10,0); 【高量20】:=BARSCOUNT(C)>20 AND NOT(ISLASTBAR) && IF(V>=HHV(V,20) && V<HHV(V,50),20,0); 【高量30】:=BARSCOUNT(C)>20 AND NOT(ISLASTBAR) && IF(V>=HHV(V,30) && V<HHV(V,50) && V<HHV(V,100),30,0); 【高量50】:=BARSCOUNT(C)>20 AND NOT(ISLASTBAR) && IF(V>=HHV(V,50) && V<HHV(V,100),50,0); 【高量100】:=BARSCOUNT(C)>20 AND NOT(ISLASTBAR) && IF(V>=HHV(V,100),100,0); TT:=BARSLAST(【高量5】 OR 【高量10】 OR 【高量20】 OR 【高量30】 OR 【高量50】 OR 【高量100】); 參考支撐:CONST(REF(C,TT))COLORBROWN; DD:=DRAWLINE(LOW<=LLV(LOW,3),L,HIGH>=HHV(HIGH,3),H,0); LL:=DRAWLINE(HIGH>=HHV(HIGH,3),H,LOW<=LLV(LOW,3),L,0); DRAWTEXT(DD=H,H,'─────────')COLORLIGREEN; DRAWTEXT(LL=L,L,'────────────────')COLORGRAY; |
|