通达信整合主图源码

[复制链接]
查看128 | 回复0 | 2021-8-21 06:28:27 | 显示全部楼层 |阅读模式

以下是通达信整合主图源码(无源码的请下载附件导入)

 

整合指标

 

叫什么名自己起个吧,本人才疏学浅..........

 

 


 


 

 

{主趋势线:EMA(EMA(C,10),10),COLORBLUE,LINETHICK2;

B:=主趋势线<REF(主趋势线,1);

IF(B-1,主趋势线,DRAWNULL)COLORRED,LINETHICK2;}

主趋势线:EMA(EMA(C,10),10),DOTLINE,COLORRED,LINETHICK1;

B:=主趋势线>REF(主趋势线,1);

IF(B-1,主趋势线,DRAWNULL),DOTLINE,COLORBLUE,LINETHICK1;

{操盘线:EMA(EMA(C,5),5),COLORRED,LINETHICK2;

Y:=操盘线>REF(操盘线,1);

IF(Y-1,操盘线,DRAWNULL)COLORGREEN,LINETHICK2;}

 FD:=(H-L)/3;{分段}{分析家公式网WWW.88GS.COM}

OPEN1:=O>FD*2+L;

OPEN3:=O<FD+L;

OPEN2:=NOT(OPEN1 OR OPEN3);

CLOSE1:=C>FD*2+L;

CLOSE3:=C<FD+L;

CLOSE2:=NOT(CLOSE1 OR CLOSE3);

DFZD:=CLOSE1 OR (OPEN3 AND CLOSE2);

WQS1:=OPEN2 AND CLOSE2;

KFZD:=NOT(DFZD OR WQS1);

ZD:=(H+L)/2;

QSXS:=ZD>REF(H,1);

QSXX:=ZD<REF(L,1);

WQS2:=NOT(QSXS OR QSXX);

S1:=DFZD AND QSXS ;

S2:=KFZD AND QSXX ;

S3:=DFZD AND QSXX;

S4:=KFZD AND QSXS;

S5:=DFZD AND WQS2;

S6:=KFZD AND WQS2;

S7:=WQS1 AND (QSXS OR QSXX OR WQS2);

STICKLINE(S2 ,C ,O,3,0 ),COLORFF2020;

STICKLINE(S1,C,O,3 ,0 ),COLOR2020FF;

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

STICKLINE(S4,C,O,3,0),COLORCYAN;

STICKLINE(S5,C,O,3,0),COLORMAGENTA;

STICKLINE(S6,C,O,3,0),COLORGREEN;

STICKLINE(S7,C,O,3,0),COLORGRAY;

STICKLINE(1,C,O,0,0),COLORWHITE;

M13:MA(CLOSE,13),LINETHICK2,COLOREBC79E;

MD:=EMA(C,1)-EMA(C,5);

STICKLINE(MD>0,DYNAINFO(3),DYNAINFO(3)+MD*0.5,0.2,1),COLORFF6EC7;

STICKLINE(MD<=0,DYNAINFO(3),DYNAINFO(3)+MD*0.5,0.2,1),COLOR426F42;

MM:=0.805;

 

MM1:=0.105;

买出价:=STRCAT(STRCAT('当前买出价: ',CON2STR(DYNAINFO(20),2)),'元'),COLOR0000FF;

买入价:=STRCAT(STRCAT('当前买入价: ',CON2STR(DYNAINFO(21),2)),'元'),COLORFFFF00;

DRAWTEXT_FIX(ISLASTBAR,0.5,0.75,0,买出价),COLORGREEN;

DRAWTEXT_FIX(ISLASTBAR,0.5,0.7,0,买入价),COLORRED;

DRAWNUMBER(ISLASTBAR=1,CLOSE,CLOSE),COLORFFFFFF;

DRAWNUMBER(ISLASTBAR=1,CLOSE*0.996,DYNAINFO(14)*100),COLOR00FFFF;

DRAWNUMBER(ISLASTBAR=1,CLOSE*0.998,DYNAINFO(12)),COLORFFFF00;
 

191866585.jpg

191866585.jpg

回复

使用道具 举报

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

本版积分规则