This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aiohappyeyeballs==2.4.6 | |
| aiohttp==3.11.13 | |
| aiosignal==1.3.2 | |
| altair==5.5.0 | |
| annotated-types==0.7.0 | |
| anyio==4.8.0 | |
| appnope==0.1.4 | |
| argon2-cffi==23.1.0 | |
| argon2-cffi-bindings==21.2.0 | |
| arrow==1.3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Here's a full example of Perry Kaufman's market efficiency strategy implemented in Python, including backtesting capabilities | |
| #using historical data. Remember that this is a simplified example for educational purposes, and it does not include considerations | |
| #such as transaction costs or slippage. | |
| pip install pandas numpy yfinance matplotlib | |
| import pandas as pd | |
| import numpy as np | |
| import yfinance as yf | |
| import matplotlib.pyplot as plt |
OlderNewer