通达信源码分享,天地准绳+波浪线+点位主图

[复制链接]
查看167 | 回复0 | 2021-8-20 14:15:19 | 显示全部楼层 |阅读模式

以下是通达信源码分享,天地准绳+波浪线+点位主图(无源码的请下载附件导入)

这次添加了点位,波浪线,简单的还是准绳间的箱体操作,高抛低吸等待。

源码
{参数N1 N2:日线默认600,800 15分钟640,880 1分钟1920,2400}

天:REF(HHV(HIGH,N1),1),DOTLINE,COLORFFD0FF;
地:REF(LLV(LOW,N2),1),DOTLINE,COLORFFD0FF;
五:天-(REF(天-地,1)*0.50),DOTLINE,COLORYELLOW;
三:天-(REF(天-地,1)*0.625),DOTLINE,COLORLIRED;
八:天-(REF(天-地,1)*0.125),DOTLINE,COLORFF44FF;
一:天-REF(天-地,1)*0.875,DOTLINE,COLORGREEN;
二:天-REF(天-地,1)*0.75,DOTLINE,COLORCYAN;
六:天-(REF(天-地,1)*0.375),DOTLINE,COLORE0E0E0;
七:天-(REF(天-地,1)*0.25),DOTLINE,COLORE800E8;

STICKLINE(CURRBARSCOUNT<28,H,L,3,1),COLORCYAN;
 ZX:=(6*C+2*O+H+L)/10;
买线:=EMA(ZX,3);
卖线:=EMA(SLOPE(ZX,24)*15+ZX,45);
 STICKLINE(CURRBARSCOUNT<28 AND 买线>=卖线,LOW,HIGH,3,1),COLORMAGENTA;
现价:DRAWLINE(CURRBARSCOUNT=TOTALBARSCOUNT,CONST(C),CURRBARSCOUNT=1,C,3),COLORFFD0D0;

DRAWLINE(HIGH>=HHV(HIGH,34),HIGH,LOW<=LLV(LOW,34),LOW,0),POINTDOT,LINETHICK4,COLORC0C0C0;
 DRAWLINE(LOW<=LLV(LOW,34),LOW,HIGH>=HHV(HIGH,34),HIGH,0),POINTDOT,LINETHICK4,,COLORC0C0C0;
 DRAWLINE(HIGH>=HHV(HIGH,13),HIGH,LOW<=LLV(LOW,13),LOW,0),COLORWHITE;
 DRAWLINE(LOW<=LLV(LOW,13),LOW,HIGH>=HHV(HIGH,13),HIGH,0),COLORGREEN;
 DRAWLINE(HIGH>=HHV(HIGH,5),HIGH,LOW<=LLV(LOW,5),LOW,0),COLORCYAN;
 DRAWLINE(LOW<=LLV(LOW,5),LOW,HIGH>=HHV(HIGH,5),HIGH,0),COLORYELLOW;
 IF(CURRBARSCOUNT<28,ZX,DRAWNULL),POINTDOT,COLORYELLOW,LINETHICK4;
 DRAWTEXT(CURRBARSCOUNT=3,八,'八'),COLORE0E0E0;
 DRAWNUMBER(CURRBARSCOUNT=1,八,八),COLORE0E0E0;
 DRAWTEXT(CURRBARSCOUNT=3,六,'六'),COLORE0E0E0;
 DRAWNUMBER(CURRBARSCOUNT=1,六,六),COLORE0E0E0;
 DRAWTEXT(CURRBARSCOUNT=3,五,'五'),COLORE0E0E0;
 DRAWNUMBER(CURRBARSCOUNT=1,五,五),COLORE0E0E0;
 DRAWTEXT(CURRBARSCOUNT=3,三,'三'),COLORE0E0E0;
 DRAWNUMBER(CURRBARSCOUNT=1,三,三),COLORE0E0E0;
 DRAWTEXT(CURRBARSCOUNT=3,二,'二'),COLORE0E0E0;
 DRAWNUMBER(CURRBARSCOUNT=1,二,二),COLORE0E0E0;
 DRAWTEXT(CURRBARSCOUNT=3,一,'一'),COLORE0E0E0;
 DRAWNUMBER(CURRBARSCOUNT=1,一,一),COLORE0E0E0;
 DRAWTEXT(CURRBARSCOUNT=3,七,'七'),COLORE0E0E0;
 DRAWNUMBER(CURRBARSCOUNT=1,七,七),COLORE0E0E0;
 DRAWTEXT(CURRBARSCOUNT=3,天,'天'),COLORE0E0E0;
 DRAWNUMBER(CURRBARSCOUNT=1,天,天),COLORE0E0E0;
 DRAWTEXT(CURRBARSCOUNT=3,地,'地'),COLORE0E0E0;
 DRAWNUMBER(CURRBARSCOUNT=1,地,地),COLORE0E0E0;

DRAWICON(ISLASTBAR=1 AND ZX>C,C,39);
 DRAWICON(ISLASTBAR=1 AND ZX<C,C,38);
 STICKLINE(CURRBARSCOUNT=2,(L+H)/2,(L+H)/2,3,0),COLORYELLOW;
 DRAWNUMBER(CURRBARSCOUNT=2,(L+H)/2,(L+H)/2),COLORWHITE;

73133989.gif

73133989.gif

731122607.png

731122607.png

731199081.png

731199081.png

回复

使用道具 举报

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

本版积分规则