通达信对应大盘K线精简版公式
创业:=INBLOCK('创业板');
中小:=INBLOCK('中小企业');
上证:=INBLOCK('上证A股');
深证:=INBLOCK('深证A股');
A股:=IF(中小 OR 创业 OR 上证 OR 深证,1,0);
高:IF(A股,INDEXH,DRAWNULL),NODRAW;
开:IF(A股,INDEXO,DRAWNULL),NODRAW;
低:IF(A股,INDEXL,DRAWNULL),NODRAW;
收:IF(A股,INDEXC,DRAWNULL),NODRAW;
DRAWKLINE(高,开,低,收);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,DYBLOCK);
|