通达信出色的波段副图指标公式 源码 N:=20;M:=40; VAR1:=((CLOSE - LLV(LOW,50))/(HHV(HIGH,50) - LLV(LOW,50)))*(100); VAR2:=REVERSE(VAR1); VAR3:=SMA(VAR1,6,1); K:=SMA(VAR3,4,1); D:=SMA(K,4,1); STICKLINE((K >= D),K,D,6,0),COLOR0000A8; STICKLINE((K >= D),K,D,5,0),COLOR0000C0; STICKLINE((K >= D),K,D,4,0),COLOR0000E0; STICKLINE((K >= D),K,D,3,0),COLOR0000F0; STICKLINE((K >= D),K,D,2,0),COLOR0000D0; STICKLINE((K >= D),K,D,1,0),COLOR8080FF; STICKLINE((K <= D),K,D,6,0),COLOR008800; STICKLINE((K <= D),K,D,5,0),COLOR009900; STICKLINE((K <= D),K,D,4,0),COLOR00AA00; STICKLINE((K <= D),K,D,3,0),COLOR00BB00; STICKLINE((K <= D),K,D,2,0),COLOR00CC00; STICKLINE((K <= D),K,D,1,0),COLOR00DD00; 顶:90; 底:10; 敢死队:= (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK; 主力:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,120)-0.0004,LINETHICK2,COLORMAGENTA; 散户:=EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,200),LINETHICK2,COLORGREEN; DRAWICON(CROSS(EXPMA(敢死队,120)-0.0004,EXPMA(敢死队,200)),45,11); DRAWTEXT(CROSS(EXPMA(敢死队,120)-0.0004,EXPMA(敢死队,200)),40,"敢死队"),COLORRED; |