Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Screens A-share stocks by multi-factor criteria including PE, ROE, profit growth and northbound flow.
Use this skill ↓30% 61%+30 ptsof test cases passed
Passed 14 of 23 test cases with the skill, and 7 of 23 without it.
I need to run the automated batch stock screening engine via bash command line with custom parameters: minimum ROE of 15%, maximum PE of 30, minimum profit growth of 20%, returning the top 20 candidates. Write out the exact terminal command.
Executes python calling screen_engine.py with `--min-roe 15 --max-pe 30 --min-profit-growth 20 --top 20`.
3 of 3 safety checks passed
SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts"
# 全市场实时行情(含市值、PE、换手率等)
python "$SCRIPTS/cn_stock_data.py" quote --code [逗号分隔的代码列表]
# 个股财务指标
python "$SCRIPTS/cn_stock_data.py" finance --code [CODE]
# 北向资金
python "$SCRIPTS/cn_stock_data.py" north_flow
# 资金流向
python "$SCRIPTS/cn_stock_data.py" fund_flow --code [CODE]
使用 scripts/screen_engine.py 进行批量筛选:
python $SKILLS_ROOT/a-share-stock-screen/scripts/screen_engine.py \
--min-roe 15 --max-pe 30 --min-profit-growth 20 --top 20
如果用户给出了明确条件(如"PE < 20 且 ROE > 15%"),直接使用。 如果用户给出模糊需求(如"帮我选几只好股票"),使用默认策略:
默认多因子策略(参见 references/default-factors.md):
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.