首页 > 原创>正文

指标cci源码(macd变色指标公式?)

妈妈金融财经网 gengxing 2023-05-30 10:36:05

1. macd变色指标公式?

MACD变色公式cTD妈妈金融财经网财经门户

源码cTD妈妈金融财经网财经门户

//MACD变色V4 +金叉买入指标公式cTD妈妈金融财经网财经门户

//20150328 DIFF上穿0轴后在0轴上第一次死叉后又金叉cTD妈妈金融财经网财经门户

//20150329 MACD多头二次翻红cTD妈妈金融财经网财经门户

DIFF:EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite,LINETHICK1;cTD妈妈金融财经网财经门户

DEA: EMA(DIFF,9),coloryellow,LINETHICK1;cTD妈妈金融财经网财经门户

MACD: 2*(DIFF-DEA),colorred,NODRAW;cTD妈妈金融财经网财经门户

Zero: 0,colorff7f00,LINETHICK1;cTD妈妈金融财经网财经门户

N:=IF(BARSCOUNT(C)<=5,MA(C,2),MA(C,5));cTD妈妈金融财经网财经门户

角度:((ATAN((N - REF(N,1))) * 3.1416) * 10),NODRAW,colorcyan;cTD妈妈金融财经网财经门户

//角度:((ATAN((MA(C,5) - REF(MA(C,5) ,1))) * 3.1416) * 10),NODRAW;cTD妈妈金融财经网财经门户

流通股:SHGZG/10000/10000,NODRAW,colorff7f00;cTD妈妈金融财经网财经门户

资本公积:GJJ/ZGB,NODRAW;cTD妈妈金融财经网财经门户

//CCI抄底cTD妈妈金融财经网财经门户

N:=14;cTD妈妈金融财经网财经门户

TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;cTD妈妈金融财经网财经门户

CCI: (TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),colorffff00,NODRAW;cTD妈妈金融财经网财经门户

//红色cTD妈妈金融财经网财经门户

STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),color0000ff;cTD妈妈金融财经网财经门户

//墨绿cTD妈妈金融财经网财经门户

STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),colorffff00;cTD妈妈金融财经网财经门户

//洋红cTD妈妈金融财经网财经门户

STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorff00ff;cTD妈妈金融财经网财经门户

//绿色cTD妈妈金融财经网财经门户

STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),color00ff00;cTD妈妈金融财经网财经门户

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.2;cTD妈妈金融财经网财经门户

贴近零轴金叉:=CROSS(DIFF,DEA) AND MACD>0 AND BETWEEN(DIFF,-0.03,0.03);cTD妈妈金融财经网财经门户

//VERLINE(水上低位金叉,1),colorwhite;cTD妈妈金融财经网财经门户

//DRAWTEXT(低位金叉,DIFF*1.1,'低位'),color00aaff;cTD妈妈金融财经网财经门户

AA:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));cTD妈妈金融财经网财经门户

一次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=1,21)=1;cTD妈妈金融财经网财经门户

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=2,21)=1;cTD妈妈金融财经网财经门户

三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=3,21)=1;cTD妈妈金融财经网财经门户

四次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=4,21)=1;cTD妈妈金融财经网财经门户

五次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=5,21)=1;cTD妈妈金融财经网财经门户

//VERLINE(二次金叉,1),colorwhite;cTD妈妈金融财经网财经门户

DRAWTEXT(一次金叉,DIFF*1.1,'①'),color00aaff;cTD妈妈金融财经网财经门户

DRAWTEXT(一次金叉 AND 低位金叉,DIFF*1.1,'①低位'),color00aaff;cTD妈妈金融财经网财经门户

DRAWTEXT(二次金叉,DIFF*1.1,'②'),color00aaff;cTD妈妈金融财经网财经门户

DRAWTEXT(二次金叉 AND 低位金叉,DIFF*1.1,'②低位'),color00aaff;cTD妈妈金融财经网财经门户

DRAWTEXT(三次金叉,DIFF*1.1,'③'),color00aaff;cTD妈妈金融财经网财经门户

DRAWTEXT(三次金叉 AND 低位金叉,DIFF*1.1,'③低位'),color00aaff;cTD妈妈金融财经网财经门户

DRAWTEXT(四次金叉,DIFF*1.1,'④'),color00aaff;cTD妈妈金融财经网财经门户

