黄金分割线 牛马线 通达信主图指标 贴图 源码 无未来
黄金分割线 牛马线 通达信主图指标 贴图 源码 无未来
{黄金分割}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;
马线:MA(牛线,6),COLORGREEN;
MAA5:MA(C,5),COLORFF00FF,LINETHICK2;
A1:=C-REF(C,1);{WWW.GPXIAZAI.COM}
A2:=100*EMA(EMA(A1,6),6)/EMA(EMA(ABS(A1),6),6);
买:=LLV(A2,2)=LLV(A2,7) AND COUNT(A2<0,2) AND CROSS(A2,MA(A2,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
日:=150;
昨前:=3;
高:REF(HHV(H,日),昨前),COLOR00B2FF;
低:REF(LLV(L,日),昨前),COLORBLUE;
H1:高-(高-低)*0.191,COLORRED;
H2:高-(高-低)*0.382,COLORGREEN;
H3:高-(高-低)*0.5,COLORWHITE;
H4:高-(高-低)*0.618,COLORMAGENTA;
H5:高-(高-低)*0.809,COLORYELLOW;
顶:=REFDATE(高,DATE),COLORRED;
底:=REFDATE(低,DATE),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,高,'高'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,H1,'【809】'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=1,H2,'【618】'),COLORGRAY;
DRAWTEXT(CURRBARSCOUNT=1,H3,'【50】'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,H4,'【382】'),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=1,H5,'【191】'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,低,'低'),COLORGREEN;