以下是通达信精品黄金分割源码附图

趋势:MA(MA(CLOSE,3),3),COLOR00DD00;
持股:IF(C>趋势,趋势,DRAWNULL),COLORDD00DD;
N:=25;AA:=50;BB:=3;
高1:=REF(HHV(H,AA),BB);低1:=REF(LLV(L,AA),BB);
H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;L1:=低1+(高1-低1)*1.191;
L2:=低1+(高1-低1)*1.382;L3:=低1+(高1-低1)*1.5;
L4:=低1+(高1-低1)*1.618;L5:=低1+(高1-低1)*1.809;
STICKLINE(CURRBARSCOUNT=N,REFDATE(高1,DATE),REFDATE(高1,DATE),N*8,0),COLOR00DD00;
STICKLINE(CURRBARSCOUNT=N,REFDATE(H1,DATE),REFDATE(H1,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(H2,DATE),REFDATE(H2,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(H3,DATE),REFDATE(H3,DATE),N*8,0),COLOR009900;
STICKLINE(CURRBARSCOUNT=N,REFDATE(H4,DATE),REFDATE(H4,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(H5,DATE),REFDATE(H5,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(低1,DATE),REFDATE(低1,DATE),N*8,0),COLORDD00DD;
STICKLINE(CURRBARSCOUNT=N,REFDATE(L1,DATE),REFDATE(L1,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(L2,DATE),REFDATE(L2,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(L3,DATE),REFDATE(L3,DATE),N*8,0),COLOR009900;
STICKLINE(CURRBARSCOUNT=N,REFDATE(L4,DATE),REFDATE(L4,DATE),N*8,0),COLOR009999;
STICKLINE(CURRBARSCOUNT=N,REFDATE(L5,DATE),REFDATE(L5,DATE),N*8,0),COLORDD00DD;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。