通達(dá)信雙均線系統(tǒng) (2010-01-10 20:42:49)轉(zhuǎn)載▼ 標(biāo)簽: 雜談 ZQ:=256; DZ:=ZQ/4; A1:=HHV(H,ZQ); A2:=LLV(L,ZQ); {雙均線M1 M2 變色設(shè)置及 交叉} M1:MA(C,DZ),COLORYELLOW; IF(M1>=REF(M1,2),M1,DRAWNULL),COLORMAGENTA,LINETHICK1; M2:MA(C,ZQ),COLORWHITE,LINETHICK2; IF(M2>=REF(M2,2),M2,DRAWNULL),COLORRED,LINETHICK2; DRAWICON( CROSS(M1,M2) ,M2,1),COLORRED; DRAWICON( CROSS(M2,M1) ,M1,2),COLORGREEN; {以下為動(dòng)態(tài)百分比} K4:=(0.382*HHV(HIGH,0)+0.618*LLV(LOW,0)); K50%:(0.5*A1+0.5*A2),COLORGREEN,LINETHICK2; K61%:(0.618*A1+0.382*A2),COLORLIBLUE; K38%:(0.382*A1+0.618*A2),COLORLIBLUE; {以下為乾坤線代碼,線上持股操盤,線下休息或輕倉(cāng)做短} {說(shuō)明:在5 15 30周期里,飛龍?jiān)谔靰 TJ:=DZ*1.25; TJCS:=IF(PERIOD=1,TJ*3,TJ/(PERIOD-1)); CS:=IF(PERIOD>=1 AND PERIOD<=3,TJCS,DRAWNULL); 乾坤線:=(MA(C,CS)+MA(C,CS*2)+MA(C,CS*4))/3; DRAWTEXT(CURRBARSCOUNT=13 ,乾坤線,'乾坤線'),COLORBROWN; 積極操盤:IF(乾坤線>REF(乾坤線,2),乾坤線,乾坤線), COLORRED, LINETHICK3; 持幣觀望:IF(乾坤線<REF(乾坤線,2),乾坤線,DRAWNULL), COLORYELLOW, LINETHICK3; |
|
來(lái)自: 昵稱464381 > 《指標(biāo)》