同花顺神仙个股分时公式
源码
最新:IF(ISNULL(NEW),PRE,NEW);
H1:EMA(最新,6),colorred;
H2:EMA(H1,18),colormagenta;
H3:EMA(最新,108),colorcyan;
STICKLINE(H1>H2,H1,H2,0.1,1),colorred;
STICKLINE(H1<H2,H2,H1,0.1,1),colorblue;
IF (MARKETTYPE == 232 OR MARKETTYPE == 56 OR MARKETTYPE==64 OR MARKETTYPE==128 OR VOL<100)
{
b=SUBSAMEDAY(&VOL) ;
m=SUM(b*最新,0);
均价:IF(m>0,m/VOL,PRE);
}
ELSE IF(CODETYPE!=0 AND MONEY>0)
{
IF(ISNULL(MONEY) OR ISNULL(VOL) OR VOL==0 OR MONEY==0)
均价:PRE;
ELSE IF(VOL==VOL[1] OR MONEY==MONEY[1])
均价:均价[1];
ELSE
均价:MONEY/VOL;
}
DRAWGBK(MARKETTYPE==32 AND FORMATTIME(1)<10 AND TRADETIME>242),RGB(0,0,128);
RETURN;
hx_star;
hx_star_p;