通达信年涨幅主图及选股指标公式

2023-11-13 20:00发布

NA:=BARSLAST(YEAR!=REF(YEAR,1));NQT:=BACKSET(NA=0,2);NT:=BARSLAST(OSS(NQT=1,0.5));NC:=REF(REF(C,NT),1);年:(C-NC)/NC*100 NODRAW;年涨天:SUM(年涨幅>0,NA+1)NODRAW;年跌天:SUM(年涨幅<0,NA+1)NODRAW;年平天:SUM(年涨幅=0,NA+1)NODRAW;平盘距今:BARSLAST(年涨幅=0)NODRAW;今年交易日:CONST(NA)+1 NODRAW;平盘日期:REF(DATE,平盘距今)-1000000 NODRAW;STICKLINE(平盘距今=0,C,O,2,0),COLORYELLOW;DRAWLINE(CURRBARSCOUNT=CONST(平盘距今)+1,H,ISLASTBAR,REF(H,平盘距今),0),COLORYELLOW;{公式:NA:=BARSLAST(YEAR!=REF(YEAR,1));NQT:=BACKSET(NA=0,2);NT:=BARSLAST(CROSS(NQT=1,0.5));NC:=
 解锁全文需 1  财富值,免费注册即送20财富值!