{主圖分時(shí)指標(biāo)源碼}--- 需要直接導(dǎo)入指標(biāo)文件--指標(biāo)tn6 ZBGSSHJ1:=MA(CLOSE,34); ZBGSSHJ2:=ZBGSSHJ1/REF(ZBGSSHJ1,1)*MA(CLOSE,5); ZBGSSHJ3:=IF(CLOSE>LOW,CLOSE,(CLOSE+HIGH+OPEN)/3); ZBGSSHJ4:=EMA(ZBGSSHJ3,4); ZBGSSHJ5:=EMA(ZBGSSHJ3,7); ZBGSSHJ6:=EMA(ZBGSSHJ3,28); ZBGSSHJ7:=EMA(ZBGSSHJ3,56); ZBGSSHJ8:=EMA(ZBGSSHJ3,112); ZBGSSHJ9:=EMA(ZBGSSHJ3,224); ZBGSSHJ10:=EMA(ZBGSSHJ3,448); ZBGSSHJ11:=EMA(ZBGSSHJ3,896); ZBGSSHJ12:=EMA(ZBGSSHJ3,1792); ZBGSSHJ13:=EMA(ZBGSSHJ3,3594); B:(ZBGSSHJ4+ZBGSSHJ5+ZBGSSHJ6+ZBGSSHJ7+ZBGSSHJ8)/5; B1:(ZBGSSHJ9+ZBGSSHJ10+ZBGSSHJ11+ZBGSSHJ12+ZBGSSHJ13)/5,COLOR00FFE9; B11:(ZBGSSHJ9+ZBGSSHJ10+ZBGSSHJ11+ZBGSSHJ12+ZBGSSHJ13)/5,COLOR00CDE9,LINETHICK2; B12:(ZBGSSHJ9+ZBGSSHJ10+ZBGSSHJ11+ZBGSSHJ12+ZBGSSHJ13)/5,COLOR0082F8,LINETHICK3; DRAWICON(CROSS(B,B1),B*1.002,9); DRAWTEXT(CROSS(B,B1),B*1.006,'漲'),COLOR002CF8; DRAWICON(CROSS(B1,B),B*1.002,12); DRAWTEXT(CROSS(B1,B),B*1.006,'跌'),COLOR00FF00; IF(B<MA(B,27),B,DRAWNULL),COLORFF2190,LINETHICK2; IF(B<MA(B,27),B,DRAWNULL),COLORFF5C90; IF(B>MA(B,27),B,DRAWNULL),COLOR3522FF,LINETHICK2; IF(B>MA(B,27),B,DRAWNULL),COLOR7422FF; 跌2:REF(CLOSE,1)/1.02,NODRAW; 跌3:REF(CLOSE,1)/1.03,NODRAW; 跌5:REF(CLOSE,1)/1.05,NODRAW; |
|