把这个指标改成选股公式,选出攻击资金在100以上的股票,和红线上穿绿线的股票,谢谢大家了

2024-12-22 23:58:48
推荐回答(1个)
回答1:

Z_J1:=EMA(C,2)-EMA(C,150);
G_J1:=EMA(C,2)-EMA(C,89);
Z_J2:=EMA(Z_J1,100);
G_J2:=EMA(G_J1,30);
Z_J3:=2*(Z_J1-Z_J2);
G_J3:=2*(G_J1-G_J2)*9.8;
Z_J4:=POW(Z_J3,3)*0.1+POW(Z_J3,1);
G_J4:=POW(G_J3,3)*0.1+POW(G_J3,2);
主流资金:= IF(Z_J3>0.1,Z_J4,0)*5;
攻击资金:=IF(G_J3>0.015,G_J4,0)/28;
流存资金:=IF(攻击资金=0,-ABS(G_J4/28),0);
CROSS(攻击资金,主流资金);

攻击资金上穿主流资金,另攻击资金不可能大于100的。