以下是通达信公式进出指标源码和使用说明
通达信选股公式主力资金进出指标源码:
主力资金进出:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);
通达信选股:=MA(主力资金进出,5);
ccdd1:=PLOYLINE(CROSS(主力资金进出,通达信选股),通达信选股),COLORRED;
ccdd2:=PLOYLINE(CROSS(通达信选股,主力资金进出),主力资金进出),COLORFF00FF;
ccdd3:COUNT(CROSS(主力资金进出,通达信选股),ccdd1 REF(ccdd1,5)ANDccdd2 REF(ccdd2,5)),COLORRED;
EMA7:EMA(C,7),COLORWHITE,LINETHICK1;
EMA12:EMA(C,12),COLORWHITE,LINETHICK1;
EMA30:EMA(C,26),COLORWHITE,LINETHICK1;
EMA55:EMA(C,55),COLORWHITE,LINETHICK1;
ROC:=100*(CLOSE-REF(CLOSE,9))/REF(CLOSE,9);
MAROC:=MA(ROC,5);
ADR:=SUM(H,12)/SUM(L,12)-1;
MAADR:=MA(ADR,6);
Z1:MA((ADR-ROC),1)*-1.00,LINETHICK2,colorred;
Z2:EMA(Z1,6),LINETHICK2,colorwhite;
bbi:=(ma(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DIF:=EMA(CLOSE,5)-EMA(CLOSE,26);
DEA:=EMA(DIF,3),LINETHICK1;
RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
K:=SMA(RSV,7,1);
D:=SMA(K,3,1);
XG:crOSS(CLOSE,BBI)ANDBBI REF(BBI,1)ANDCROSS(DIF,DEA)ANDCROSS(K,D);
VAR6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-
LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV
(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR8:=VAR6 REF(VAR7,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1);
DRAWTEXT(VAR8ANDCOUNT(VAR8,16)=2,O,'★1【有码进】');
DRAWTEXT(VAR8ANDCOUNT(VAR8,18)=3,O,'3【有进场】');
DRAWTEXT(VAR8ANDCOUNT(VAR8,20)=5,O,'★2有筹码进场');
DRAWTEXT(VAR8ANDCOUNT(VAR8,12)=4,O,'4筹码');
DRAWTEXT(VAR8ANDCOUNT(VAR8,30)=1,O,'★【正版筹码进场】');
通达信选股公式主力资金进出指标截图