主图涨停日标注,以下源码叠加至主图公式
TJ:=C>REF(C,1)*1.095 AND C=H;
T:=BARSLAST(TJ);
A1:STRCAT(STRCAT(STRCAT(STRCAT(STRCAT('涨停日期: ',CON2STR(REF(YEAR,T),0)),'/'),CON2STR(REF(MONTH,T),0)),'/'),CON2STR(REF(DAY,T),0));
A:=STRCAT('涨停价格: ',CON2STR(REF(C,T),2));
DRAWTEXT_FIX(TJ,0.005,0.05,0,A1),COLORYELLOW;
DRAWTEXT_FIX(TJ,0.005,0.18,0,A),COLORYELLOW;
720366673.jpg
|