SSTS:CONST(BARSCOUNT(CLOSE)),NODRAW;
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:=MA(CLOSE,20),LINETHICK1;
MA30:MA(CLOSE,30);
M30:IF(MA5>MA20,MA30,DRAWNULL),COLOR1157FF,LINETHICK2;
MA60:MA(CLOSE,60),COLORFF9D66,LINETHICK1;
M60:IF(MA60<C,MA60,DRAWNULL),COLOR1112FF,LINETHICK2;
MA120:MA(CLOSE,120);
MA250:=MA(CLOSE,250);
STICKLINE(MA5>MA10 AND MA10<MA20,MA5,MA10,3.2,0),COLOR1788FF;
DRAWICON(FILTER((ZIG(3,5)>REF(ZIG(3,5),1)),25) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1) ;
DRAWICON(FILTER((ZIG(3,5)<REF(ZIG(3,5),1)),25) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);
DRAWTEXT(COUNT(CROSS(MA5,MA10),21)>1 AND CROSS(MA5,MA10),L,'金山谷'),COLOR1788FF;
{ 爱约股_通达信股票指标公式}
DRAWTEXT_FIX(C>0,0.01,0.31,0,'所属行业:');
DRAWTEXT_FIX(C>0,0.01,0.24,0,'所属地域:');
DRAWTEXT_FIX(C>0,0.07,0.31,0,HYBLOCK);
DRAWTEXT_FIX(C>0,0.07,0.24,0,DYBLOCK);
DRAWTEXT_FIX(C>0,0.01,0.03,0,'上市天数:');
DRAWNUMBER_FIX(C>0,0.07,0.03,0,SSTS);
ZT:=(C+H)*0.5/REF(C,1)>1.09;
DT:=(C+L)*0.5/REF(C,1)<0.92;
STICKLINE(ZT,O,C,2.3,0),COLOR1279FA;
STICKLINE(DT,O,C,2.3,0),COLOR79FA22;
NUMBER:=COUNT(ZT,SSTS);
NDT:=COUNT(DT,SSTS);
DRAWNUMBER(ZT,HIGH*1.04,NUMBER),COLORWHITE;
DRAWNUMBER(DT,HIGH*1.04,NDT),COLOR11BB22;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.29,0.03,0,NUMBER),COLOR2288DD;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.13,0.03,0,'上市以来共涨停'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.29,0.088,0,NDT),COLOR22FF33;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.13,0.088,0,'上市以来共跌停'),COLOR22BB33;

 

通达信金山多头主图指标公式