{"repo":"fja05680/pinkfish","free":true,"listed":false,"github":"https://github.com/fja05680/pinkfish","clone":"git clone https://github.com/fja05680/pinkfish.git","description":"A backtester and spreadsheet library for stocks and ETFs","language":"Python","stars":303,"topics":["backtesting","etfs","finance","stocks","stock-market"],"license":"MIT","category":"trading","readme_excerpt":"pinkfish pinkfish A lightweight backtester and spreadsheet library for stocks and ETFs. Pinkfish is built for a specific niche: backtesting stocks, ETFs, portfolios, and swing-trading strategies using free daily data. It started as a way to test simple, rule-based strategies from authors like Larry Connors , Cesar Alvarez , Andreas Clenow , and Gary Antonacci — short-term mean reversion, momentum rotation, and allocation ideas that read cleanly in a few lines of Python. It is simple, pandas-native, and stays out of your way while you test ideas. Start with the buy-and-hold example What pinkfish is good at - Single stock or ETF strategies — Connors-style mean reversion (see examples/strategies/double-7s ), golden cross, sell-in-May, and similar swing-trading ideas - Stock and ETF portfolios — asset allocation, sector rotation, and momentum across a fixed basket of symbols (see examples/portfolios/asset-allocation-portfolio , examples/portfolios/momentum-gem-portfolio , examples/portfolios/double-7s-portfolio ) - Open and close execution with daily bars — pinkfish's distinguishing feature (see below) - Short selling and margin — included in the trade log API - Parameter optimization — run a strategy with different settings and compare performance metrics side by side - Jupyter spreadsheets — build formatted trading spreadsheets in a notebook: add indicators, highlight buy/sell conditions, and review signals you can execute manually Many backtesters use an order model (market, l","default_branch":null,"files":null,"tree":[],"storefront":"/r/fja05680","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fja05680/pinkfish/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}