首页 > 原创>正文

短线操盘主图指标源码(cci指标源码公式?)

中亿财经网 gengxing 2023-07-30 19:36:14

1. cci指标源码公式?

CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));5HD中亿财经网财经门户

差值1:=ABS(REF(CCI1,1)-CCI1);5HD中亿财经网财经门户

CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));5HD中亿财经网财经门户

差值2:=ABS(REF(CCI2,1)-CCI2);5HD中亿财经网财经门户

CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));5HD中亿财经网财经门户

差值3:=ABS(REF(CCI3,1)-CCI3);5HD中亿财经网财经门户

CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));5HD中亿财经网财经门户

差值4:=ABS(REF(CCI4,1)-CCI4);5HD中亿财经网财经门户

CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));5HD中亿财经网财经门户

差值5:=ABS(REF(CCI5,1)-CCI5);5HD中亿财经网财经门户

CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;5HD中亿财经网财经门户

AAA:=(3*C+H+L+O)/6;5HD中亿财经网财经门户

VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)5HD中亿财经网财经门户

+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;5HD中亿财经网财经门户

VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;5HD中亿财经网财经门户

VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;5HD中亿财经网财经门户

VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;5HD中亿财经网财经门户

VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;5HD中亿财经网财经门户

VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;5HD中亿财经网财经门户

短线:VAR1,COLORWHITE;5HD中亿财经网财经门户

中线:VAR6,COLORYELLOW;5HD中亿财经网财经门户

下跌:IF(VAR1=VAR6,VAR6, 0),COLORGREEN,LINETHICK0;5HD中亿财经网财经门户

PARTLINE(VAR6,VAR1=VAR6),COLORGREEN;5HD中亿财经网财经门户

TJ1:= CCI1>差值4;5HD中亿财经网财经门户

立桩量:=FILTER(TJ1,0){,NODRAW};5HD中亿财经网财经门户

TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);5HD中亿财经网财经门户

{STICKLINE(立桩量 <>1,REF(HIGH,BARSLAST(立桩量)),5HD中亿财经网财经门户

REF(HIGH,BARSLAST(立桩量)),1,1),COLORCYAN;}5HD中亿财经网财经门户

成立1:=TJ2=1;5HD中亿财经网财经门户

条件成立1:=FILTER(成立1,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立1, REF(HIGH,BARSLAST(立桩量)),'看跌'),COLORBLUE;5HD中亿财经网财经门户

TJ11:= CCI1<-差值4 ;5HD中亿财经网财经门户

立桩量2:=FILTER(TJ11,0){,NODRAW};5HD中亿财经网财经门户

TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,0);5HD中亿财经网财经门户

突破2:=TJ22=1;5HD中亿财经网财经门户

{STICKLINE(CLOSE AND (下跌<> VAR6),REF(LOW,BARSLAST(立桩量2)),5HD中亿财经网财经门户

REF(LOW,BARSLAST(立桩量2)),1,1),COLORYELLOW;}5HD中亿财经网财经门户

TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);5HD中亿财经网财经门户

成立2:=TJ=1;5HD中亿财经网财经门户

条件成立2:=FILTER(成立2,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立2,REF(LOW,BARSLAST(立桩量2)),'看涨'),COLORMAGENTA;5HD中亿财经网财经门户

TJ111:=ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5);5HD中亿财经网财经门户

立桩量3:=FILTER(TJ111,3);5HD中亿财经网财经门户

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)));5HD中亿财经网财经门户

成立:=TJ3=1;5HD中亿财经网财经门户

条件成立:=FILTER(成立,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立 AND 下跌<> VAR6,L*0.97,'☆成立');5HD中亿财经网财经门户

LC:=REF(CLOSE,1);5HD中亿财经网财经门户

RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);5HD中亿财经网财经门户

FF:=EMA(CLOSE,3);5HD中亿财经网财经门户

MA15:=EMA(CLOSE,21);5HD中亿财经网财经门户

DRAWTEXT(CROSS(FF,MA15),BBF,'底背离'),COLORA6E500;5HD中亿财经网财经门户

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;5HD中亿财经网财经门户

X1:=(C+L+H)/3;5HD中亿财经网财经门户

BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;5HD中亿财经网财经门户

2. 股票分时线macd参数怎样设置为佳?

股票分时线MACD参数如下设置最佳:5HD中亿财经网财经门户

SHORT=11;5HD中亿财经网财经门户

LONG=26;5HD中亿财经网财经门户

M=5;5HD中亿财经网财经门户

具体公式源码如下5HD中亿财经网财经门户

