伊人国产在线视频,亚洲欧美日本国产一区二区三区,日韩乱视频,精品成人一区二区,a在线亚洲男人的天堂试看,国产成人精品系列在线观看,免费精品精品国产欧美在线

【通達信】背離對比指標(biāo)公式

2016.02.07 19:20

N:=21;
WR1:=((2)*(C)+H+L)/(4);WR2:=LLV(L,34);WR3:=HHV(H,34);
BW:=(WR1-WR2)/(WR3-WR2);B1:=EMA(BW,8);
線性1:=EMA(B1,5)*100;線性2:=IF(B1>EMA(B1,5),B1*1.1,B1*0.9)*100;
{長J}RSV1:=(BW-LLV(BW,27))/(HHV(BW,27)-LLV(BW,27))*100;
K1:=SMA(RSV1,5,1);D1:=SMA(K1,5,1);行:=3*K1-2*D1;
{短J}RSV2:=(BW-LLV(BW,9))/(HHV(BW,9)-LLV(BW,9))*100;
K2:=SMA(RSV2,3,1);D2:=SMA(K2,3,1);短:=EMA(3*K2-2*D2,5);
短勢:=IF(PERIOD>=4,短,行),COLOR8E0000,LINETHICK3;
分:=CONST(LLV(L,90));百:=CONST(HHV(H,90))-分;
CC比:=(C-分)/百;HH比:=(H-分)/百;
LL比:=(L-分)/百;OO比:=(O-分)/百;
點:=CONST(LLV(短勢,90)); 基:=CONST(HHV(短勢,90))-點;
CX:=CC比*基+點;HX:=HH比*基+點;LX:=LL比*基+點;OX:=OO比*基+點;
部低點預(yù)選A:=BACKSET(LLV(線性1,5) 部高點預(yù)選A:=BACKSET(HHV(線性1,5)>REF(HHV(線性1,4),1),4);
線高天:=BARSLAST(部高點預(yù)選A=1)+1;
線高天AA:=HHV(DRAWLINE(線高天=1,線性1,REF(線高天,1)=1,REF(線性1,1),1),2),COLOR00FFFF;
線低天:=BARSLAST(部低點預(yù)選A=1)+1;
線低天AA:=HHV(DRAWLINE(線低天=1,線性1,REF(線低天,1)=1,REF(線性1,1),1),2),COLORFF0000;
DRAWBAND(IF(EMA(線高天AA,3)>線性1,EMA(線高天AA,3),線性1),RGB(0,20,35),線性1,RGB(128,0,128));
局部低點預(yù)選:=BACKSET(LLV(短勢,5) 局部高點預(yù)選:=BACKSET(HHV(短勢,5)>REF(HHV(短勢,4),1),4);
高天:=BARSLAST(局部高點預(yù)選=1)+1;
高天AA:=HHV(DRAWLINE(高天=1,短勢,REF(高天,1)=1,REF(短勢,1),1),2),COLOR00FFFF;
DRAWBAND(MA(高天AA,2),RGB(0,124,224),短勢,RGB(255,196,9));
低天:=BARSLAST(局部低點預(yù)選=1)+1;
低天AA:=HHV(DRAWLINE(低天=1,短勢,REF(低天,1)=1,REF(短勢,1),1),2),COLORFF0000;
價低點預(yù)選A:=BACKSET(LLV(LX,5) 價高點預(yù)選A:=BACKSET(HHV(HX,5)>REF(HHV(HX,4),1),4);
價高:=BARSLAST(價高點預(yù)選A=1)+1;
價高AA:=HHV(DRAWLINE(價高=1,HX,REF(價高,1)=1,REF(HX,1),1),2),COLOR0099FF;
價低:=BARSLAST(價低點預(yù)選A=1)+1;
價低AA:=HHV(DRAWLINE(價低=1,LX,REF(價低,1)=1,REF(LX,1),1),2),COLORFFF000;
尚勢:=IF(短勢>低天AA,短勢,DRAWNULL)CIRCLEDOT,COLOR0000FF,LINETHICK2;
高離:=IF((短勢>=高天AA&&價高AA=REF(價高AA,1)) OR (短勢<高天AA&&價高AA>=REF(價高AA,1)),短勢,DRAWNULL)CIRCLEDOT,COLOR005500,LINETHICK2;
DRAWBAND(尚勢,RGB(255,9,9),尚勢*0.9,RGB(255,9,9));
DRAWBAND(高離,RGB(2,96,6),高離*1.1,RGB(2,96,6));
DRAWBAND(IF(EMA(線高天AA,3)>線性1,線性1,EMA(線高天AA,3)),RGB(0,204,35),線性1,RGB(128,0,128));
趨勢線:=3*SMA((C-LLV(L,14))/(HHV(H,14)-LLV(L,14))*100,5,1)
-2*SMA(SMA((C-LLV(L,14))/(HHV(H,14)-LLV(L,14))*100,5,1),3,1),COLOR00FFFF,LINETHICK2;
DRAWBAND(趨勢線,RGB(254,254,254),趨勢線*0.98,RGB(254,254,254));
DRAWICON(CROSS(趨勢線,高天AA),高天AA,1);
DRAWICON(CROSS(低天AA,趨勢線),低天AA,2);{N 1 99 21}
DRAWTEXT(價高AA=LLV(LLV(價高AA,N),2)&&低天AA>LLV(LLV(低天AA,N),2),LLV(低天AA,5),’背’),COLOR000000;
DRAWTEXT(價低AA=HHV(HHV(價低AA,N),2)&&高天AA GJ:=MAX(C,O);L4:=LLV(GJ,4);
JL:=(HHV(短勢,55)-LLV(短勢,55))/5;
GT:=短勢>REF(短勢,1) AND REF(短勢,1) AS1:=BARSLAST(REF(GT,1));
底背離:=REF(L4,AS1+1)>CLOSE AND 短勢>REF(短勢,AS1+1) AND GT;
底背:DRAWLINE(AS1=0,短勢,底背離,REF(短勢,AS1),0),COLORFF00FF,LINETHICK3;
STICKLINE(底背離,底背,短勢,0.1,0),COLORFF00FF;
DRAWTEXT(底背離,REF(底背,1),’ 底背離’),COLORFF00FF;
H4:=HHV(GJ,4);
GT2:=短勢REF(短勢,2);
AS2:=BARSLAST(REF(GT2,1));
頂背離:= REF(H4,AS2+1)

頂背:DRAWLINE(AS2=0,短勢,頂背離,REF(短勢,AS2),0),COLORGREEN,LINETHICK2;
STICKLINE(頂背離,短勢,頂背,0.1,0),COLORGREEN;
DRAWTEXT(頂背離,REF(頂背,1),’ 頂背離’),COLORGREEN;
當(dāng)下:CONST(短勢),COLOR8E0000;

 

0 0 0

數(shù)字時代的手工藝人

我要投稿

申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責(zé),投資決策請建立在獨立思考之上。

< more >

ABCDEFGHIJKLMNOPQRSTUVWXYZ0-9
暫無相關(guān)概念股
暫無相關(guān)概念股
go top