通达信指标公式源码一阳穿三主图源码

回复“金钻指标”,可以获得金钻指标合集

指标说明:主图指标,中长线和短线波段结合。

指标源码

DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));

DRAWKLINE(H,O,L,C);

DRAWBAND(MA(CLOSE,60),RGB(55,0,0),MA(CLOSE,120),RGB(0,91,0));

DRAWKLINE(H,O,L,C);

AA:=CLOSE/REF(C,1)>=1.09;

STICKLINE(AA,O,C,3,0),COLORYELLOW;

MA5:MA(CLOSE,5),COLORWHITE;

MA10:MA(CLOSE,10),COLORYELLOW;

MA20:MA(CLOSE,24),COLORMAGENTA;

MA60:MA(CLOSE,60),COLORGREEN,LINETHICK1;

MA120:MA(CLOSE,120),COLORLIMAGENTA,LINETHICK1;

MA240:MA(CLOSE,240),COLORLIRED;

DRAWICON(CROSS(MA10,MA20),MA20,1);

DRAWICON(CROSS(MA20,MA60),MA60,1);

DRAWICON(CROSS(MA20,MA120),MA120,1);

DRAWICON(CROSS(MA20,MA240),MA240,1);

DRAWICON(CROSS(MA60,MA120),MA60,1);

DRAWICON(CROSS(MA60,MA240),MA240,1);

DRAWICON(CROSS(MA120,MA240),MA240,1);

DRAWTEXT_FIX(C>0,0,0,0,'免费获取更多指标,关注公众号:【指标公式研究所】'),COLORMAGENTA;

反弹托:=MA5>MA20 AND  MA5>MA20 AND MA20<MA60 AND MA60<MA120 AND CROSS(MA10,MA20);

月价托:=MA5>MA20 AND MA20>MA60 AND MA60>MA120 AND MA5>MA20 AND CROSS(MA10,MA20);

季价托:=MA20>MA60 AND MA20>MA60 AND CROSS(MA20,MA60);

短长价托:=MA5>MA60 AND MA5>MA10 AND CROSS(MA10,MA60);

半年托:=MA60>MA120 AND MA60>MA120 AND CROSS(MA60,MA120);

熊来:=MA60<MA120 AND MA60<MA120 AND CROSS(MA120,MA60);

年托:=MA120>MA240 AND MA120>MA240 AND CROSS(MA120,MA240);

月蜘蛛:=MA5>MA10 AND MA10>MA20 AND CROSS(MA5,MA20)AND CROSS(MA10,MA20);

DRAWTEXT(月蜘蛛,MA20-0.08,'蜘蛛'),COLORMAGENTA;

DRAWTEXT(反弹托,MA20-0.08,'反弹托'),COLORMAGENTA;

DRAWTEXT(月价托 ,MA20-0.2,'月托'),COLORMAGENTA;

DRAWTEXT(季价托,MA60-0.0.08,'季托'),COLORMAGENTA;

DRAWTEXT(短长价托,L+0.015,'短长托'),COLOR36C0C1;

DRAWTEXT(半年托,MA120-0.08,'牛来'),COLORRED;

DRAWTEXT(熊来,MA60+0.08,'小心熊'),COLORGREEN;

DRAWTEXT(年托,MA240-0.08,'年托'),COLORRED;

压:=MA10<MA20 AND MA20>MA10 AND CROSS(MA20,MA10);

DRAWTEXT(压,MA20+0.012,'压'),COLORYELLOW;

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

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

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

量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1);

DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;

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;

芙蓉出水:=BB AND CC1,COLOR00FF00;

DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF;

STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;

STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;

指标效果图:

关注公众号,每天接收精品指标。

学习园地,每天学一个小公式

懂得运用公式编辑器,掌握了公式的基本函数,就可以进行简单的公式编写了。每天学习一个公式的基本语句,日积月累,你也能编写出好的指标公式了。

今日学习:

股价创30个交易日的新高

H>REF(H,30);

(0)

相关推荐