N:1.9.100
K:=N/2;
MAK:MA(CLOSE,K),COLORWHITE,LINETHICK1; MAN:MA(CLOSE,N),colorred,LINETHICK1; DTPL:=MA(C,N)>MA(C,N*1.5) AND MA(C,N*1.5)>MA(C,N*3) AND MA(C,3)>MA(C,N*6); 選擇均線:=N; 強弱天數:=K; 連續(xù)走強:=COUNT(C>MA(C,N),K)=K; ZQSJ:=BARSLAST(連續(xù)走強); {STICKLINE(連續(xù)走強 ,0 ,K*0.3 ,5 ,1 ),COLORYELLOW;} 下穿:=CROSS(MA(C,N),C); GL:=MA(C,N/2)/MA(C,N*2)>=1.05; 下體泄:=(下穿 AND ZQSJ<=3 AND DTPL AND GL)*N; 連續(xù)走弱:=COUNT(C<MA(C,N),K)=K; ZRSJ:=BARSLAST(連續(xù)走弱); {STICKLINE(連續(xù)走弱 ,0 ,K*-0.3 ,5 ,1 ),color00FF00;} 上穿:=CROSS(C,MA(C,N)); 下體漲:=(上穿 AND ZRSJ<=3)*K; {以下設置顯示方式:} DRAWTEXT(下體漲>0 ,L*0.99 , '買點'),colorYELLOW,LINETHICK1; STICKLINE(下體漲>0,h,l,0,1),colorf00ff0,linethick2; STICKLINE(下體漲>0,o,c,6,1),colorf00ff0,linethick2; DRAWTEXT(下體泄>0 ,L*0.99 , '買跌'),COLOR00FF00,LINETHICK1; STICKLINE(下體泄>0 ,h,l,0,1),COLOR00FF00,linethick2; STICKLINE(下體泄>0 ,o,c,6,1),COLOR00FF00,linethick2; DRAWTEXT(連續(xù)走強>0 ,MAN-0.01 , ''),colorYELLOW,LINETHICK1; DRAWTEXT(連續(xù)走弱>0 ,MAK-0.01 , ''),color00FF00,LINETHICK1; |
|