趋势量能(副图指标 贴图 通达信大智慧通用源码)
80,DOTLINE,COLOREEEE00;
20,DOTLINE,COLOR32CD32;
N:=5; M:=21;
VARF:=3*SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1)-2*SMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1),3,1);
VARG:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
趋势:IF(VARF-VARG,VARF,VARF),COLORBB11AA,LINETHICK0;
底部:IF(VARG-VARF,VARG,VARF),COLORGRAY;
STICKLINE(VARF<10,4,1,10,1),COLOR8E236B;
STICKLINE(VARF>90,100,103,10,1),COLORCYAN;
STICKLINE(趋势> REF(趋势,1),趋势,REF(趋势,1),2,0),COLOR0000CC;
STICKLINE(趋势<=REF(趋势,1),趋势,REF(趋势,1),2,0),COLORFF7700;
趋势1:=EMA(VARF,8);
趋势均线:=MA(趋势1,7);
趋势天数:BARSLAST(VARF < 趋势1),COLORBLUE,LINETHICK0;