海龟社区的创始人!

通达信“节气”代码,主图和副图都有!

12 05月
作者:无痕阅盘|分类:通达信指标|标签:立夏 立秋 寒露 秋分 代码 通达信

通达信“节气”代码,主图和副图都有!


副图代码:

M:=MONTH;
D:=DAY;

XB1:=M=2 AND D=4;
XB2:=M=2 AND D=19;
XB3:=M=3 AND D=6;
XB4:=M=3 AND D=21;
XB5:=M=4 AND D=5;
XB6:=M=4 AND D=20;

XB7:=M=5 AND D=6;
XB8:=M=5 AND D=21;
XB9:=M=6 AND D=6;
XB10:=M=6 AND D=22;
XB11:=M=7 AND D=7;
XB12:=M=7 AND D=23;

XB13:=M=8 AND D=8;
XB14:=M=8 AND D=23;
XB15:=M=9 AND D=8;
XB16:=M=9 AND D=23;
XB17:=M=10 AND D=8;
XB18:=M=10 AND D=24;

XB19:=M=11 AND D=8;
XB20:=M=11 AND D=23;
XB21:=M=12 AND D=7;
XB22:=M=12 AND D=22;
XB23:=M=1 AND D=6;
XB24:=M=1 AND D=20;

STICKLINE(XB1,H,H+H/9,4,1)COLORLIMAGENTA;
STICKLINE(XB2,H,H+H/9,4,1)COLORLIMAGENTA;
STICKLINE(XB2,H,H+H/9,4,1)COLORLIMAGENTA;
STICKLINE(XB4,H,H+H/9,4,0)COLORLIMAGENTA;
STICKLINE(XB5,H,H+H/9,4,1)COLORLIMAGENTA;
STICKLINE(XB6,H,H+H/9,4,1)COLORLIMAGENTA;

STICKLINE(XB7,H,H+H/9,3,1)COLORLIGRAY;
STICKLINE(XB8,H,H+H/9,3,1)COLORLIGRAY;
STICKLINE(XB9,H,H+H/9,3,1)COLORLIGRAY;
STICKLINE(XB10,H,H+H/9,1,0)COLORRED;
STICKLINE(XB11,H,H+H/9,3,1)COLORLIGRAY;
STICKLINE(XB12,H,H+H/9,3,1)COLORLIGRAY;

STICKLINE(XB13,H,H+H/9,2,1)COLORYELLOW;
STICKLINE(XB14,H,H+H/9,2,1)COLORYELLOW;
STICKLINE(XB15,H,H+H/9,2,1)COLORYELLOW;
STICKLINE(XB16,H,H+H/9,2,0)COLORYELLOW;
STICKLINE(XB17,H,H+H/9,2,1)COLORYELLOW;
STICKLINE(XB18,H,H+H/9,2,1)COLORYELLOW;

STICKLINE(XB19,H,H+H/9,1,1)COLORLICYAN;
STICKLINE(XB20,H,H+H/9,1,1)COLORLICYAN;
STICKLINE(XB21,H,H+H/9,1,1)COLORLICYAN;
STICKLINE(XB22,H,H+H/9,1,0)COLORLICYAN;
STICKLINE(XB23,H,H+H/9,1,1)COLORLICYAN;
STICKLINE(XB24,H,H+H/9,1,1)COLORLICYAN;

DRAWKLINE(HIGH,OPEN,LOW,CLOSE);

DRAWTEXT(XB1,H+H/7,'立春');
DRAWTEXT(XB2,H+H/7,'雨水');
DRAWTEXT(XB3,H+H/7,'惊蟹');
DRAWTEXT(XB4,H+H/7,'⊥春分')COLORGREEN;
DRAWTEXT(XB5,H+H/7,'清明');
DRAWTEXT(XB6,H+H/7,'谷雨');

DRAWTEXT(XB7,H+H/7,'立夏');
DRAWTEXT(XB8,H+H/7,'小满');
DRAWTEXT(XB9,H+H/7,'芒种');
DRAWTEXT(XB10,H+H/7,'¤夏至')COLORRED;
DRAWTEXT(XB11,H+H/7,'小暑');
DRAWTEXT(XB12,H+H/7,'大暑');

DRAWTEXT(XB13,H+H/7,'立秋');
DRAWTEXT(XB14,H+H/7,'处暑');
DRAWTEXT(XB15,H+H/7,'白露');
DRAWTEXT(XB16,H+H/7,'≈秋分')COLORBROWN;
DRAWTEXT(XB17,H+H/7,'寒露');
DRAWTEXT(XB18,H+H/7,'霜降');

DRAWTEXT(XB19,H+H/7,'立冬');
DRAWTEXT(XB20,H+H/7,'小雪');
DRAWTEXT(XB21,H+H/7,'大雪');
DRAWTEXT(XB22,H+H/7,'※冬至')COLORLIBLUE;
DRAWTEXT(XB23,H+H/7,'小寒');
DRAWTEXT(XB24,H+H/7,'大寒');



