同花顺精品分时指标
源码
最新:IF(ISNULL(NEW),PRE,NEW);
主力持仓:=EMA(100*(NEW-LLV(NEW,34))/(HHV(NEW,34)-LLV(NEW,34)),3);
箱顶:HHV(MA((NEW),5),30);
箱底:LLV(MA((NEW),5),30) ;
长底:LLV(MA((NEW),5),120);
JJ:=(NEW+HHV(MA((NEW),5),2)+LLV(MA((NEW),5),2))/3;
AA:=EMA(JJ,3);
BB:=REF(AA,1);
STICKLINE(AA BB,AA,BB,3,0),coloryellow,;
V1:=LLV(NEW,10);
V2:=HHV(NEW,25);
价位线:=EMA((NEW-V1)/(V2-V1)*4,4);
DRAWTEXT(CROSS(价位线,0.3),NEW,'★'),colorred;
IF (MARKETTYPE == 176 OR MARKETTYPE==64)
{
b=SUBSAMEDAY( VOL) ;
m=SUM(b*最新,0);
均价:IF(m 0,m/VOL,PRE);
}
ELSE IF(CODETYPE!=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(FORMATTIME(1) 10 AND TRADETIME 242),RGB(0,0,128);
RETURN;
hx_star;
hx_star_p;
hx_PriceLow;
hx_PriceUp;
hx_PriceMemo;