均价:(O+H+L+C)/4,NODRAW;
STICKLINE(ISLASTBAR,(均价),(均价),50,0);
DRAWTEXT(ISLASTBAR,均价,'均价 ');
价差:=(均价-L);
次日支撑价:(C-价差),NODRAW;
STICKLINE(ISLASTBAR,(次日支撑价),(次日支撑价),50,0);
DRAWTEXT(ISLASTBAR,次日支撑价,'次日支撑价 ');
次日阻力价:(C+价差),NODRAW,COLORLIMAGENTA;
STICKLINE(ISLASTBAR,(次日阻力价),(次日阻力价),50,0),COLORLIMAGENTA;
DRAWTEXT(ISLASTBAR,次日阻力价,'次日阻力价 ');
{ 爱约股_通达信股票指标公式}
现价:(次日阻力价+次日支撑价)/2,NODRAW,COLORGREEN;
STICKLINE(ISLASTBAR,(现价),(现价),50,0),COLORGREEN;
均线5:EMA(C,5),COLORYELLOW,LINETHICK2;
升5:IF(均线5>REF(均线5,1),均线5,DRAWNULL),COLORRED,LINETHICK2;
降5:IF(均线5<REF(均线5,1),均线5,DRAWNULL),COLORGREEN,LINETHICK2;