通达信板块涨幅排序指标公式源码:
Q13:=BARSLAST(REF(YEAR=2013,1) AND YEAR=2014);
Q14:=BARSLAST(REF(YEAR=2014,1) AND YEAR=2015);
Q15:=BARSLAST(REF(YEAR=2015,1) AND YEAR=2016);
Q16:=BARSLAST(REF(YEAR=2016,1) AND YEAR=2017);
Q17:=BARSLAST(REF(YEAR=2017,1) AND YEAR=2018);
Q18:=BARSLAST(REF(YEAR=2018,1) AND YEAR=2019);
Q19:=BARSLAST(REF(YEAR=2019,1) AND YEAR=2020);
Q20:=BARSLAST(REF(YEAR=2020,1) AND YEAR=2021);
Q21:=BARSLAST(REF(YEAR=2021,1) AND YEAR=2022);
Q22:=BARSLAST(REF(YEAR=2022,1) AND YEAR=2023);
Q23:=BARSLAST(REF(YEAR=2023,1) AND YEAR=2024);
C24:=C;
C23:=REF(C,Q23+1);
C22:=REF(C,Q22+1);
C21:=REF(C,Q21+1);
C20:=REF(C,Q20+1);
C19:=REF(C,Q19+1);
C18:=REF(C,Q18+1);
C17:=REF(C,Q17+1);
C16:=REF(C,Q16+1);
C15:=REF(C,Q15+1);
C14:=REF(C,Q14+1);
C13:=REF(C,Q13+1);
{涨幅百分比}
C2014:(C14-C13)/C13*100,NODRAW;
C2015:(C15-C14)/C14*100,NODRAW;
C2016:(C16-C15)/C15*100,NODRAW;
C2017:(C17-C16)/C16*100,NODRAW;
C2018:(C18-C17)/C17*100,NODRAW;
C2019:(C19-C18)/C18*100,NODRAW;
C2020:(C20-C19)/C19*100,NODRAW;
C2021:(C21-C20)/C20*100,NODRAW;
C2022:(C22-C21)/C21*100,NODRAW;
C2023:(C23-C22)/C22*100,NODRAW;
C2024:(C24-C23)/C23*100,NODRAW;