大智慧公式源码 大智慧自用CCI公式源码
2015-2-12 11:12:57 股票入门 http://rumen.southmoney.com
N:=14;M:=3;N2:=84;N3:=55;
TYP := (HIGH + LOW + CLOSE)/3;
cci:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),LINETHICK2;
100;
0;
-100;
FILLRGN(CCi,150,CCi》150),Color38FF00;
FILLRGN(CCi,200,CCi》200),Color0000FF;
FILLRGN(CCi,-150,CCi《-150),COLOR00AAFF;
FILLRGN(CCi,-200,CCi《-200),Color0000FF;
w5:=ma(cci,m);
cci84:(TYP-MA(TYP,N2))/(0.015*AVEDEV(TYP,N2)),Color0000FF,LINETHICK2;
cci50:(TYP-MA(TYP,N3))/(0.015*AVEDEV(TYP,N3));
w845:=ma(cci84,5);
w215:=ma(cci50,3);
70,Color8000FF,LINETHICK2;
w84:cci84-ref(cci84,1),VOLSTICK;
立春:=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(立春,100,‘立春’),COLORgreen;
DRAWTEXT(雨水,100,‘雨水’),COLORgreen;
DRAWTEXT(惊蛰,100,‘惊蛰’),COLORgreen;
DRAWTEXT(春分,100,‘春分’),COLORgreen;
DRAWTEXT(清明,100,‘清明’),COLORgreen;
DRAWTEXT(谷雨,100,‘谷雨’),COLORgreen;
DRAWTEXT(立夏,100,‘立夏’),COLORMAGENTA;
DRAWTEXT(小满,100,‘小满’),COLORMAGENTA;
DRAWTEXT(芒种,100,‘芒种’),COLORMAGENTA;
DRAWTEXT(夏至,100,‘夏至’),COLORMAGENTA;
DRAWTEXT(小暑,100,‘小暑’),COLORMAGENTA;
DRAWTEXT(大署,100,‘大署’),COLORMAGENTA;
DRAWTEXT(立秋,100,‘立秋’),COLORYELLOW;
DRAWTEXT(处暑,100,‘处暑’),COLORYELLOW;
DRAWTEXT(白露,100,‘白露’),COLORYELLOW;
DRAWTEXT(秋分,100,‘秋分’),COLORYELLOW;
DRAWTEXT(寒露,100,‘寒露’),COLORYELLOW;
DRAWTEXT(霜降,100,‘霜降’),COLORYELLOW;
DRAWTEXT(立冬,100,‘立冬’),COLORWHITE;
DRAWTEXT(小雪,100,‘小雪’),COLORWHITE;
DRAWTEXT(大雪,100,‘大雪’),COLORWHITE;
DRAWTEXT(冬至,100,‘冬至’),COLORWHITE;
DRAWTEXT(小寒,100,‘小寒’),COLORWHITE;
DRAWTEXT(大寒,100,‘大寒’),COLORWHITE;
DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
GX:REF(主力潜伏,1)=1 AND 主力潜伏《10 ,COLORYELLOW;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。