<<稳抓黑马>>通达信主图指标
{参数:N 1 100 20;M 1 100 32;P1 1 200 80;P2 1 200 100}
DRAWTEXT_FIX(1,0,0,0,'所属板块:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.1,0,0,HYBLOCK),COLOR0080FF;
DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK),COLOR0080FF;
Z:=20;
M:=32;
P1:=80;
P2:=100;
VAR111:=(C+H+O+L)/4;
压力线:XMA(VAR111,Z)*(1+P1/1000)POINTDOTLINETHICK3;
支撑线 :XMA(VAR111,M)*(1-P2/1000)POINTDOTLINETHICK3;
上中轨:压力线-(压力线-支撑线)*0.33POINTDOTLINETHICK3COLORLIGRAY;
下中轨:支撑线+(压力线-支撑线)*0.33 POINTDOTLINETHICK3 COLORGRAY;
AA:压力线*1.008 POINTDOTLINETHICK4COLORGRAY;
BB:支撑线*0.992POINTDOTLINETHICK4COLORGRAY;
XG5:=CROSS(C ,支撑线) OR (L<支撑线 AND C>支撑线);
工作线2:EXPMA(CLOSE,12),COLORRED,LINETHICK0;
XG6:=CROSS(C,工作线2) AND XG5;
DRAWICON (XG5 AND XG6,L*0.9998,23),COLORRED;
O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINETHICK1;
O2:EMA(O1,3),COLORFF00FF,LINETHICK1;
O3:EMA(O2,3),COLOR00FF00,LINETHICK1;
MMM:=MA(CLOSE,13);
DRAWTEXT((CLOSE
DRAWTEXT((CLOSE>MMM),MMM,'⊙'),COLOR0000FF,LINETHICK5;
工作线:EXPMA(CLOSE,12),COLORRED,LINETHICK0;
生命线:EXPMA(CLOSE,50),COLORMAGENTA,LINETHICK0;
等待:=IF(MA3>工作线,工作线,MA3);
IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK0,COLOR00FFFF;
IF(工作线>REF(工作线,1),工作线,DRAWNULL),LINETHICK0,COLOR0000FF;
IF(工作线
IF(生命线>REF(生命线,1),生命线,DRAWNULL),LINETHICK0,COLORFF00FF;
IF(生命线
XG1:=CROSS(C,工作线) AND CROSS(C,生命线);
XG2:=CROSS(工作线,生命线);
XG3:=CROSS(C,工作线) AND XG2 ;
XG4:=CROSS(C,工作线) AND XG5;
DRAWTEXT(XG1,L*0.9998,''),COLORRED;
DRAWICON(XG3,L*0.9998,5),COLORRED;
DRAWTEXT (XG4,L*0.998, '【重点关注】'),COLORRED;
DRAWTEXT (XG4,L*0.95, '【稳抓黑马】'),COLORRED;
N:=10;
T1:=CONST(HHVBARS(V,10)),COLOR0000FF,LINETHICK1;
量能平台:IF(CURRBARSCOUNT<=N+15,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL)COLOR0000FF,LINETHICK2;
新量能点:IF(CURRBARSCOUNT=T1+1,量能平台,DRAWNULL),CIRCLEDOT,COLORLIGRAY,LINETHICK2;
DRAWTEXT(ISLASTBAR,量能平台,' 量能平台');
说明:指标添加了两个XMA函数,XMA未来函数不一定不好,只是提供一个参考。出现的信号会漂移,请谨慎使用!
----------------------------------------------------------------------------------------------------------------------------------------
“重点关注”、“稳抓黑马”出现时选股、预警公式。
Z:=20;
M:=32;
P1:=80;
P2:=100;
VAR111:=(C+H+O+L)/4;
压力线:=XMA(VAR111,Z)*(1+P1/1000);
支撑线:=XMA(VAR111,M)*(1-P2/1000);
XG5:=CROSS(C ,支撑线) OR (L<支撑线 AND C>支撑线);
工作线:=EXPMA(CLOSE,12);
生命线:=EXPMA(CLOSE,50);
XG1:=CROSS(C,工作线) AND CROSS(C,生命线);
XG2:=CROSS(工作线,生命线);
XG3:=CROSS(C,工作线) AND XG2 ;
稳抓黑马:CROSS(C,工作线) AND XG5;
指标来源于网络.股龙QQ:906371195欢迎交流!