【通達(dá)信】三通道主圖指標(biāo)公式
攻城獅 2016.03.29 15:37
N:=13;N1:=102;M:=7;N2:=20;TS:=7;
EMA30:EMA(C,30),LINETHICK4,POINTDOT,COLOR6F4343;
VAR2:=CLOSE*VOL;
VAR3:=EMA((EXPMA(VAR2,3)/EXPMA(VOL,3)+EXPMA(VAR2,6)/EXPMA(VOL,6)
+EXPMA(VAR2,12)/EXPMA(VOL,12)+EXPMA(VAR2,24)/EXPMA(VOL,24))/4,N);
SUP:1.06*VAR3,LINETHICK2,COLOR545454;
SDN:VAR3*0.94,LINETHICK2,COLOR545454;
VAR4:=EXPMA(CLOSE,9);
LUP:EXPMA(VAR4*1.14,5),LINETHICK1,COLORYELLOW;
LDN:EXPMA(VAR4*0.86,5),LINETHICK1,COLORYELLOW;
DRAWBAND(SUP,RGB(120,0,100),LUP,RGB(60,100,50));
DRAWBAND(SDN,RGB(120,0,100),LDN,RGB(60,100,50));
{極點(diǎn)H}
A1:=REF(C,TS)=HHV(C,2*TS+1); B1:=FILTER(A1,TS);
C1:=BACKSET(B1,TS+1); HD:=FILTER(C1,TS);
波峰: REF(C,BARSLAST(HD)),POINTDOT,LINETHICK4,COLOR990099;
{極點(diǎn)L}
AL1:=REF(L,TS)=LLV(L,2*TS+1); BL1:=FILTER(AL1,TS);
CL1:=BACKSET(BL1,TS+1); LD:=FILTER(CL1,TS);
波谷: REF(L,BARSLAST(LD)),POINTDOT,LINETHICK4,COLOR4A766A;
T1:=BARSLAST(HD)T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
STICKLINE(T1,波峰,波峰,40,0),COLOR990099;
STICKLINE(T2,波谷,波谷,40,0),COLOR4A766E;
STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR000033;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000066;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCC66FF;
STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR990000;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;
STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;
STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR555555;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;
AAX:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:AAX*N1/100,COLORWHITE;
通道2:AAX*(200-N1)/100,COLORWHITE;
{m.chiang1015.com 概念股網(wǎng)_最新股票指標(biāo)公式}
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道3:(1+M/100)*DD,COLOR007FFF;
通道4:(1-M/100)*DD,COLOR007FFF;
F:=100*(C-REF(C,1))/REF(C,1);
今小昨:=IF(C P1:=今小昨;
今小前:=IF(C P2:=今小前;
STICKLINE(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,OPEN,CLOSE,1.0,0),COLORFF1CAE;
STICKLINE(P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0,OPEN,CLOSE,1.2,0),COLORAAAAAA;
CC2:=REF(C,1);
漲停:=IF((C-CC2)*100/CC2>=(10-0.01*100/CC2),1,0);
STICKLINE(漲停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(漲停,H,L,0,0),COLORRED;
跌停:=IF((CC2-C)*100/CC2>=(10-0.01*100/CC2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
BOLL:=MA(CLOSE,N2);
UB:BOLL+2*STD(CLOSE,N2),LINETHICK2,COLOR8E2323;
LB:BOLL-2*STD(CLOSE,N2),LINETHICK2,COLOR8E2323;
雙穿通道:=REF(L,1)LB OR (L LB);
DRAWICON(雙穿通道 ,L*0.96,12);
DRAWTEXT( 雙穿通道 ,L*0.94,’雙穿通道隔日低買’),COLOR236B8E;
A0:=(L+H+C*2)/4;
A5:EMA(A0,5)COLORFF7F00,LINETHICK3;
A1A:=EMA(A0,11);
A1X:=(A5-REF(A5,1))/REF(A5,1)*100;
A2X:=(A1A-REF(A1A,1))/REF(A1A,1)*100;
買入持股:IF(A1X>=0,A5,DRAWNULL)COLORFF00FF,LINETHICK2;
賣出空倉(cāng):IF(A1X<0 AND A2X<0,A5,DRAWNULL)COLOR7FFF00,LINETHICK2;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。