Use when generating short-term swing-trade recommendations from this investing workspace. Runs the short-term backtest and recommendation workflow, reads tickers and risk from input_config.json, reads actual holdings from state/portfolio_state.json, and returns BUY, SELL, or HOLD ideas with technical rationale and backtest context.
Use this skill for the swing-trading workflow in this repo.
Assume the skill runs from this directory:
/Users/anuragmohan/Documents/POC/investing
If the runtime starts elsewhere, change into that directory first or use absolute paths.
input_config.jsonstate/portfolio_state.jsonRun from the working directory above:
python3 /Users/anuragmohan/Documents/POC/investing/main.py backtest --format text
python3 /Users/anuragmohan/Documents/POC/investing/main.py recommend --format text
python3 /Users/anuragmohan/Documents/POC/investing/main.py run-all --format text
If machine-readable output is needed:
python3 /Users/anuragmohan/Documents/POC/investing/main.py run-all --format json --output /Users/anuragmohan/Documents/POC/investing/shortterm_output.json
/Users/anuragmohan/Documents/POC/investing/input_config.json/Users/anuragmohan/Documents/POC/investing/state/portfolio_state.jsonBefore running, confirm these files exist and are valid JSON.
Preferred recommendation times in US Eastern time:
10:15 AM12:15 PM2:15 PMPreferred backtest time:
5:00 PM ETSummarize:
For each actionable recommendation, include:
If the action is BUY, explain why the setup qualifies now.
If the action is SELL, explain what broke down or what exit condition was triggered.
If all signals are weak or data is unavailable, explicitly report HOLD.
blocked, do not present new BUY ideas as actionableBUY or SELL without also returning the reason for that decisionExecuted trades are recorded separately with:
python3 /Users/anuragmohan/Documents/POC/investing/update_portfolio.py --ticker TICKER --side BUY_OR_SELL --quantity QTY --price PRICE --executed-at YYYY-MM-DD