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

源码
{参数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;


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。