//-------------------------------------------------------------------------------------------MACD5HD中亿财经网财经门户

DIFF: EMA(NEW, SHORT) - EMA(NEW, LONG);5HD中亿财经网财经门户

DEA : EMA(DIFF, M);5HD中亿财经网财经门户

MACDFS: 2*(DIFF-DEA);5HD中亿财经网财经门户

M1=EMA(CLOSE,11);5HD中亿财经网财经门户

M2=EMA(CLOSE,26);5HD中亿财经网财经门户

轴:(M1-M1),colorred;5HD中亿财经网财经门户

MACD金叉=CROSS(DIFF,DEA);5HD中亿财经网财经门户

MACD死叉=CROSS(DEA,DIFF);5HD中亿财经网财经门户

DRAWICON(MACD金叉, DEA, 'BUY');5HD中亿财经网财经门户

DRAWICON(MACD死叉, DEA, 'SELL');5HD中亿财经网财经门户

STICKLINE(MACDFS>=0,0,MACDFS,1,0),colorred;5HD中亿财经网财经门户

STICKLINE(MACDFS< 0,MACDFS,0,1,0),colorgreen;5HD中亿财经网财经门户

3. cci指标源码公式?

CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));5HD中亿财经网财经门户

差值1:=ABS(REF(CCI1,1)-CCI1);5HD中亿财经网财经门户

CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));5HD中亿财经网财经门户

差值2:=ABS(REF(CCI2,1)-CCI2);5HD中亿财经网财经门户

CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));5HD中亿财经网财经门户

差值3:=ABS(REF(CCI3,1)-CCI3);5HD中亿财经网财经门户

CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));5HD中亿财经网财经门户

差值4:=ABS(REF(CCI4,1)-CCI4);5HD中亿财经网财经门户

CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));5HD中亿财经网财经门户

差值5:=ABS(REF(CCI5,1)-CCI5);5HD中亿财经网财经门户

CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;5HD中亿财经网财经门户

AAA:=(3*C+H+L+O)/6;5HD中亿财经网财经门户

VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)5HD中亿财经网财经门户

+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;5HD中亿财经网财经门户

VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;5HD中亿财经网财经门户

VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;5HD中亿财经网财经门户

VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;5HD中亿财经网财经门户

VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;5HD中亿财经网财经门户

VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;5HD中亿财经网财经门户

短线:VAR1,COLORWHITE;5HD中亿财经网财经门户

中线:VAR6,COLORYELLOW;5HD中亿财经网财经门户

下跌:IF(VAR1=VAR6,VAR6, 0),COLORGREEN,LINETHICK0;5HD中亿财经网财经门户

PARTLINE(VAR6,VAR1=VAR6),COLORGREEN;5HD中亿财经网财经门户

TJ1:= CCI1>差值4;5HD中亿财经网财经门户

立桩量:=FILTER(TJ1,0){,NODRAW};5HD中亿财经网财经门户

TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);5HD中亿财经网财经门户

{STICKLINE(立桩量 <>1,REF(HIGH,BARSLAST(立桩量)),5HD中亿财经网财经门户

REF(HIGH,BARSLAST(立桩量)),1,1),COLORCYAN;}5HD中亿财经网财经门户

成立1:=TJ2=1;5HD中亿财经网财经门户

条件成立1:=FILTER(成立1,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立1, REF(HIGH,BARSLAST(立桩量)),'看跌'),COLORBLUE;5HD中亿财经网财经门户

TJ11:= CCI1<-差值4 ;5HD中亿财经网财经门户

立桩量2:=FILTER(TJ11,0){,NODRAW};5HD中亿财经网财经门户

TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,0);5HD中亿财经网财经门户

突破2:=TJ22=1;5HD中亿财经网财经门户

{STICKLINE(CLOSE AND (下跌<> VAR6),REF(LOW,BARSLAST(立桩量2)),5HD中亿财经网财经门户

REF(LOW,BARSLAST(立桩量2)),1,1),COLORYELLOW;}5HD中亿财经网财经门户

TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);5HD中亿财经网财经门户

成立2:=TJ=1;5HD中亿财经网财经门户

条件成立2:=FILTER(成立2,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立2,REF(LOW,BARSLAST(立桩量2)),'看涨'),COLORMAGENTA;5HD中亿财经网财经门户

TJ111:=ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5);5HD中亿财经网财经门户

立桩量3:=FILTER(TJ111,3);5HD中亿财经网财经门户

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)));5HD中亿财经网财经门户

成立:=TJ3=1;5HD中亿财经网财经门户

