九毛八公式指标
{涨跌幅度} X:=BARSLAST(DISPSTATUS=1)+1; AH1:hhv(h,X),COLOR0077FF,DOTLINE,LINETHICK0; AL2:llv(l,X),COLORFF9900,DOTLINE,LINETHICK0; HLZ:(AH1+AL2)/2,COLOR00FFFF,DOTLINE,LINETHICK0; 下跌:LAST(AH1>H),PRECIS0 ,LINETHICK0; 上涨:LAST(Al2公式模块:
X:=BArslAST(SYSPARAM(2)=BARPOS)+1;
AH1:hhv(h,X),COLOR0077FF,LINEDOT,LINETHICK0; AL2:llv(l,X),COLORFF9900,LINEDOT,LINETHICK0; HLZ:(AH1+AL2)/2,COLOR00FFFF,LINEDOT,LINETHICK0; 下跌:BARSLAST(H>=AH1),PRECISION0 ,LINETHICK0; 上涨:BARSLAST(L<=Al2),PRECISION0 ,LINETHICK0; DRAWTEXT(BARSTATUS=2,AH1,'----【'+NUMTOSTR(AH1,2)+'元 跌:'+ NUMTOSTR(C/AH1*100-100,1)+'%.'+NUMTOSTR(下跌,0)+'天】---- '),COLORYELLOW,align2; DRAWTEXT(BARSTATUS=2,AL2,'----【'+NUMTOSTR(AL2,2)+'元 涨:'+ NUMTOSTR(C/AL2*100-100,1)+'%.'+NUMTOSTR(上涨,0)+'天】---- '),COLORYELLOW,align2;