通达信双通道主图源码指标副图 趋势一目了然通达信公式

2017-11-23    来源:原创    编辑:翔博软件
公式源码: {MA5:MA(CLOSE,5); MA10:MA(CLOSE,10);} DRAWTEXT_FIX(1,0.00,0.00,0,【★★仓位控制的量化标准★★】),COLORFF00FF; DRAWTEXT_FIX(1,0.00,0.05,0,【★★1、粉+红=满




公式源码:

 {MA5:MA(CLOSE,5);

MA10:MA(CLOSE,10);}

DRAWTEXT_FIX(1,0.00,0.00,0,'【★★仓位控制的量化标准★★】'),COLORFF00FF;

DRAWTEXT_FIX(1,0.00,0.05,0,'【★★1、粉+红=满,2、粉+绿=6,3、蓝+红=4,4、蓝+绿=空★★】'),COLOR00FFFF;

VAR1:=IF(YEAR>2999 AND MONTH>5,0,1);

VAR2:=IF(HIGH=CLOSE,1.10*CLOSE,HIGH)*VAR1;

VAR3:=IF(HIGH=CLOSE,0.90*CLOSE,LOW)*VAR1;

短期值1:=EMA((HIGH+LOW)/2,5);

顶部线1:=EMA(EMA(VAR2,6)*1.05,8);

底部线1:=EMA(EMA(VAR3,6)*0.97,8);

VARA1:=EXPMA(CLOSE,5);

VARB1:=EXPMA(CLOSE,10);

VARC1:=EXPMA(CLOSE,20);

VARD1:=EXPMA(CLOSE,50);

VARE1:=(VARA1+VARB1+VARC1+VARD1)/4;

天线1:MA(VARE1,4);

天线2:=MA(VARE1,5)+MA(VARE1,5)*0.03;

天线3:MA(VARE1,4)-MA(VARE1,4)*0.03;

NOTEXT天线01:IF(天线1>REF(天线1,1),天线1,DRAWNULL),COLORRED;

NOTEXT天线11:IF(天线1<REF(天线1,1),天线1,DRAWNULL),COLORGREEN;

NOTEXT天线03:IF(天线3>REF(天线3,1),天线3,DRAWNULL),COLORRED;

NOTEXT天线13:IF(天线3<REF(天线3,1),天线3,DRAWNULL),COLORGREEN;

STICKLINE(天线1>REF(天线1,1),天线1,天线3,0,0),COLORRED;

STICKLINE(天线1<REF(天线1,1),天线1,天线3,0,0),COLORGREEN;

空:=REF(C,1)>REF(天线3,1) AND C<天线3;

多:=REF(C,1)<REF(天线1,1) AND C>天线1;

空1:=TFILTER(多,空,2);

多1:=TFILTER(多,空,1);

DRAWTEXT(空1,天线1*1.04,'空'),COLORGREEN;

DRAWTEXT(多1,天线3*0.96,'多'),COLORRED;

DRAWICON(空1,天线1*1.02,2);

DRAWICON(多1,天线3*0.98,1);

VAR11:=IF(YEAR>2999 AND MONTH>5,0,1);

VAR12:=IF(HIGH=CLOSE,1.10*CLOSE,HIGH)*VAR11;

VAR13:=IF(HIGH=CLOSE,0.90*CLOSE,LOW)*VAR11;

长期值2:=EMA((HIGH+LOW)/2,5);

顶部线2:=EMA(EMA(VAR12,6)*1.05,8);

底部线2:=EMA(EMA(VAR13,6)*0.97,8);

VAR18:=(HIGH+LOW+CLOSE)/3;

VARA2:=EMA(CLOSE,5);

VARB2:=EMA(CLOSE,10);

VARC2:=EMA(CLOSE,20);

VARD2:=EMA(CLOSE,50);

VARE2:=(VARA2+VARB2+VARC2+VARD2)/4;

天线12:=EMA(VARE2,60);

天线22:=EMA(VARE2,60)+EMA(VARE2,60)*0.03;

天线32:=EMA(VARE2,55)-EMA(VARE2,55)*0.03;

NOTEXT天线012:IF(天线12>REF(天线12,1),天线12,DRAWNULL),COLORMAGENTA;

NOTEXT天线112:IF(天线12<REF(天线12,1),天线12,DRAWNULL),COLORBLUE;

NOTEXT天线032:IF(天线32>REF(天线32,1),天线32,DRAWNULL),COLORMAGENTA;

NOTEXT天线132:IF(天线32<REF(天线32,1),天线32,DRAWNULL),COLORBLUE;

STICKLINE(天线12>REF(天线12,1),天线12,天线32,0,0),COLORMAGENTA;

STICKLINE(天线12<REF(天线12,1),天线12,天线32,0,0),COLORBLUE;

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

 {一定要逃}

VAR20:=PEAKBARS(3,15,1)<10;

VAR21:=IF(VAR20=1,2,0);

VAR22:=IF(VAR21=2,2,0);

VAR23:=IF(VAR22>REF(VAR22,1),35,0)LINETHICK2;

DRAWICON(VAR23=35,HIGH*1.01,6);

DRAWTEXT( CROSS(82,RSI) , HIGH*1.02,'清仓') ,COLORGREEN,LINETHICK2;

X5:=REF(CLOSE,1);

X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100);

X7:=CROSS(79,X6);

X8:=FILTER(X7,4);

DRAWTEXT(X8,(HIGH * 1.05),'出货'),COLOR9000F5;

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

STICKLINE(AAB,OPEN,CLOSE,1,0),COLORYELLOW;

平均:=(L+H)/2;

KB:=ZIG(平均,10);

KS:=MA(KB,2);

DRAWICON(CROSS(KB,KS),L-0.2,25);

DRAWICON(CROSS(KS,KB),H+0.2,15);

 

 

代理编写(对转)通达信 飞狐 同花顺 大智慧 文华财经 博易大师 依天财经等主流软件指标

本人熟悉通达信 飞狐 同花顺 大智慧 文华财经 博易大师 依天财经等主流行情软件指标编写,如果你有自己的通达信指标公式,希望将该公式应用到博易大师和依天财经等软件上,找我翔博软件工作室吧!既专业又敬业!

我可以帮您把思路转换成计算机语言,做成指标,通过计算机进行快速显示判断,可以让你更快识别出交易方法的买卖点。

节约时间,节约资金!
 

特别提示:

要参加“如何创建高价值微信群”免费公益课程学习。 请联系微信:396950280

 

一个聚百万原创指标公式圈子

原创价值分享思维

ID:yungongshi

1
3
点击进入翔博软件旗下官方微店--指标超市