Tradesim
Trading simulator for backtesting of strategy
Install / Use
npx skills add mathieugouin/tradesimInstalls into whichever agent you are using.
README
Trading Simulator
Overview
My ramblings on various stock analysis and data mining.
Prerequisites
- Python 3.6+
- NumPy (http://www.numpy.org)
- SciPy (http://www.scipy.org)
- Pandas (http://pandas.pydata.org/)
- yfinance (https://pypi.org/project/yfinance)
Quick Start
- If required, edit the stock list files in
stock_db/*.txt. - Run (and possibly edit)
download_historical_data.shto download the historical stock data locally from the stock list files. - Run and play with
tradesim.py
IPython / Notebook
Setup
python3 -m pip install --upgrade pippython3 -m pip install ipythonpython3 -m pip install jupyterlab- Make sure
~/.local/bin/is in the path
IPython Run
- cd to the current dir where to start
ipython
Jupyter Lab Notebook Run
Jupyter lab has a nicer interface.
- cd to the current dir where to start
jupyter lab- For Github codespace:
jupyter lab --no-browser
Magic command
Ref: https://ipython.readthedocs.io/en/stable/interactive/magics.html
%whos: Print all interactive variables
Shortcuts
dd: delete cella: insert cell aboveb: insert cell belowm: convert cell to markdown (for documentation)y: convert cell to code (python)Ctrl+Enter: run current cellShift+Enter: run & select cell belowAlt+Enter: run cell & insert below
Notes
- Sympy equation wrapper: https://raw.githubusercontent.com/mathcube7/customize-sympy/main/customizer.py
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
python-debugpy
385.5kDebug Python with pdb, breakpoint(), post-mortem inspection, and debugpy remote attach.
skill-creator
385.5kCreate, edit, audit, tidy, validate, or restructure AgentSkills and SKILL.md files.
claude-opus-4-5-migration
140.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
