在线检测未来函数

通达信昨日高低主图指标公式

来源:Internet,编辑:股旁网,2013-01-06

SST1:=DATE>REF(DATE,1);
SST2:=BARSLAST(SST1)+1;
SST3:=REF(IF(SST2=1,1,SST2),SST2);
SST4:=CONST(REF(HHV(H,SST3),SST2));
SST5:=CONST(REF(LLV(L,SST3),SST2));
SST6:=MA(AMO,SST3)/MA(vol,SST3)/100;
SST7:=REF(MA((H+O+L+C)/4,SST3),SST2);
SST8:=IF(CAPITAL>0,REF(SST6,SST2),SST7);
昨高:IF(CURRBARSCOUNT<=CONST(SST3+SST2),SST4,DRAWNULL),COLOR0000FF;
昨低:IF(CURRBARSCOUNT<=CONST(SST3+SST2),SST5,DRAWNULL),COLOR37FF37;
昨均:IF(CURRBARSCOUNT<=CONST(SST3+SST2),CONST(SST8),DRAWNULL),COLOR37FFFF;
DRAWTEXT(ISLASTBAR,昨高-0.001,' 昨高'),COLORRED;
DRAWTEXT(ISLASTBAR,昨低+0.003,' 昨低'),COLORGREEN;
DRAWTEXT(ISLASTBAR,昨均,' 昨均'),COLORYELLOW;

通达信昨日高低主图指标公式

相关文章