当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

廿四节气主图(通达信公式源码)

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

廿四节气__大智慧公式转换而来

 阳:IF(CLOSE>SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORMAGENTA;

阴:IF(CLOSE<SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN;
STICKLINE(CLOSE>SAR(4,2,20) AND REF(CLOSE,1)<REF(SAR(4,2,20),1) ,REF(CLOSE,1),OPEN,4,0),COLOR00FFFF;
STICKLINE(CLOSE<SAR(4,2,20) AND REF(CLOSE,1)>REF(SAR(4,2,20),1) ,REF(CLOSE,1),OPEN,4,0),COLOR00FF00;
EMA(C,5);
EMA(C,18);
DRAWTEXT(CROSS(EMA(C,5),EMA(C,18)),LOW,'金') ;
李BBI:(MA(CLOSE,5)+MA(CLOSE,8)+MA(CLOSE,13)+MA(CLOSE,21))/4,COLORWHITE,LINETHICK2;
立春:=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);
STICKLINE(立春,H,L,0.5,1),COLORWHITE;
STICKLINE(立春,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(立春,HIGH*1.01,'立春'),COLORWHITE;
STICKLINE(雨水,H,L,0.5,1),COLORWHITE;
STICKLINE(雨水,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(雨水,HIGH*1.01,'雨水'),COLORWHITE;
STICKLINE(惊蛰,H,L,0.5,1),COLORWHITE;
STICKLINE(惊蛰,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(惊蛰,HIGH*1.01,'惊蛰'),COLORWHITE;
STICKLINE(春分,H,L,0.5,1),COLORWHITE;
STICKLINE(春分,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(春分,HIGH*1.01,'春分'),COLORWHITE;
STICKLINE(清明,H,L,0.5,1),COLORWHITE;
STICKLINE(清明,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(清明,HIGH*1.01,'清明'),COLORWHITE;
STICKLINE(谷雨,H,L,0.5,1),COLORWHITE;
STICKLINE(谷雨,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(谷雨,HIGH*1.01,'谷雨'),COLORWHITE;
STICKLINE(立夏,H,L,0.5,1),COLORWHITE;
STICKLINE(立夏,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(立夏,HIGH*1.01,'立夏'),COLORWHITE;
STICKLINE(小满,H,L,0.5,1),COLORWHITE;
STICKLINE(小满,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(小满,HIGH*1.01,'小满'),COLORWHITE;
STICKLINE(芒种,H,L,0.5,1),COLORWHITE;
STICKLINE(芒种,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(芒种,HIGH*1.01,'芒种'),COLORWHITE;
STICKLINE(夏至,H,L,0.5,1),COLORWHITE;
STICKLINE(夏至,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(夏至,HIGH*1.01,'夏至'),COLORWHITE;
STICKLINE(小暑,H,L,0.5,1),COLORWHITE;
STICKLINE(小暑,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(小暑,HIGH*1.01,'小暑'),COLORWHITE;
STICKLINE(大署,H,L,0.5,1),COLORWHITE;
STICKLINE(大署,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(大署,HIGH*1.01,'大署'),COLORWHITE;
STICKLINE(立秋,H,L,0.5,1),COLORWHITE;
STICKLINE(立秋,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(立秋,HIGH*1.01,'立秋'),COLORWHITE;
STICKLINE(处暑,H,L,0.5,1),COLORWHITE;
STICKLINE(处暑,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(处暑,HIGH*1.01,'处暑'),COLORWHITE;
STICKLINE(白露,H,L,0.5,1),COLORWHITE;
STICKLINE(白露,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(白露,HIGH*1.01,'白露'),COLORWHITE;
STICKLINE(秋分,H,L,0.5,1),COLORWHITE;
STICKLINE(秋分,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(秋分,HIGH*1.01,'秋分'),COLORWHITE;
STICKLINE(寒露,H,L,0.5,1),COLORWHITE;
STICKLINE(寒露,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(寒露,HIGH*1.01,'寒露'),COLORWHITE;
STICKLINE(霜降,H,L,0.5,1),COLORWHITE;
STICKLINE(霜降,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(霜降,HIGH*1.01,'霜降'),COLORWHITE;
STICKLINE(立冬,H,L,0.5,1),COLORWHITE;
STICKLINE(立冬,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(立冬,HIGH*1.01,'立冬'),COLORWHITE;
STICKLINE(小雪,H,L,0.5,1),COLORWHITE;
STICKLINE(小雪,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(小雪,HIGH*1.01,'小雪'),COLORWHITE;
STICKLINE(大雪,H,L,0.5,1),COLORWHITE;
STICKLINE(大雪,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(大雪,HIGH*1.01,'大雪'),COLORWHITE;
STICKLINE(冬至,H,L,0.5,1),COLORWHITE;
STICKLINE(冬至,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(冬至,HIGH*1.01,'冬至'),COLORWHITE;
STICKLINE(小寒,H,L,0.5,1),COLORWHITE;
STICKLINE(小寒,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(小寒,HIGH*1.01,'小寒'),COLORWHITE;
STICKLINE(大寒,H,L,0.5,1),COLORWHITE;
STICKLINE(大寒,O,C,6,1),LINETHICK2,COLORWHITE;
DRAWTEXT(大寒,HIGH*1.01,'大寒'),COLORWHITE;
B:=C<REF(C,4);{股民学院 www.58188.com 整理}
N:=CURRBARSCOUNT;
B1:=(N=6 AND REFXV(COUNT(B,6),5)=6) OR (N=7 AND REFXV(COUNT(B,7),6)=7) OR (N=8 AND REFXV(COUNT(B,8),7)=8) OR (N>=9 AND REFXV(COUNT(B,9),8)=9);
DRAWNUMBER(B1 AND REF(B,1)=0,L,1),COLORMAGENTA;
B2:=(N=5 AND REFXV(COUNT(B,6),4)=6) OR (N=6 AND REFXV(COUNT(B,7),5)=7) OR (N=7 AND REFXV(COUNT(B,8),6)=8) OR (N>=8 AND REFXV(COUNT(B,9),7)=9);
DRAWNUMBER(B2 AND REF(B,2)=0,L,2),COLORMAGENTA;
B8:=(N=1 AND COUNT(B,8)=8) OR (N>=2 AND REFXV(COUNT(B,9),1)=9);
DRAWNUMBER(B8 AND REF(B,8)=0,L,8),COLORMAGENTA;
B9:=(N>=1 AND COUNT(B,9)=9);
DRAWNUMBER(B9 AND REF(B,9)=0,L,9),COLORYELLOW;
S:=C>REF(C,4);
S1:=(N=6 AND REFXV(COUNT(S,6),5)=6) OR (N=7 AND REFXV(COUNT(S,7),6)=7) OR (N=8 AND REFXV(COUNT(S,8),7)=8) OR (N>=9 AND REFXV(COUNT(S,9),8)=9);
DRAWNUMBER(S1 AND REF(S,1)=0,H,1),COLORMAGENTA,DRAWABOVE;
S2:=(N=5 AND REFXV(COUNT(S,6),4)=6) OR (N=6 AND REFXV(COUNT(S,7),5)=7) OR (N=7 AND REFXV(COUNT(S,8),6)=8) OR (N>=8 AND REFXV(COUNT(S,9),7)=9);
DRAWNUMBER(S2 AND REF(S,2)=0,H,2),COLORMAGENTA,DRAWABOVE;
S8:=(N=1 AND COUNT(S,8)=8) OR (N>=2 AND REFXV(COUNT(S,9),1)=9);
DRAWNUMBER(S8 AND REF(S,8)=0,H,8),COLORMAGENTA,DRAWABOVE;
S9:=(N>=1 AND COUNT(S,9)=9);
DRAWNUMBER(S9 AND REF(S,9)=0,H,9),COLORGREEN,DRAWABOVE;

上一篇:抄底和中长期(通达信公式源码)

下一篇:黄金买卖点(通达信公式源码)