M1:=14; M2:=26; M3:=144; M4:=250; M5:=380; M6:=610;
工作线:EXPMA(CLOSE,M1),COLORFF00FF;
决策线:EXPMA(CLOSE,M2),COLOR0000FF,LINETHICK2;
生命线:EXPMA(CLOSE,M3),COLOR55DDDD,LINETHICK2,CROSSDOT;
智慧线:EXPMA(CLOSE,M4),COLOR88FF00,LINETHICK1;
天下线:EXPMA(CLOSE,M5),COLORFFAAAA;
终极线:EXPMA(CLOSE,M6),COLORFFFF55;
今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORAAAAAA,NODRAW;
GJ:=(C+H+L+O)/4;
明日阻力:=L+(GJ-L)+(C-L),COLOR00FF00,NODRAW;
明日支撑:=L+(C-GJ),COLOR0099FF,NODRAW;
今日阻力:REF(明日阻力,1),COLORFFFF00,NODRAW;
今日支撑:REF(明日支撑,1),COLORFF00FF,NODRAW;
STICKLINE(ISLASTBAR AND C>=今日阻力,今日阻力,今日阻力,10,1),COLOR0000FF;
STICKLINE(ISLASTBAR AND C<今日阻力,今日阻力,今日阻力,10,1),COLOR00FF00;
STICKLINE(ISLASTBAR AND C>=今日支撑,今日支撑,今日支撑,10,1),COLORFF00FF;
STICKLINE(ISLASTBAR AND C<今日支撑,今日支撑,今日支撑,10,1),COLORFF8800;
STICKLINE(ISLASTBAR,今日保护价,今日保护价,20,1),COLORAAAAAA;
立春:=FILTER(MONTH=2 AND (DAY=3 OR DAY=5 ),2);
雨水:=FILTER(MONTH=2 AND (DAY=18 OR DAY=20),2);
惊蛰:=FILTER(MONTH=3 AND (DAY=5 OR DAY=7 ),2);
春分:=FILTER(MONTH=3 AND (DAY=20 OR DAY=22),2);
清明:=FILTER(MONTH=4 AND (DAY=4 OR DAY=6 ),2);
谷雨:=FILTER(MONTH=4 AND (DAY=19 OR DAY=21),2);
立夏:=FILTER(MONTH=5 AND (DAY=6 OR DAY=8 ),2);
小满:=FILTER(MONTH=5 AND (DAY=20 OR DAY=22),2);
芒种:=FILTER(MONTH=6 AND (DAY=5 OR DAY=7 ),2);
夏至:=FILTER(MONTH=6 AND (DAY=20 OR DAY=22),2);
小暑:=FILTER(MONTH=7 AND (DAY=6 OR DAY=8 ),2);
大署:=FILTER(MONTH=7 AND (DAY=22 OR DAY=24),2);
立秋:=FILTER(MONTH=8 AND (DAY=7 OR DAY=9 ),2);
处暑:=FILTER(MONTH=8 AND (DAY=22 OR DAY=24),2);
白露:=FILTER(MONTH=9 AND (DAY=7 OR DAY=9 ),2);
秋分:=FILTER(MONTH=9 AND (DAY=22 OR DAY=24),2);
寒露:=FILTER(MONTH=10 AND (DAY=7 OR DAY=9 ),2);
霜降:=FILTER(MONTH=10 AND (DAY=22 OR DAY=24),2);
立冬:=FILTER(MONTH=11 AND (DAY=7 OR DAY=9 ),2);
小雪:=FILTER(MONTH=11 AND (DAY=22 OR DAY=24),2);
大雪:=FILTER(MONTH=12 AND (DAY=6 OR DAY=8 ),2);
冬至:=FILTER(MONTH=12 AND (DAY=21 OR DAY=23),2);
小寒:=FILTER(MONTH=1 AND (DAY=5 OR DAY=7 ),2);
大寒:=FILTER(MONTH=1 AND (DAY=19 OR DAY=21),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,'清明'),COLORGREEN;
DRAWTEXT(谷雨,HIGH*1.01,'谷雨'),COLORGREEN;
DRAWTEXT(立夏,HIGH*1.01,'立夏'),COLORMAGENTA;
DRAWTEXT(小满,HIGH*1.01,'小满'),COLORMAGENTA;
DRAWTEXT(芒种,HIGH*1.01,'芒种'),COLORMAGENTA;
DRAWTEXT(夏至,HIGH*1.01,'夏至'),COLORMAGENTA;
DRAWTEXT(小暑,HIGH*1.01,'小暑'),COLORMAGENTA;
DRAWTEXT(大署,HIGH*1.01,'大署'),COLORMAGENTA;
DRAWTEXT(立秋,HIGH*1.01,'立秋'),COLORYELLOW;
DRAWTEXT(处暑,HIGH*1.01,'处暑'),COLORYELLOW;
DRAWTEXT(白露,HIGH*1.01,'白露'),COLORYELLOW;
DRAWTEXT(秋分,HIGH*1.01,'秋分'),COLORYELLOW;
DRAWTEXT(寒露,HIGH*1.01,'寒露'),COLORYELLOW;
DRAWTEXT(霜降,HIGH*1.01,'霜降'),COLORYELLOW;
DRAWTEXT(立冬,HIGH*1.01,'立冬'),COLORWHITE;
DRAWTEXT(小雪,HIGH*1.01,'小雪'),COLORWHITE;
DRAWTEXT(大雪,HIGH*1.01,'大雪'),COLORWHITE;
DRAWTEXT(冬至,HIGH*1.01,'冬至'),COLORWHITE;
DRAWTEXT(小寒,HIGH*1.01,'小寒'),COLORWHITE;
DRAWTEXT(大寒,HIGH*1.01,'大寒'),COLORWHITE; |