买跌买点主图指标 通达信公式(附图)

[复制链接]
查看94 | 回复0 | 2021-8-20 16:33:51 | 显示全部楼层 |阅读模式

N:=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 ZQSJ<=3 AND DTPL AND GL)*N;
连续走弱:=COUNT(C<MA(C,N),K)=K;
ZRSJ:=BARSLAST(连续走弱);
{STICKLINE(连续走弱 ,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(连续走强>0 ,MAN-0.01 , ''),COLORYELLOW,LINETHICK1;
DRAWTEXT(连续走弱>0 ,MAK-0.01 , ''),COLOR00FF00,LINETHICK1;

1451413137-0.jpg

1451413137-0.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则