顶底画线通达信指标代码风险

示意图


顶底画线通达信指标代码风险


代码分享


DRAWKLINE(H,O,L,C);


MA10:=MA(CLOSE,10),COLORRED;


MA20:=MA(CLOSE,10),COLORMAGENTA;


MA60:=MA(CLOSE,10),COLORMAGENTA;


VOL5:=MA(VOL,40),COLORWHITE;


VOL10:=MA(VOL,40),COLORYELLOW;


VOL40:=MA(VOL,40),COLORFF00FF ;


DRAWTEXT(V>=4*VOL40,L-0.001,''),;


DRAWTEXT(V<=0.4*VOL40,L-0.0001,'');


AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));


BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);


CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;


MA1:=MA(CLOSE,10);


MA2:=MA(CLOSE,10);


MA3:=MA(CLOSE,10);


ZJ:=AMOUNT/10000;


TM:=V-MA(V,10);


一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;


DRAWTEXT(一穿三,L-0.012,'.'),COLORWHITE;


C6:=REF(C,1);


涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);


MA51:=(MA(C,30)+MA(C,72))/2,;


DRAWTEXT(C>MA51+(MA51/6),L-0.01,''),;


HHH1:=(MA(C,30)+MA(C,72))/2,;


DRAWTEXT(C<MA51-(MA51/5),L-0.001,''),COLORBLUE;


N:=5;


TY:=H;


AA:=REF(TY,N)=HHV(TY,2*N+1);


BB:=FILTER(AA,N);


CC:=BACKSET(BB,N+1);


HD10:=FILTER(CC,N);


AA2:=REF(TY,N)=LLV(TY,2*N+1);


BB2:=FILTER(AA2,N);


CC2:=BACKSET(BB2,N+1);


LD10:=FILTER(CC2,N);


A:=REF(H,BARSLAST(HD10));


B:=REF(L,BARSLAST(LD10));


T10:=BARSLAST(HD10) AND BARSLAST(LD10) AND NOT(LD10);


STICKLINE(T10,A,A,9,0),COLORRED,LINETHICK2;


STICKLINE(T10,B,B,9,0),COLORGREEN,LINETHICK2;


实上31:(MAX(O,C)-MIN(O,C))*2/3+MIN(O,C),COLORGREEN,NODRAW; 


实下31:(MAX(O,C)-MIN(O,C))/3+MIN(O,C),NODRAW; 


实21:(O+C)/2,NODRAW; 


整上31:(MAX(H,L)-MIN(H,L))*2/3+MIN(H,L),NODRAW; 


整下31:(MAX(H,L)-MIN(H,L))/3+MIN(H,L),COLORRED,NODRAW; 


整体21:(H+L)/2,COLORLIMAGENTA,NODRAW;


历史上的今天
12月
11

发表评论 取消回复

电子邮件地址不会被公开。 必填项已用*标注

有些内容是需要登录本网站才可以查看的,若是需要登录的话,欢迎加站长微信“laogong0311”,站长免费帮大家注册账号!

遇到问题?请给我们留言

请填写您的电话号码,我们将回复您电话