条件成立:=FILTER(成立,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立 AND 下跌<> VAR6,L*0.97,'☆成立');5HD中亿财经网财经门户

LC:=REF(CLOSE,1);5HD中亿财经网财经门户

RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);5HD中亿财经网财经门户

FF:=EMA(CLOSE,3);5HD中亿财经网财经门户

MA15:=EMA(CLOSE,21);5HD中亿财经网财经门户

DRAWTEXT(CROSS(FF,MA15),BBF,'底背离'),COLORA6E500;5HD中亿财经网财经门户

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;5HD中亿财经网财经门户

X1:=(C+L+H)/3;5HD中亿财经网财经门户

BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;5HD中亿财经网财经门户

4. 股票分时线macd参数怎样设置为佳?

股票分时线MACD参数如下设置最佳:5HD中亿财经网财经门户

SHORT=11;5HD中亿财经网财经门户

LONG=26;5HD中亿财经网财经门户

M=5;5HD中亿财经网财经门户

具体公式源码如下5HD中亿财经网财经门户

//-------------------------------------------------------------------------------------------MACD5HD中亿财经网财经门户

DIFF: EMA(NEW, SHORT) - EMA(NEW, LONG);5HD中亿财经网财经门户

DEA : EMA(DIFF, M);5HD中亿财经网财经门户

MACDFS: 2*(DIFF-DEA);5HD中亿财经网财经门户

M1=EMA(CLOSE,11);5HD中亿财经网财经门户

M2=EMA(CLOSE,26);5HD中亿财经网财经门户

轴:(M1-M1),colorred;5HD中亿财经网财经门户

MACD金叉=CROSS(DIFF,DEA);5HD中亿财经网财经门户

MACD死叉=CROSS(DEA,DIFF);5HD中亿财经网财经门户

DRAWICON(MACD金叉, DEA, 'BUY');5HD中亿财经网财经门户

DRAWICON(MACD死叉, DEA, 'SELL');5HD中亿财经网财经门户

STICKLINE(MACDFS>=0,0,MACDFS,1,0),colorred;5HD中亿财经网财经门户

STICKLINE(MACDFS< 0,MACDFS,0,1,0),colorgreen;5HD中亿财经网财经门户

5. 股票分时线macd参数怎样设置为佳?

股票分时线MACD参数如下设置最佳:5HD中亿财经网财经门户

SHORT=11;5HD中亿财经网财经门户

LONG=26;5HD中亿财经网财经门户

M=5;5HD中亿财经网财经门户

具体公式源码如下5HD中亿财经网财经门户

//-------------------------------------------------------------------------------------------MACD5HD中亿财经网财经门户

DIFF: EMA(NEW, SHORT) - EMA(NEW, LONG);5HD中亿财经网财经门户

DEA : EMA(DIFF, M);5HD中亿财经网财经门户

MACDFS: 2*(DIFF-DEA);5HD中亿财经网财经门户

M1=EMA(CLOSE,11);5HD中亿财经网财经门户

M2=EMA(CLOSE,26);5HD中亿财经网财经门户

轴:(M1-M1),colorred;5HD中亿财经网财经门户

MACD金叉=CROSS(DIFF,DEA);5HD中亿财经网财经门户

MACD死叉=CROSS(DEA,DIFF);5HD中亿财经网财经门户

DRAWICON(MACD金叉, DEA, 'BUY');5HD中亿财经网财经门户

DRAWICON(MACD死叉, DEA, 'SELL');5HD中亿财经网财经门户

STICKLINE(MACDFS>=0,0,MACDFS,1,0),colorred;5HD中亿财经网财经门户

STICKLINE(MACDFS< 0,MACDFS,0,1,0),colorgreen;5HD中亿财经网财经门户

6. cci指标源码公式?

CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));5HD中亿财经网财经门户

差值1:=ABS(REF(CCI1,1)-CCI1);5HD中亿财经网财经门户

CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));5HD中亿财经网财经门户

差值2:=ABS(REF(CCI2,1)-CCI2);5HD中亿财经网财经门户

CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));5HD中亿财经网财经门户

差值3:=ABS(REF(CCI3,1)-CCI3);5HD中亿财经网财经门户

CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));5HD中亿财经网财经门户

差值4:=ABS(REF(CCI4,1)-CCI4);5HD中亿财经网财经门户

CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));5HD中亿财经网财经门户

差值5:=ABS(REF(CCI5,1)-CCI5);5HD中亿财经网财经门户

CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;5HD中亿财经网财经门户

