同花顺默认分时指标图
NEW1:=IF(ISNULL(NEW[1]),PRE,NEW[1]);
最新:IF(ISNULL(NEW),NEW1,NEW),colorwhite;
IF (ISNULL(RANGE_AVG_PRICE) OR RANGE_AVG_PRICE <= 0)
{
IF((MARKETTYPE==16 OR MARKETTYPE==32)AND CODETYPE==0)
{
领先:(INDEXLEAD/10000 + 1)*PRE;
}
ELSE IF (MARKETTYPE == 232 OR MARKETTYPE == 56 OR MARKETTYPE==64 OR MARKETTYPE==128 OR MARKETTYPE == 80 OR MARKETTYPE==88 OR (VOL > 1 AND VOL<100))
{
b=SUBSAMEDAY(&VOL) ;
m=SUM(b*最新,0);
均价:IF(m>0,m/VOL,PRE);
}
ELSE IF(CODETYPE!=0 AND MONEY>0 AND MARKETTYPE != 48 AND MARKETTYPE != 104)
{
IF(ISNULL(MONEY) OR ISNULL(VOL) OR VOL==0 OR MONEY==0)
均价:IF(ISNULL(均价[1]),PRE,均价[1]);
ELSE IF(VOL==VOL[1] OR MONEY==MONEY[1])
均价:均价[1];
ELSE
均价:MONEY/VOL;
}
ELSE IF (MARKETTYPE == 176)
{
b=SUBSAMEDAY(&MONEY);
m=SUM(b*最新,0);
IF(m>0)
均价:m/MONEY;
}
}
ELSE
{
均价:RANGE_AVG_PRICE,,coloryellow;
}
DRAWGBK(MARKETTYPE==32 AND FORMATTIME(1)<10 AND TRADETIME>242),RGB(0,0,128);
RETURN;
hx_star;
hx_star_p;
a:=SUBSAMEDAY(&MONEY);
b:=SUBSAMEDAY(&NEW);
资金流出:=-SUM(IF(b<0,a,0),0);
资金流入:=SUM(IF(b>0,a,0),0);
资金差:=资金流入+资金流出;
分时动向:资金差-REF(资金差,1),COLORSTICK;
x1:EMA(SUM(分时动向,0),5);
x2:EMA(x1,10);
修改后分时指标图
最新:IF(ISNULL(NEW),PRE,NEW);
H1:EMA(最新,6),colorlimagenta;
H2:EMA(H1,18),colorlimagenta;
STICKLINE(H1>H2,H1,H2,0.1,2),color771C63;
STICKLINE(H1NEW,前高,DRAWNULL);
IF(新低>NEW,NEW,DRAWNULL);
IF(新低 1 AND VOL<100))
{
b=SUBSAMEDAY(&VOL) ;
m=SUM(b*最新,0);
均价:IF(m>0,m/VOL,PRE);
}
ELSE IF(CODETYPE!=0 AND MONEY>0 AND MARKETTYPE != 48)
{
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;
}
ELSE IF (MARKETTYPE == 176)
{
b=SUBSAMEDAY(&MONEY);
m=SUM(b*最新,0);
IF(m>0)
均价:m/MONEY;
}
}
ELSE
{
均价:RANGE_AVG_PRICE;
}
S1:=BARSLAST(FORMATTIME(1)=1);
DRAWICON(FILTER( NEW>REF(HHV(NEW,1200),1) ,20) ,NEW*0.99,23),;
//DRAWICON(FILTER( NEW>REF(HHV(NEW,360),1) ,20) ,NEW*0.99,11);
DRAWTEXT(FILTER( NEW>REF(HHV(NEW,360),1) ,20) ,NEW*0.99,'.突破'),coloryellow;
DRAWICON(FILTER(AMOUNT>100000000 ,60) AND NEW>=REF(HHV(NEW,60),1) ,NEW*0.99,24),;
DRAWICON(FILTER( SUM(MONEYFS,15)>REF(SUM(MONEYFS,30),16),15),NEW,0);
DRAWICON(FILTER( NEW>REF(HHV(NEW,7200),1) ,20) ,NEW*0.99,1),;
DRAWTEXT(FILTER( NEW>REF(HHV(NEW,360),1) ,20) ,NEW*0.99,'.突破'),coloryellow;
DRAWICON(FILTER(SUM( MAX(0,SUBSAMEDAY(&VOL)),10)>REF(SUM( MAX(0,SUBSAMEDAY(&VOL)),30),11) AND HHV(NEW,90)==NEW ,1) ,NEW,2),;
DRAWICON(FILTER(SUM( MAX(0,SUBSAMEDAY(&VOL)),10)>REF(SUM( MAX(0,SUBSAMEDAY(&VOL)),90),11) AND HHV(NEW,240)==NEW,1),NEW,9);
成交金额:TOSTRING(MONEY/100000000,2,)+'亿';