设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

通达信彩色通道主图公式源码是什么?

2016-6-1 14:25:46 股票入门 http://rumen.southmoney.com

通达信彩色通道主图公式源码是什么?附:通达信趋势线买入卖出副图指标公式  南方财富网小编为您提供


【通达信彩色通道主图公式源码】

MID_TDMS:=(3*C+L+H)/5;
WRAP: break-word; WHITE-SPACE: normal; TEXT-TRANSFORM: none; WORD-SPACING: 0px; COLOR: rgb(51,51,51); PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT: 14px/24px 宋体, arial, sans-serif, 'DejaVu Sans', 'Lucida Grande', Tahoma, 'Hiragino Sans GB', STHeiti, SimSun, sans-serif; PADDING-LEFT: 0px; MARGIN: 0px; WIDOWS: 1; LETTER-SPACING: normal; PADDING-RIGHT: 0px; TEXT-INDENT: 0px; -webkit-text-stroke-width: 0px">波动中枢:=EMA(EMA(EMA(MID_TDMS,20),2),2),POINTDOT;
BDUP:=REF(HHV(100*(HIGH-波动中枢)/波动中枢,120),1),NODRAW;
BDDN:=REF(LLV(100*(LOW-波动中枢)/波动中枢,120),1),NODRAW;
顶:=EMA(EMA(EMA(REF(波动中枢,1)*(1+BDUP/100),2),2),2);
底:=EMA(EMA(EMA(REF(波动中枢,1)*(1+BDDN/100),2),2),2);
地线:=底;
中线:=REF(波动中枢,1);
天线:=顶;
绘图范围:=IFF(BARSCOUNT(CLOSE)>120,1,0);
STICKLINE(绘图范围,地线,地线+(中线-地线)*(20/20),11,0),COLOR000000;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(19/20),11,0),COLOR000008;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(18/20),11,0),COLOR000010;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(17/20),11,0),COLOR000018;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(16/20),11,0),COLOR000020;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(15/20),11,0),COLOR000028;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(14/20),11,0),COLOR000030;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(13/20),11,0),COLOR000038;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(12/20),11,0),COLOR000040;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(11/20),11,0),COLOR000048;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(10/20),11,0),COLOR000050;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(9/20),11,0),COLOR000058;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(8/20),11,0),COLOR000060;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(7/20),11,0),COLOR000068;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(6/20),11,0),COLOR000070;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(5/20),11,0),COLOR000078;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(4/20),11,0),COLOR000080;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(3/20),11,0),COLOR000088;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(2/20),11,0),COLOR000090;
STICKLINE(绘图范围,地线,地线+(中线-地线)*(1/20),11,0),COLOR000098;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(20/20),11,0),COLOR000000;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(19/20),11,0),COLOR080800;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(18/20),11,0),COLOR101000;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(17/20),11,0),COLOR181800;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(16/20),11,0),COLOR202000;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(15/20),11,0),COLOR282800;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(14/20),11,0),COLOR303000;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(13/20),11,0),COLOR383800;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(12/20),11,0),COLOR404000;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(11/20),11,0),COLOR484800;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(10/20),11,0),COLOR505000;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(9/20),11,0),COLOR585800;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(8/20),11,0),COLOR606000;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(7/20),11,0),COLOR686800;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(6/20),11,0),COLOR707000;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(5/20),11,0),COLOR787800;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(4/20),11,0),COLOR808000;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(3/20),11,0),COLOR888800;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(2/20),11,0),COLOR909000;
STICKLINE(绘图范围,天线,天线-(天线-中线)*(1/20),11,0),COLOR989800;
回归上限:IFF(绘图范围,天线,DRAWNULL),COLOR989800,LINETHICK2;
回归下限:IFF(绘图范围,地线,DRAWNULL),COLOR000098,LINETHICK2;
上涨偏离度:=100*(HIGH-波动中枢)/波动中枢,NODRAW;
下跌偏离度:=100*(LOW-波动中枢)/波动中枢,NODRAW;
STICKLINE(绘图范围 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED;
STICKLINE(绘图范围 AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED;
STICKLINE(绘图范围 AND CLOSE>OPEN,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(绘图范围 AND CLOSE==OPEN,HIGH,LOW,0,0),COLORWHITE;
STICKLINE(绘图范围 AND CLOSE==OPEN,CLOSE,OPEN,3,0),COLORWHITE;
STICKLINE(绘图范围 AND CLOSE<OPEN,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(绘图范围 AND CLOSE<OPEN,CLOSE,OPEN,3,0),COLORGREEN;
波动敞口:((回归上限-波动中枢)/波动中枢+(波动中枢-回归下限)/波动中枢)*100,NODRAW,COLOR00C6FF;
涨过头:=IFF(HIGH>回归上限,1,0);
跌过头:=IFF(LOW<回归下限,1,0);
风险标记:IFF(涨过头,CLOSE,DRAWNULL),NODRAW,COLORCYAN;
机会标记:IFF(跌过头,CLOSE,DRAWNULL),NODRAW,COLORYELLOW;
DRAWICON(涨过头,HIGH*1.01,2);
DRAWICON(跌过头,LOW*0.99,1);
VARC:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
逃顶:=IFF(CROSS(84,VARC) AND 上涨偏离度>20,1,0),NODRAW;
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
VAR4:=FILTER(IFF(COUNT(VAR3<20,5)>=1 AND COUNT(VAR1==LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0),5);
抄底:=IFF(VAR4 AND EXIST(下跌偏离度*(-1)>15,3),1,0);
DRAWICON(绘图范围 AND 逃顶,HIGH*1.02,14);
DRAWICON(绘图范围 AND 抄底,LOW*0.98,13);
DRAWTEXT(绘图范围 AND 逃顶,MAX(H*1.05,回归上限*1.03),'逃'),COLORCYAN;
DRAWTEXT(绘图范围 AND 抄底,MIN(LOW*0.995,回归下限),'抄'),COLORYELLOW;

附:【通达信趋势线买入卖出副图指标公式】

STICKLINE(C>0,90,95,10,0),COLOR408000;
STICKLINE(C>0,10,5,10,0),COLOR408000;
HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
DRAWBAND(HDY,RGB(255,000,139),10,RGB(255,255,71));
STICKLINE(C>0,90,10,10,0),COLOR000000;
风险值:HDY,COLORCYAN,LINETHICK1;
警示线:45,COLORBLACK,LINETHICK1,POINTDOT;
DIF:EMA(CLOSE,9)-EMA(CLOSE,21), COLORBLACK;
DEA:EMA(DIF,5) COLORBLACK;
MACD:(DIF-DEA)*2,COLORRED;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线: EMA(V11,3), COLORBLACK;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);
买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),COLOR0099FF;
V1:=EMA(CLOSE,5)-EMA(CLOSE,340);
V2:=EMA(V1,144);
V3:(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,COLORBLACK;
卖出:-1*IF((CROSS(98.5,V3) AND V1>V2) AND COUNT(V3>97,3)=2,20,0)+90,COLORBLACK;
买入:IF(CROSS(V3,5) AND V1<V2,20,0)+10,COLOR0090FF;
DRAWTEXT(CROSS(V3,5) AND V1<V2,25,'买入'),COLORFF00FF;
DRAWTEXT(CROSS(98.5,V3) AND V1>V2,75,'卖出'),COLOR00FF00;

更多通达信公式源码相关资讯请关注南方财富网

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。