以下是通达信净买公式源码和截图
通达信主力净买公式源码:
P:=2;
VAR3:=1;
H1:=L;
H2:=H;
CC:=C;
RSV:=(CC-LLV(H1,9))/(HHV(H2,9)-LLV(H1,9))*100;
FAstK:=SMA(RSV,3,1);
Y1A:=((Sma(FASTK,3,1))*VAR3/2+40)*1.1;
Y1:=SMA(Y1A,3,1);
阳:Y1,LINETHICK2;
RSV1:=(HHV(H2,9)-CC)/(HHV(H2,9)-LLV(H1,9))*100;
Y2A:=(SMA(RSV1,3,1)*VAR3/2)*1.1;
Y2:=SMA(Y2A,3,1);
阴:Y2,LINETHICK2;
LC:=REF(CC,1);
1:=SMA(MAX(CC-LC,0),13,1)/SMA(Abs(CC-LC),13,1)*100;
RSI2:=SMA(MAX(CC-LC,0),6,1)/SMA(ABS(CC-LC),6,1)*100;
RSI3:=IF(RSI2 50,RSI2*1.05,RSI2);
RSV3:=(CC-LLV(H1,54))/(HHV(H2,54)-LLV(H1,54))*100;
RSI4:=IF(RSI3 100,100,RSI3);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
RRR:=EMA(SLOPE(RSI4,3),20)*VAR3;
滑头:RSI4,COLORRED,LINETHICK2;
主力:EMA(RSI2,13),LINETHICK2;
:EMA(主力,21),COLORYELLOW,POINTDOT;
VAR1:=LLV(LOW,13);
VAR2:=HHV(HIGH,13);
VAR3:=SMA((CLOSE-VAR1)/(VAR2-VAR1)*100,5,1);
VAR4:=SMA((VAR2-CLOSE)/(VAR2-VAR1)*100,5,1);
DRAWBAND(VAR3,RGB(155,50,50),50,RGB(0,100,50));
主力:VAR3,COLORRED;
:VAR4,COLORGREEN;
VAR5:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;
操作:EMA(VAR5,3),COLORYELLOW;
STICKLINE(C,90,90,1,0),COLOR3C3CFF;
STICKLINE(C,50,50,1,0),COLORYELLOW;
STICKLINE(C,10,10,1,0),COLORCYAN;
超B:=L2_AMO(0,2)/10000.0;
超S:=-L2_AMO(0,3)/10000.0;
超大净流入:=(超B)+(超S);
大B:=L2_AMO(1,2)/10000.0;
大S:=-L2_AMO(1,3)/10000.0;
大净流入:=(大B)+(大S);
主力净流入:超大净流入+大净流入,COLORSTICK;
主力净买差:主力净流入-REF(主力净流入,1),NODRAW;
STICKLINE(主力净流入 0,0,主力净流入,1,0),COLORRED;
STICKLINE(主力净流入 0,0,主力净流入,1,0),COLORGREEN;
连红:BARSLAST(主力净流入 0),COLORRED,NODRAW;
连绿:BARSLAST(主力净流入 0),COLORGREEN,NODRAW;
十红:COUNT(主力净流入 0,10),NODRAW;
0,COLORWHITE,LINETHICK1;
通达信主力净买公式截图