MA30工作:MA(CLOSE,30),LINETHICK2; 操盤7操盤:EXPMA(CLOSE,7),LINETHICK2; 操盤2支撐:EXPMA(CLOSE,21),LINETHICK2; 操盤1:EXPMA(CLOSE,17); 操盤5:EXPMA(CLOSE,50); 操盤4:=EXPMA(CLOSE,453); 操盤9:EXPMA(CLOSE,99); 操盤14:EXPMA(CLOSE,144); 保護:(REF(C,2)+REF(C,1)+O)/3; {漲跌停} C2:=REF(C,1); 漲停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(漲停,OPEN,CLOSE,2,0),COLORMAGENTA ; STICKLINE(漲停,H,L,0,0),COLORMAGENTA ; 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN; STICKLINE(跌停,H,L,0,1),COLORGREEN; {波峰波谷} TY:=C; Q1:=REF(TY,10)=HHV(TY,2*10+1); W1:=FILTER(Q1,10); P1:=BACKSET(W1,10+1); HD:=FILTER(P1,10); Q2:=REF(TY,10)=LLV(TY,2*10+1); W2:=FILTER(Q2,10); P2:=BACKSET(W2,10+1); LD:=FILTER(P2,10); M:=REF(C,BARSLAST(HD)); N:=REF(C,BARSLAST(LD)); T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ; T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD); 波峰:IF(T1,M,M),COLORRED,POINTDOT; STICKLINE(T1,M,M,9,0),COLORRED; 波谷:IF(T2,N,N),COLORGREEN,POINTDOT; STICKLINE(T2,N,N,9,0),COLOR80FF00; {老鼠倉} AA1:=AMOUNT/V; BB1:=L<AA1*0.9; CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L<MA(C,5)*0.921; EE1:=V<MA(V,5)*1.5; FF1:=BB1 AND CC1 AND DD1 AND EE1; GG1:=FILTER((AA1 AND BB1 AND CC1 AND DD1),20); DRAWTEXT(FF1,L-0.30,'鼠'),COLOR4080FF; DRAWTEXT(GG1,L-0.8,'入'),COLORWHITE; {龍} 龍:=O<MA(CLOSE,5) AND O<MA(CLOSE,10)AND O<MA(CLOSE,20)AND C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20); DRAWTEXT(FILTER(龍,5),L-0.40,'龍'),COLORYELLOW; 注:源碼中波峰波谷(加粗的部分)含有backset函數(shù),如果十分在意的話可以把這部分單獨去掉即可,?!?/td> |