AAA:=(3*C+H+L+O)/6;5HD中亿财经网财经门户

VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)5HD中亿财经网财经门户

+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;5HD中亿财经网财经门户

VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;5HD中亿财经网财经门户

VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;5HD中亿财经网财经门户

VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;5HD中亿财经网财经门户

VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;5HD中亿财经网财经门户

VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;5HD中亿财经网财经门户

短线:VAR1,COLORWHITE;5HD中亿财经网财经门户

中线:VAR6,COLORYELLOW;5HD中亿财经网财经门户

下跌:IF(VAR1=VAR6,VAR6, 0),COLORGREEN,LINETHICK0;5HD中亿财经网财经门户

PARTLINE(VAR6,VAR1=VAR6),COLORGREEN;5HD中亿财经网财经门户

TJ1:= CCI1>差值4;5HD中亿财经网财经门户

立桩量:=FILTER(TJ1,0){,NODRAW};5HD中亿财经网财经门户

TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);5HD中亿财经网财经门户

{STICKLINE(立桩量 <>1,REF(HIGH,BARSLAST(立桩量)),5HD中亿财经网财经门户

REF(HIGH,BARSLAST(立桩量)),1,1),COLORCYAN;}5HD中亿财经网财经门户

成立1:=TJ2=1;5HD中亿财经网财经门户

条件成立1:=FILTER(成立1,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立1, REF(HIGH,BARSLAST(立桩量)),'看跌'),COLORBLUE;5HD中亿财经网财经门户

TJ11:= CCI1<-差值4 ;5HD中亿财经网财经门户

立桩量2:=FILTER(TJ11,0){,NODRAW};5HD中亿财经网财经门户

TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,0);5HD中亿财经网财经门户

突破2:=TJ22=1;5HD中亿财经网财经门户

{STICKLINE(CLOSE AND (下跌<> VAR6),REF(LOW,BARSLAST(立桩量2)),5HD中亿财经网财经门户

REF(LOW,BARSLAST(立桩量2)),1,1),COLORYELLOW;}5HD中亿财经网财经门户

TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);5HD中亿财经网财经门户

成立2:=TJ=1;5HD中亿财经网财经门户

条件成立2:=FILTER(成立2,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立2,REF(LOW,BARSLAST(立桩量2)),'看涨'),COLORMAGENTA;5HD中亿财经网财经门户

TJ111:=ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5);5HD中亿财经网财经门户

立桩量3:=FILTER(TJ111,3);5HD中亿财经网财经门户

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)));5HD中亿财经网财经门户

成立:=TJ3=1;5HD中亿财经网财经门户

条件成立:=FILTER(成立,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立 AND 下跌<> VAR6,L*0.97,'☆成立');5HD中亿财经网财经门户

LC:=REF(CLOSE,1);5HD中亿财经网财经门户

RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);5HD中亿财经网财经门户

FF:=EMA(CLOSE,3);5HD中亿财经网财经门户

MA15:=EMA(CLOSE,21);5HD中亿财经网财经门户

DRAWTEXT(CROSS(FF,MA15),BBF,'底背离'),COLORA6E500;5HD中亿财经网财经门户

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;5HD中亿财经网财经门户

X1:=(C+L+H)/3;5HD中亿财经网财经门户

BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;5HD中亿财经网财经门户

7. cci指标源码公式?

CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));5HD中亿财经网财经门户

差值1:=ABS(REF(CCI1,1)-CCI1);5HD中亿财经网财经门户

CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));5HD中亿财经网财经门户

差值2:=ABS(REF(CCI2,1)-CCI2);5HD中亿财经网财经门户

CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));5HD中亿财经网财经门户

差值3:=ABS(REF(CCI3,1)-CCI3);5HD中亿财经网财经门户

CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));5HD中亿财经网财经门户

差值4:=ABS(REF(CCI4,1)-CCI4);5HD中亿财经网财经门户

CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));5HD中亿财经网财经门户

差值5:=ABS(REF(CCI5,1)-CCI5);5HD中亿财经网财经门户

CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;5HD中亿财经网财经门户

AAA:=(3*C+H+L+O)/6;5HD中亿财经网财经门户

VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)5HD中亿财经网财经门户

+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;5HD中亿财经网财经门户

VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;5HD中亿财经网财经门户

VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;5HD中亿财经网财经门户

VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;5HD中亿财经网财经门户

VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;5HD中亿财经网财经门户

VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;5HD中亿财经网财经门户

短线:VAR1,COLORWHITE;5HD中亿财经网财经门户

