通达信六彩条共振指标公式

通达信军团神剑主图指标公式

RC:=DYNAINFO(3);{前收盘价}

S2:=SMA(C,3,1);{收盘价的3日[1日权重]移动平均}

S6:=SMA(C,5,1);{收盘价的5日[1日权重]移动平均}

DK:=2*(S2-S6);

AA:=DK>0;

AAB:=DK<0;

AB1:=MA(CLOSE,20);

AB2:=(CLOSE>MA(CLOSE,5));

AB3:=(MA(CLOSE,5)>MA(CLOSE,10));

AB4:=(CLOSE>MA(CLOSE,10));

AB5:=(MA(CLOSE,5)>MA(CLOSE,20));

AB6:=(CLOSE>MA(CLOSE,20));

AB7:=REF(AB1,1);

AB8:=(AB1> AB7);

AVX:=(((((IF(AB2,10,(0 - 10)) + IF(AB3,10,(0 - 10))) + IF(AB4,10,(0 -10))) +

IF(AB5,10,(0 - 10))) + IF(AB6,10,(0 - 10))) + IF(AB7,10,(0 - 10)) + IF(AB8,10,(0 -10)))+40,COLORFF00FF;

BB:=AVX>=50;

BBB:= AVX<50;

ac:=CLOSE;

转强:=WMA(HIGH,5);

转弱:=WMA(LOW,5);

B:=CLOSE*0;

转折线:=IF(B=-1,MA(HIGH,4),MA(LOW,4)),COLORFFFF00,LINETHICK0;

DD:=C>转折线;

DDB:=C<转折线;

TP:=REF(EMA(C,14),1);

A1X:=(EMA(C,10)-TP)/TP*100;

JZ:=IF(A1X>=0,REF(EMA(C,10),BArslAst(crOSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1)),COLORFFFF00,LINETHICK2;

EE:=A1X>=0;

EEB:=A1X<0;

N1:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));

AMOV:=vol*(C+L+H)/3;

MN:=SUM(AMOV,N1)/SUM(VOL,N1),COLORFF0000,LINETHICK3;

FF:=C> MN;

FFB:=C<MN;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:=SMA(RSV,3,1),COLORRED,LINETHICK2;

D:=SMA(K,3,1),COLORFFFF00,LINETHICK2;

J:=3*K-2*D,COLORFF00FF,LINETHICK2;

STICKLINE(1,4,11,4,1),COLOR686868;

STICKLINE(K>=D,3,12,4,0),COLOR00FFFF;

STICKLINE(J>=REF(J,1),2,13,4,0),COLORBB00BB;

STICKLINE(J>=REF(J,1) AND K>=D,0,15,4,0),COLOR0000FF;

STICKLINE(AA AND BB AND DD AND FF,50,110,2,0),COLORBBBB00;

STICKLINE(AA AND BB AND DD AND EE AND FF,30,110,2,0),COLORRED;

STICKLINE(AA AND BB AND DD AND EE AND FF,30,110,0.5,0),COLOR00FFFF;

STICKLINE(EE,20,35,4,0),COLORCCCC00;

STICKLINE(EEB,23,32,3,1),COLOR686868;

STICKLINE(DD,40,55,4,0),COLORBB00CC;

STICKLINE(DDB,43,52,3,1),COLOR686868;

STICKLINE(BB,60,75,4,0),COLOR00FFFF;

STICKLINE(BBB,63,72,3,1),COLOR686868;

STICKLINE(AA,80,95,4,0),COLORFF00FF;

STICKLINE(AAB,83,92,3,1),COLOR686868;

STICKLINE(FF,100,115,4,0),COLOR00AA00;

STICKLINE(FFB,103,112,3,1),COLOR686868;

DRAWTEXT(CURRBARSCOUNT=18,27,'中线操盘--阶梯彩块'),COLOR00FFFF;

DRAWTEXT(CURRBARSCOUNT=10,47,'转折线'),COLOR00FFFF;

DRAWTEXT(CURRBARSCOUNT=10,67,'变异线'),COLOR0000FF;

DRAWTEXT(CURRBARSCOUNT=10,87,'收盘线'),COLOR00FFFF;

DRAWTEXT(CURRBARSCOUNT=10,107,'决策线'),COLOR00FFFF;

DRAWICON(CROSS(K,D),D,13);

DRAWICON(CROSS(D,K),D,14);

DRAWICON(CROSS(K,D) AND K<20,D,23);

DRAWICON(CROSS(K,D),7,34);

DRAWICON(CROSS(D,K),7,35);

DRAWICON(CROSS(K,D) AND K<20,0,23);

{www.zhibiaow.com 指标网_通达信股票指标公式}

DRAWTEXT(CURRBARSCOUNT=33,7,'【黄-kd金叉】【粉-J上行】【 红-J上行并KD金叉】'),COLORFFFFFF;

LC5:=REF(CLOSE,1);

rsi5:=SMA(MAX(CLOSE-LC5,0),6,1)/SMA(Abs(CLOSE-LC5),6,1)*100;

R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

A:=SMA(R,3,1);

BT:=SMA(A,3,1);

CCC:=(BT/2+40)*1.1;

DA:=SMA(CCC,3,1);

DRAWICON(CROSS(DA,RSI5),105,15);

DRAWICON(CROSS(80,RSI5),113,14);

LC:=REF(CLOSE,1);

RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

周15:=FILTER(CROSS(80,RSI1) AND RSI1<REF(RSI1,1),8);

DRAWICON(周15,125,35);

TYP:=(HIGH+LOW+CLOSE)/3;

cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));

CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);

CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);

X:=(CROSS(CCI修正1,CCI修正2) OR (CCI修正1>=CCI修正2)) AND CCI修正1>=-101 AND CCI修正1>=REF(CCI修正1,1) AND REF(CCI修正1,1)<-101 ;

RSVT:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

KT:=SMA(RSVT,3,1);

DT:=SMA(KT,3,1);

JT:=3*KT-2*DT;

K1:= EMA(EMA(EMA(KT,2),2),2);

D1:= EMA(EMA(EMA(DT,2),2),2);

J1:= EMA(EMA(EMA(JT,2),2),2);

Y:= J1>REF(J1,1) ;

预警:=X AND Y ;

DRAWICON(预警,0,13);

DRAWTEXT(预警,-3,'↖预警买'),COLORYELLOW;

DRAWTEXT_FIX(1,0.3,0,0,'【红十字球-kdj<20金叉】【红球〖金向上球〗-KDJ金叉】【兰球〖绿向下球〗-KDJ死叉】'),COLOR00FFFF;

通达信筹码表达线指标公式