通達(dá)信〖大小波峰〗副圖指標(biāo) 紅綠箭頭做頂?shù)?趨勢線高拋低吸 源碼分享 G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH; QWB1:=6;QWB2:=4;QWB3:=13; QWB4:=(3*G1+G2+G3+G4)/6; QWB5:=WMA(VOL,QWB3); QWB6:=WMA(AMOUNT,QWB3); QWB7:=QWB6/QWB5/100; QWB8:=(QWB4-QWB7)/QWB7*100; 小底:QWB8<(-6),NODRAW,COLORWHITE; 中底:QWB8<(-10),NODRAW,COLORYELLOW; 大底:QWB8<(-14),NODRAW,COLORCYAN; 絕底:QWB8<(-18),NODRAW,COLORRED; STICKLINE(QWB8<0-18,30,40,0.51,0),COLORRED; STICKLINE(QWB8<0-14,20,30,0.51,0),COLORCYAN; STICKLINE(QWB8<0-10,10,20,0.51,0),COLORYELLOW; STICKLINE(QWB8<0-6,0,10,0.51,0),COLORWHITE; 高拋:80,DOTLINE,COLORGREEN; 低吸:20,DOTLINE,COLORCYAN; QWB9:=LLV(G2,QWB1); QWB10:=HHV(G4,QWB1); QWB11:=WMA((QWB4-QWB9)/(QWB10-QWB9)*100,QWB2); 走勢線:WMA(0.667*REF(QWB11,1)+0.333*QWB11,2),DOTLINE,COLORYELLOW; QWB12:=REF(QWB11,1)>80 OR QWB11>80; QWB13:=REF(QWB11,1)<30 OR QWB11<30; DRAWICON(CROSS(走勢線,QWB11) AND QWB12,50,2); DRAWICON(CROSS(QWB11,走勢線) AND QWB13,50,1); 趨勢線:QWB11,COLORMAGENTA; IF(QWB11>=REF(QWB11,1),QWB11,DRAWNULL),COLORRED,LINETHICK2; (好公式網(wǎng)www.goodgongshi.com提供支持) |
|