黃金分割布林 (源碼,主圖,貼圖)
將黃金分割、周期和布林結(jié)合在一起,很好用,望大家喜歡,順便高抬小手,目前很窮。
黃金分割布林
M30:=MA(CLOSE,30);
壓力線:M30 + 2*STD(CLOSE,55),COLOR1010FF,LINETHICK1;
支撐線:M30 - 2*STD(CLOSE,55),COLOR1010FF,LINETHICK1;
BOLL:MA(CLOSE,10),COLORWHITE,LINETHICK2;
UPPER:BOLL+2*STD(CLOSE,10),COLORYELLOW,LINETHICK2;
LOWER:BOLL-2*STD(CLOSE,10),COLORLIMAGENTA,LINETHICK2;
HH:=HHV(H,200);
LL:=LLV(L,200);
上漲:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=LL)+1)),COLOR0000FF,NODRAW;
↑空間%:(C/REF(L,上漲)-1)*100,COLOR00FFFF,NODRAW;
最高%:(HH/REF(L,上漲)-1)*100,COLORFF00FF,NODRAW;
下跌:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=HH)+1)),COLOR00FF00,NODRAW;
↓空間%:(C/REF(H,下跌)-1)*100,COLOR888899,NODRAW;
最低%:(LL/REF(H,下跌)-1)*100,COLORFF0000,NODRAW;
天線:REFDATE(REF(H,下跌),DATE),POINTDOT,LINETHICK3,COLORYELLOW;
地線:REFDATE(REF(L,上漲),DATE),POINTDOT,LINETHICK3,COLOR00FF00;
中線:REFDATE((天線-地線)*0.5+地線,DATE),POINTDOT,LINETHICK3,COLOR00FF00;
STICKLINE(上漲=0,天線,地線,0,-1),COLORYELLOW;
STICKLINE(下跌=0,天線,地線,0,-1),COLORGREEN;
DRAWTEXT(下跌=0,地線*1.01,'-最低'),COLOR00FF00;
DRAWTEXT(上漲=0,天線*0.99,'-最高'),COLOR0000FF;
{2}
高:=天線;
低:=地線;
H1:=高-(高-低)*0.191;
H2:=高-(高-低)*0.382;
H3:=高-(高-低)*0.5;
H4:=高-(高-低)*0.618;
H5:=高-(高-低)*0.809;
DRAWTEXT(下跌=0,高,'高'),COLORGREEN;
DRAWTEXT(下跌=0,H1,'809'),COLORCYAN;
DRAWTEXT(下跌=0,H2,'618'),COLORGRAY;
DRAWTEXT(下跌=0,H3,'中'),COLORYELLOW;
DRAWTEXT(下跌=0,H4,'382'),COLORLIRED;
DRAWTEXT(下跌=0,H5,'191'),COLORMAGENTA;
DRAWTEXT(上漲=0,H1,'風(fēng)險'),COLORCYAN;
DRAWTEXT(上漲=0,H2,'高位'),COLORGRAY;
DRAWTEXT(上漲=0,H3,'中'),COLORYELLOW;
DRAWTEXT(上漲=0,H4,'低吸'),COLORLIRED;
DRAWTEXT(上漲=0 ,H5,'盤整'),COLORMAGENTA;
DRAWTEXT(上漲=0,低,'低'),COLORRED;
DRAWTEXT(上漲=5,H*1.02,'5'),COLOR00FFFF;
DRAWTEXT(上漲=8,H*1.02,'8'),COLOR00FFFF;
DRAWTEXT(上漲=13,H*1.02,'13'),COLOR00FFFF;
DRAWTEXT(上漲=21,H*1.02,'21'),COLOR00FFFF;
DRAWTEXT(上漲=34,H*1.02,'34'),COLOR00FFFF;
DRAWTEXT(上漲=55,H*1.02,'55'),COLOR00FFFF;
DRAWTEXT(上漲=89,H*1.02,'89'),COLOR00FFFF;
DRAWTEXT(上漲=144,H*1.02,'144'),COLOR00FFFF;
DRAWTEXT(上漲=180,H*1.02,'180'),COLOR00FFFF;
DRAWTEXT(上漲=250,H*1.02,'250'),COLOR00FFFF;
DRAWTEXT(下跌=5,L*0.98,'-5'),COLOR00FF00;
DRAWTEXT(下跌=8,L*0.98,'-8'),COLOR00FF00;
DRAWTEXT(下跌=13,L*0.98,'-13'),COLOR00FF00;
DRAWTEXT(下跌=21,L*0.98,'-21'),COLOR00FF00;
DRAWTEXT(下跌=34,L*0.98,'-34'),COLOR00FF00;
DRAWTEXT(下跌=55,L*0.98,'-55'),COLOR00FF00;
DRAWTEXT(下跌=89,L*0.98,'-89'),COLOR00FF00;
DRAWTEXT(下跌=144,L*0.98,'-144'),COLOR00FF00;
DRAWTEXT(下跌=180,L*0.98,'-180'),COLOR00FF00;
DRAWTEXT(下跌=250,L*0.98,'-250'),COLOR00FF00;