中线:VAR6,COLORYELLOW;5HD中亿财经网财经门户

下跌:IF(VAR1=VAR6,VAR6, 0),COLORGREEN,LINETHICK0;5HD中亿财经网财经门户

PARTLINE(VAR6,VAR1=VAR6),COLORGREEN;5HD中亿财经网财经门户

TJ1:= CCI1>差值4;5HD中亿财经网财经门户

立桩量:=FILTER(TJ1,0){,NODRAW};5HD中亿财经网财经门户

TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);5HD中亿财经网财经门户

{STICKLINE(立桩量 <>1,REF(HIGH,BARSLAST(立桩量)),5HD中亿财经网财经门户

REF(HIGH,BARSLAST(立桩量)),1,1),COLORCYAN;}5HD中亿财经网财经门户

成立1:=TJ2=1;5HD中亿财经网财经门户

条件成立1:=FILTER(成立1,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立1, REF(HIGH,BARSLAST(立桩量)),'看跌'),COLORBLUE;5HD中亿财经网财经门户

TJ11:= CCI1<-差值4 ;5HD中亿财经网财经门户

立桩量2:=FILTER(TJ11,0){,NODRAW};5HD中亿财经网财经门户

TJ22:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(HIGH,1),1,0);5HD中亿财经网财经门户

突破2:=TJ22=1;5HD中亿财经网财经门户

{STICKLINE(CLOSE AND (下跌<> VAR6),REF(LOW,BARSLAST(立桩量2)),5HD中亿财经网财经门户

REF(LOW,BARSLAST(立桩量2)),1,1),COLORYELLOW;}5HD中亿财经网财经门户

TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE>REF(LOW,1),1,0);5HD中亿财经网财经门户

成立2:=TJ=1;5HD中亿财经网财经门户

条件成立2:=FILTER(成立2,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立2,REF(LOW,BARSLAST(立桩量2)),'看涨'),COLORMAGENTA;5HD中亿财经网财经门户

TJ111:=ABS(CCI1)>CCI AND ABS( 差值1)> ABS(差值5);5HD中亿财经网财经门户

立桩量3:=FILTER(TJ111,3);5HD中亿财经网财经门户

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)));5HD中亿财经网财经门户

成立:=TJ3=1;5HD中亿财经网财经门户

条件成立:=FILTER(成立,5);5HD中亿财经网财经门户

DRAWTEXT(条件成立 AND 下跌<> VAR6,L*0.97,'☆成立');5HD中亿财经网财经门户

LC:=REF(CLOSE,1);5HD中亿财经网财经门户

RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);5HD中亿财经网财经门户

FF:=EMA(CLOSE,3);5HD中亿财经网财经门户

MA15:=EMA(CLOSE,21);5HD中亿财经网财经门户

DRAWTEXT(CROSS(FF,MA15),BBF,'底背离'),COLORA6E500;5HD中亿财经网财经门户

DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;5HD中亿财经网财经门户

X1:=(C+L+H)/3;5HD中亿财经网财经门户

BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;5HD中亿财经网财经门户

8. 股票分时线macd参数怎样设置为佳?

股票分时线MACD参数如下设置最佳:5HD中亿财经网财经门户

SHORT=11;5HD中亿财经网财经门户

LONG=26;5HD中亿财经网财经门户

M=5;5HD中亿财经网财经门户

具体公式源码如下5HD中亿财经网财经门户

//-------------------------------------------------------------------------------------------MACD5HD中亿财经网财经门户

DIFF: EMA(NEW, SHORT) - EMA(NEW, LONG);5HD中亿财经网财经门户

DEA : EMA(DIFF, M);5HD中亿财经网财经门户

MACDFS: 2*(DIFF-DEA);5HD中亿财经网财经门户

M1=EMA(CLOSE,11);5HD中亿财经网财经门户

M2=EMA(CLOSE,26);5HD中亿财经网财经门户

轴:(M1-M1),colorred;5HD中亿财经网财经门户

MACD金叉=CROSS(DIFF,DEA);5HD中亿财经网财经门户

MACD死叉=CROSS(DEA,DIFF);5HD中亿财经网财经门户

DRAWICON(MACD金叉, DEA, 'BUY');5HD中亿财经网财经门户

DRAWICON(MACD死叉, DEA, 'SELL');5HD中亿财经网财经门户

STICKLINE(MACDFS>=0,0,MACDFS,1,0),colorred;5HD中亿财经网财经门户

STICKLINE(MACDFS< 0,MACDFS,0,1,0),colorgreen;5HD中亿财经网财经门户