Skip to content

Instantly share code, notes, and snippets.

View nguyenhieuec's full-sized avatar

m_fx nguyenhieuec

  • Viet Nam
View GitHub Profile
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
#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