通达信最强势指标公式
有此指标可以扔掉别的{N:5,250,14;
}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;
连续走强:=COUNT(C>MA(C,N),K)=K;
ZQSJ:=BARSLAST(连续走强);
{STICKLINE(连续走强 ,0 ,K*0.3 ,5 ,1 ),COLORYELLOW;
}下穿:=CROSS(MA(C,N),C);
GL:=MA(C,N/2)/MA(C,N*2)>=1.05;
下体泄:=(下穿 AND ZQSJ0 ,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(连续走强>0 ,MAN-0.01 , ''),colorYELLOW,LINETHICK1;
DRAWTEXT(连续走弱>0 ,MAK-0.01 , ''),color00FF00,LINETHICK1;
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('',CURRENTTIME>180000 and (CXH=1 OR CXH=6));
DRAWTEXTREL(10 ,10 ,'');