DRAWGBKlast(DATE>900101,strip(RGB(0,0,100),RGB(0,0,0),50));
VAR1:=(vol / (((HIGH - LOW) * 2) - Abs((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
卖盘:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2))));
净流入:=买盘+卖盘;
N:=5;{可选}
价涨净流入:= C>REF(C,N) AND 净流入>0 ;
价涨净流出:=C>REF(C,N) AND 净流入<0;
价跌净流入:=C0;
价跌净流出:=C
STICKLINE(价涨净流入,0,价涨净流入/4,6,0),Color6800F6;
STICKLINE(价涨净流出,0,-价涨净流出/4,6,0),ColorFF009F;
STICKLINE(价跌净流入,0,-价跌净流入/4,6,0),COLOR00FFFF;
STICKLINE(价跌净流出,0,-价跌净流出/4,6,0),Color00FF6E;
VA:EMA(净流入,3)/CAPITAL*50,LINETHICK2,ColoR00FF9D;
FILLRGN(VA,0, VA>0,(RGB(100,20,100)));
FILLRGN(VA,0,VA<0,(RGB(130,100,255)));
{ _最新股票指标公式}
Var2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27));
Var3:=SMA(Var2,3,1);
Var4:SMA(Var3,9,1),Color00ffFF;
Var5:3*Var3-2*Var4;
FILLRGN(Var5,Var4,Var5>REF(Var5,1) AND Var5>Var4 ,(RGB(200,110,10)));
FILLRGN(Var5,Var4, Var5
STICKLINE( 买盘>-卖盘,0,买盘/CAPITAL*20,2,1),Color0079FF,LINETHICK2;
STICKLINE( 买盘<-卖盘,0,卖盘/CAPITAL*20,2,1),Color526E00,LINETHICK2;
0;