【通達(dá)信】大盤研判(底部、頂部)-指標(biāo)公式源碼 A:SUM(ADVANCE,10)/SUM(DECLINE,10),STICK; B:MA(ADR,6),; AA:MA(ADR,12); STICKLINE(A>REF(A,1),A,0,2,0),COLORMAGENTA; STICKLINE(A<REF(A,1),A,0,2,0),COLORGREEN; STICKLINE(A>1.8,1.8,A,2,0),COLORYELLOW; STICKLINE(A<0.6,0.6,A,2,0),COLORRED; 強(qiáng):IF(B>REF(B,1),B,DRAWNULL),COLORYELLOW,LINETHICK3; DRAWBAND(AA,RGB(0,0,255),B,RGB(255,51,51)); AAA:=EMA(ADVANCE/DECLINE,10); DRAWICON(AAA>REF(AAA,1)*3,0,1); BB:MA(ADR,3),COLORWHITE; 強(qiáng)1:IF(BB>REF(BB,1),BB,DRAWNULL),COLORRED,LINETHICK2; DRAWTEXT(A<0.6,A,'底部'),COLORRED; DRAWTEXT(A>1.8 AND(BB<REF(BB,1)),A,'頂部'),COLORGREEN |
|