DRAWTEXT(四次金叉 AND 低位金叉,DIFF*1.1,'④低位'),color00aaff;cTD妈妈金融财经网财经门户

DRAWTEXT(五次金叉,DIFF*1.1,'⑤'),color00aaff;cTD妈妈金融财经网财经门户

DRAWTEXT(五次金叉 AND 低位金叉,DIFF*1.1,'⑤低位'),color00aaff;cTD妈妈金融财经网财经门户

//DIFF上穿0轴后在0轴上第一次死叉后又金叉 www.gszb.comcTD妈妈金融财经网财经门户

AA:= CROSS(DIFF,DEA) AND DEA>0 ;cTD妈妈金融财经网财经门户

BB:=BARSLAST(CROSS(DEA,DIFF)) AND DEA>0;cTD妈妈金融财经网财经门户

CC:=REF(BARSLAST(CROSS(DIFF,0))<20,BARSLAST(CROSS(DEA,DIFF))+1);cTD妈妈金融财经网财经门户

MACD死叉后金叉:= AA AND BB AND CC;cTD妈妈金融财经网财经门户

DRAWTEXT(MACD死叉后金叉,DIFF*1.1+0.1,'①'),colorred;cTD妈妈金融财经网财经门户

//MACD多头二次翻红cTD妈妈金融财经网财经门户

FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);cTD妈妈金融财经网财经门户

FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;cTD妈妈金融财经网财经门户

FH3:=EMA(C,30)>=REF(EMA(C,30),1) AND COUNT(EMA(C,5)>EMA(C,10) AND EMA(C,10)>EMA(C,30),1)=1;cTD妈妈金融财经网财经门户

FH4:=CROSS(C,EMA(C,30)) OR C>EMA(C,30);cTD妈妈金融财经网财经门户

FH5:=FH1 AND FH2 AND FH3 AND FH4;cTD妈妈金融财经网财经门户

FH6:=FH1 AND FH2 AND FH3 AND FH4 AND ABS((DIFF-DEA)/C)<0.018;cTD妈妈金融财经网财经门户

FH7:=FH1 AND FH2 AND FH3 AND FH4 AND MACD<0.10;cTD妈妈金融财经网财经门户

MACD多头二次翻红:=FH5 OR FH6 OR FH7;cTD妈妈金融财经网财经门户

DRAWTEXT(MACD多头二次翻红 AND REF(CCI,1)<50,DIFF*1.1+0.05,'②'),colorred;cTD妈妈金融财经网财经门户

//这个"二次翻红"指标除了满足原有的四个条件外,即:cTD妈妈金融财经网财经门户

//一是MACD在零轴以上并且第二次收红柱;cTD妈妈金融财经网财经门户

//二是MACD红柱大于等于零轴并且红柱缩短小于0.10以下;(实战0.111也行)cTD妈妈金融财经网财经门户

//三是DIFF与DEA两线的粘合度小于0.018;cTD妈妈金融财经网财经门户

//四是红柱连续缩短三天以上。cTD妈妈金融财经网财经门户

//还基本满足了所描述的四个条件(即:cTD妈妈金融财经网财经门户

//1、30日移动平均线由下跌变为走平或翘头向上,5日、10、30日移动平均线刚刚形成多头排列;cTD妈妈金融财经网财经门户

//2、日K线刚刚上穿30日移动平均线或在30日移动平均线上方运行;cTD妈妈金融财经网财经门户

//3、DIF在零轴下方与MACD金叉后可靠意义将会更大,在第一次翻红后,红柱开始缩短,越短越好,最好不要超过0轴的第一横线;cTD妈妈金融财经网财经门户

//4、成交量由萎缩逐渐放大,特别是在二次翻红后,若能得到成交量的配合,该股后市向上冲击的力量会更大。)cTD妈妈金融财经网财经门户

//该指标没有设计成交量这个条件。只要符合所涉及到的条件,就能在"二次翻红"起涨点选出股票。cTD妈妈金融财经网财经门户

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));cTD妈妈金融财经网财经门户

底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);cTD妈妈金融财经网财经门户

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));cTD妈妈金融财经网财经门户

顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);cTD妈妈金融财经网财经门户

