三線開花副圖源碼:
n:=20; C0:=(H+L+C)/3; a1:=HHV(C0,n);a2:=LLV(C0,n);a3:=a1-a2; a4:=EMA((C0-a2)/a3,2)*100; b1:=HHV(C0,4*n);b2:=LLV(C0,4*n);b3:=b1-b2; b4:=EMA((C0-b2)/b3,2)*100; C1:=HHV(C0,16*n);C2:=LLV(C0,16*n);C3:=C1-C2; C4:=EMA((C0-C2)/C3,2)*100; 短期相對(duì)價(jià)位:a4,color66dddd,linethick2; 中期相對(duì)價(jià)位:b4; 長(zhǎng)期相對(duì)價(jià)位:C4,color6600ff,linethick2; 天線5,linethick2,coloreeee33,POINTDOT; 地線:5,linethick2,color33ee33,POINTDOT; 中線:50,linethick2,coloreeeeee,POINTDOT; 長(zhǎng)期頭部:IF((c4>(90)),20,0); 中期頭部:IF((b4>(90)),15,0); 短期頭部:IF((a4>(90)),6,0); |