如下: MA5:MA(C,5); MA10:MA(C,10); MA30:MA(C,30); MA60:MA(C,60); A1:=REF(C,N)=HHV(C,2*N+1); B1:=FILTER(A1,N); C1:=BACKSET(B1,N+1); HD:=FILTER(C1,N); A2:=REF(C,N)=LLV(C,2*N+1); B2:=FILTER(A2,N); C2:=BACKSET(B2,N+1); LD:=FILTER(C2,N); A:=REF(C,BARSLAST(HD)); B:=REF(L,BARSLAST(LD)); T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD); T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD); 上升:IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK2; 下降:IF(MA5<REF(MA5,1),MA5,DRAWNULL),COLORGREEN,LINETHICK2; 平:IF(MA(C,30)=REF(MA(C,30),1),MA(C,30),DRAWNULL),COLORBLUE,LINETHICK2; YCX:=MA5>=REF(MA5,1); H1:=MAX(MAX(MA5,MA10),MA30); L1:=MIN(MIN(MA5,MA10),MA30); 一陽(yáng)穿三線:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1); STICKLINE(一陽(yáng)穿三線,O,C,2,0),COLORYELLOW; DRAWTEXT(一陽(yáng)穿三線,L*0.99, '買入'),COLORGREEN; |
|
來(lái)自: 鄉(xiāng)間客 > 《我的圖書館》