DRAWLINE(A1=0,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;cTD妈妈金融财经网财经门户

DRAWLINE(底背离,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;cTD妈妈金融财经网财经门户

DRAWTEXT(底背离,REF(DEA,A1)*1.28,'+底背离'),COLORFF00FF;cTD妈妈金融财经网财经门户

DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;cTD妈妈金融财经网财经门户

DRAWLINE(顶背离,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;cTD妈妈金融财经网财经门户

DRAWTEXT(顶背离,REF(DEA,A2)*1.18,'-顶背离'),colorgreen,LINETHICK2;cTD妈妈金融财经网财经门户

//5日均线上穿24日均线cTD妈妈金融财经网财经门户

MA5:=MA(C,5);cTD妈妈金融财经网财经门户

MA24:=MA(C,24);cTD妈妈金融财经网财经门户

LL:=IF(MACD<=0,MACD,-MACD);cTD妈妈金融财经网财经门户

A1:=CROSS(MA5,MA24) OR (MA5>MA24 AND REF(MA5,1)<REF(MA24,1));cTD妈妈金融财经网财经门户

A2:=MA(V,10)<V;cTD妈妈金融财经网财经门户

A3:=IF(MACD<0,MACD>=REF(MACD,1),MACD<cTD妈妈金融财经网财经门户

cTD妈妈金融财经网财经门户

3);cTD妈妈金融财经网财经门户

//五日内最大涨幅小于8%cTD妈妈金融财经网财经门户

A4:=C>=O AND 角度<8 AND COUNT(C/O>1.08,5)<1;cTD妈妈金融财经网财经门户

//日线买点:= MA5>MA24 AND REF(MA5,1)<REF(MA24,1) AND CCI<100;cTD妈妈金融财经网财经门户

日线买点:= A1 AND A2 AND A3 AND A4;cTD妈妈金融财经网财经门户

DRAWICON(日线买点,LL,"BUY");cTD妈妈金融财经网财经门户

2. kdj与cci共振指标公式?

KDJ+MACD双金叉选股公式,实盘验证,成功率高达90%cTD妈妈金融财经网财经门户

该公式代表的含义是当日KDJ和MACD双金叉;配合其它条件,就可以选出适合某些思路的股票,这里只抛砖引玉一下。cTD妈妈金融财经网财经门户

GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));cTD妈妈金融财经网财经门户

GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));cTD妈妈金融财经网财经门户

GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));cTD妈妈金融财经网财经门户

GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));cTD妈妈金融财经网财经门户

A:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;cTD妈妈金融财经网财经门户

B:=BARSLAST(CROSS(GJTJ4,GJTJ2));cTD妈妈金融财经网财经门户

D:=GJTJ3;cTD妈妈金融财经网财经门户

E:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;cTD妈妈金融财经网财经门户

F:=GJTJ2;cTD妈妈金融财经网财经门户

B1:=A>0 AND REF(A,1)=0 AND REF(A,2)>0;cTD妈妈金融财经网财经门户

周K:="KDJ.K#WEEK";cTD妈妈金融财经网财经门户

周D:="KDJ.D#WEEK";cTD妈妈金融财经网财经门户

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;cTD妈妈金融财经网财经门户

K:=SMA(RSV,3,1);cTD妈妈金融财经网财经门户

D1:=SMA(K,3,1);cTD妈妈金融财经网财经门户

去停牌:=DYNAINFO(8)>0;cTD妈妈金融财经网财经门户

去ST:=NOT(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S'));cTD妈妈金融财经网财经门户

ENTERLONG:A AND B AND D AND E AND F AND 去停牌 AND 去ST AND CROSS(周K,周D);cTD妈妈金融财经网财经门户

3. cci指标源码公式?

CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));cTD妈妈金融财经网财经门户

差值1:=ABS(REF(CCI1,1)-CCI1);cTD妈妈金融财经网财经门户

CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));cTD妈妈金融财经网财经门户

差值2:=ABS(REF(CCI2,1)-CCI2);cTD妈妈金融财经网财经门户

CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));cTD妈妈金融财经网财经门户

差值3:=ABS(REF(CCI3,1)-CCI3);cTD妈妈金融财经网财经门户

CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));cTD妈妈金融财经网财经门户

差值4:=ABS(REF(CCI4,1)-CCI4);cTD妈妈金融财经网财经门户

CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));cTD妈妈金融财经网财经门户

差值5:=ABS(REF(CCI5,1)-CCI5);cTD妈妈金融财经网财经门户

CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;cTD妈妈金融财经网财经门户

AAA:=(3*C+H+L+O)/6;cTD妈妈金融财经网财经门户

VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)cTD妈妈金融财经网财经门户

+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;cTD妈妈金融财经网财经门户

VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;cTD妈妈金融财经网财经门户

VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;cTD妈妈金融财经网财经门户

VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;cTD妈妈金融财经网财经门户

VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;cTD妈妈金融财经网财经门户

VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;cTD妈妈金融财经网财经门户

短线:VAR1,COLORWHITE;cTD妈妈金融财经网财经门户

中线:VAR6,COLORYELLOW;cTD妈妈金融财经网财经门户

下跌:IF(VAR1=VAR6,VAR6, 0),COLORGREEN,LINETHICK0;cTD妈妈金融财经网财经门户

PARTLINE(VAR6,VAR1=VAR6),COLORGREEN;cTD妈妈金融财经网财经门户

TJ1:= CCI1>差值4;cTD妈妈金融财经网财经门户

立桩量:=FILTER(TJ1,0){,NODRAW};cTD妈妈金融财经网财经门户

TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);cTD妈妈金融财经网财经门户

{STICKLINE(立桩量 <>1,REF(HIGH,BARSLAST(立桩量)),cTD妈妈金融财经网财经门户

REF(HIGH,BARSLAST(立桩量)),1,1),COLORCYAN;}cTD妈妈金融财经网财经门户

成立1:=TJ2=1;cTD妈妈金融财经网财经门户

条件成立1:=FILTER(成立1,5);cTD妈妈金融财经网财经门户

DRAWTEXT(条件成立1, REF(HIGH,BARSLAST(立桩量)),'看跌'),COLORBLUE;cTD妈妈金融财经网财经门户

TJ11:= CCI1<-差值4 ;cTD妈妈金融财经网财经门户

立桩量2:=FILTER(TJ11,0){,NODRAW};cTD妈妈金融财经网财经门户

TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,0);cTD妈妈金融财经网财经门户

突破2:=TJ22=1;cTD妈妈金融财经网财经门户

{STICKLINE(CLOSE AND (下跌<> VAR6),REF(LOW,BARSLAST(立桩量2)),cTD妈妈金融财经网财经门户

REF(LOW,BARSLAST(立桩量2)),1,1),COLORYELLOW;}cTD妈妈金融财经网财经门户

TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);cTD妈妈金融财经网财经门户

成立2:=TJ=1;cTD妈妈金融财经网财经门户

条件成立2:=FILTER(成立2,5);cTD妈妈金融财经网财经门户

DRAWTEXT(条件成立2,REF(LOW,BARSLAST(立桩量2)),'看涨'),COLORMAGENTA;cTD妈妈金融财经网财经门户

TJ111:=ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5);cTD妈妈金融财经网财经门户

立桩量3:=FILTER(TJ111,3);cTD妈妈金融财经网财经门户

TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE>REF(LOW,3),1,0)));cTD妈妈金融财经网财经门户

成立:=TJ3=1;cTD妈妈金融财经网财经门户

条件成立:=FILTER(成立,5);cTD妈妈金融财经网财经门户

DRAWTEXT(条件成立 AND 下跌<> VAR6,L*0.97,'☆成立');cTD妈妈金融财经网财经门户

LC:=REF(CLOSE,1);cTD妈妈金融财经网财经门户

RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);cTD妈妈金融财经网财经门户

FF:=EMA(CLOSE,3);cTD妈妈金融财经网财经门户

MA15:=EMA(CLOSE,21);cTD妈妈金融财经网财经门户

DRAWTEXT(CROSS(FF,MA15),BBF,'底背离'),COLORA6E500;cTD妈妈金融财经网财经门户

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;cTD妈妈金融财经网财经门户

X1:=(C+L+H)/3;cTD妈妈金融财经网财经门户

BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;cTD妈妈金融财经网财经门户

4. 通达信5分钟预警公式?

通达信5分钟预警公式:cTD妈妈金融财经网财经门户

C/REF(C,1)-1)*100>3;cTD妈妈金融财经网财经门户