主图代码


M1:=5;
M2:=10;
M3:=20;
M4:=60;
M5:=120;
M6:=250;
M7:=0;
M8:=0;
M9:=0;
M10:=0;
立春:=FILTER(MONTH=2 AND (DAY=4 OR DAY=6 ),2);
雨水:=FILTER(MONTH=2 AND (DAY=19 OR DAY=21),2);
惊蛰:=FILTER(MONTH=3 AND (DAY=6 OR DAY=8 ),2);
春分:=FILTER(MONTH=3 AND (DAY=21 OR DAY=23),2);
清明:=FILTER(MONTH=4 AND (DAY=5 OR DAY=7 ),2);
谷雨:=FILTER(MONTH=4 AND (DAY=20 OR DAY=22),2);
立夏:=FILTER(MONTH=5 AND (DAY=7 OR DAY=9 ),2);
小满:=FILTER(MONTH=5 AND (DAY=21 OR DAY=23),2);
芒种:=FILTER(MONTH=6 AND (DAY=6 OR DAY=8 ),2);
夏至:=FILTER(MONTH=6 AND (DAY=21 OR DAY=23),2);
小暑:=FILTER(MONTH=7 AND (DAY=7 OR DAY=9 ),2);
大署:=FILTER(MONTH=7 AND (DAY=23 OR DAY=25),2);
立秋:=FILTER(MONTH=8 AND (DAY=8 OR DAY=10 ),2);
处暑:=FILTER(MONTH=8 AND (DAY=23 OR DAY=25),2);
白露:=FILTER(MONTH=9 AND (DAY=8 OR DAY=10 ),2);
秋分:=FILTER(MONTH=9 AND (DAY=23 OR DAY=25),2);
寒露:=FILTER(MONTH=10 AND (DAY=8 OR DAY=10 ),2);
霜降:=FILTER(MONTH=10 AND (DAY=23 OR DAY=25),2);
立冬:=FILTER(MONTH=11 AND (DAY=8 OR DAY=10 ),2);
小雪:=FILTER(MONTH=11 AND (DAY=23 OR DAY=25),2);
大雪:=FILTER(MONTH=12 AND (DAY=7 OR DAY=9 ),2);
冬至:=FILTER(MONTH=12 AND (DAY=22 OR DAY=24),2);
小寒:=FILTER(MONTH=1 AND (DAY=6 OR DAY=8 ),2);
大寒:=FILTER(MONTH=1 AND (DAY=20 OR DAY=22),2);
DRAWTEXT(立春,HIGH*1.01,'★立春'),COLORGREEN;
DRAWTEXT(雨水,HIGH*1.01,'★雨水'),COLORGREEN;
DRAWTEXT(惊蛰,HIGH*1.01,'★惊蛰'),COLORGREEN;
DRAWTEXT(春分,HIGH*1.01,'★春分'),COLORGREEN;
DRAWTEXT(清明,HIGH*1.01,'★清明'),COLORYELLOW;
DRAWTEXT(谷雨,HIGH*1.01,'★谷雨'),COLORYELLOW;
DRAWTEXT(立夏,HIGH*1.01,'★立夏'),COLORRED;
DRAWTEXT(小满,HIGH*1.01,'★小满'),COLORRED;
DRAWTEXT(芒种,HIGH*1.01,'★芒种'),COLORRED;
DRAWTEXT(夏至,HIGH*1.01,'★夏至'),COLORRED;
DRAWTEXT(小暑,HIGH*1.01,'★小暑'),COLORYELLOW;
DRAWTEXT(大署,HIGH*1.01,'★大署'),COLORYELLOW;
DRAWTEXT(立秋,HIGH*1.01,'★立秋'),COLORBBBBBB;
DRAWTEXT(处暑,HIGH*1.01,'★处暑'),COLORBBBBBB;
DRAWTEXT(白露,HIGH*1.01,'★白露'),COLORBBBBBB;
DRAWTEXT(秋分,HIGH*1.01,'★秋分'),COLORBBBBBB;
DRAWTEXT(寒露,HIGH*1.01,'★寒露'),COLORYELLOW;
DRAWTEXT(霜降,HIGH*1.01,'★霜降'),COLORYELLOW;
DRAWTEXT(立冬,HIGH*1.01,'★立冬'),COLORGREEN;
DRAWTEXT(小雪,HIGH*1.01,'★小雪'),COLORGREEN;
DRAWTEXT(大雪,HIGH*1.01,'★大雪'),COLORGREEN;
DRAWTEXT(冬至,HIGH*1.01,'★冬至'),COLORGREEN;
DRAWTEXT(小寒,HIGH*1.01,'★小寒')COLORYELLOW;
DRAWTEXT(大寒,HIGH*1.01,'★大寒'),COLORYELLOW;

浏览3191 评论0
返回
目录
返回
首页
三孚新科(688359):国内知名的表面工程专用化学品提供商 只差临门一脚,重迎小牛市!(5月13日操盘思考)

发表评论