This GitHub repository contains the code of all my Medium articles related to the stock market, crypto market, reinforcement learning, machine learning, and some other additional interesting topics. The articles cover a range of topics such as financial time series analysis, stock price prediction, portfolio optimization, and trading strategies, among others. The code is organized by article and includes Jupyter notebooks, Python scripts, and other relevant files.
The repository is intended for researchers, practitioners, and enthusiasts who want to learn more about the intersection of finance and machine learning. By providing access to the code of the articles, the repository enables users to reproduce the results and experiment with their own variations.
The repository is updated regularly with new articles and code. Contributions from the community are welcome and encouraged.
Please note that the information and code provided in this repository is for educational and informational purposes only and should not be construed as financial advice. Trading stocks and other financial instruments involves risk, and you should always do your own research and seek the advice of a licensed financial advisor before making any investment decisions. The author and publisher of this repository make no representation or warranties with respect to the accuracy or completeness of the contents of this repository and specifically disclaim any implied warranties of merchantability or fitness for any particular purpose. The author and publisher of this repository shall in no event be liable for any loss of profit or any other commercial damages, including but not limited to special, incidental, consequential, or other damages.
01.Preparation: https://medium.com/@diegodegese/ea191a15970c
02.Environment: https://medium.com/@diegodegese/b9b1b7a8a8fa
03.RLNextClose: https://medium.com/@diegodegese/c56677a9943
04.RLSellHoldBuy: https://medium.com/@diegodegese/2ab5f542a41d
05.RLStopLossTarget: https://medium.com/@diegodegese/cc03c3bcc9cb
06.GASellHoldBuy: https://medium.com/@diegodegese/541b04be685b
07.StrategyTests:
- Volatility with Bollinger Bands: https://medium.com/@diegodegese/c53cdadce99b
- Reversal: https://medium.com/@diegodegese/3f337e06f036
08.GABBStrategy:
- OIH: https://medium.com/@diegodegese/ef4c0a83ec10
- SPY: https://medium.com/@diegodegese/b87907dd62a7
- TSLA: https://medium.com/@diegodegese/86623e466999
- GM: https://medium.com/@diegodegese/25aa6c3b8157
- XOM: https://medium.com/@diegodegese/7c1ee226cabb
- SPY (Reversal Strategy): https://medium.com/@diegodegese/7bf687ee00a2
09.CryptoDataDownload:
- CryptoDataDownload: https://medium.com/@diegodegese/4e0525d3ecd9
- BinanceDataDownload: https://medium.com/@diegodegese/6e94dbb5c316
10.GARangePrices: https://medium.com/@diegodegese/fe9ed1081f8a
11.OptionsBacktest:
- SPY 1-minute Options (Trend Stock): https://medium.com/@diegodegese/3ea0c2d05ae5
- QQQ 1-minute Options (Trend Stock): https://medium.com/@diegodegese/bb5b609ca7e0
- AAPL 1-minute Options (Trend Stock): https://medium.com/@diegodegese/d661eb7e8c37
- MSFT 1-minute Options (Trend Stock): https://medium.com/@diegodegese/499d3584a653
- NVDA 1-minute Options (Trend Stock): https://medium.com/@diegodegese/7f40de2c3dec
- IWM 1-minute Options (Trend Stock): https://medium.com/@diegodegese/955153fa301b
12.RLNextTrendNysi: https://medium.com/@diegodegese/4d4466433dda
13.TrendIntraday:
- Part 1 (Basic): https://medium.com/@diegodegese/c38b65511a3d
- Part 2 (KNN): https://medium.com/@diegodegese/7578ea509255
- Part 3 (Neural Networks): https://medium.com/@diegodegese/ed148e6dfbe6
- Part 4 (K-Means): https://medium.com/@diegodegese/3df51ca95f3a
- Part 5 (Genetic Algorithm): https://medium.com/@diegodegese/c47997e6f3e2
- Part 6 (XGBoost): https://medium.com/@diegodegese/595791fe0618
- Part 7 (Average Ensembling): https://medium.com/@diegodegese/adb58bf27bf2
14.OptionsNakedPuts:
- SPY Naked Puts: https://medium.com/@diegodegese/dea1607c81ca
- QQQ Naked Puts: https://medium.com/@diegodegese/221627826a74
15.OptionsNysiTrend:
- SPY 1-minute Options (Trend $NYSI): https://medium.com/@diegodegese/2f19a3adf438
16.OptionsGATrend:
- SPY 1-minute Options (Trend Genetic Algorithm): https://medium.com/@diegodegese/f20b602e9b96
17.TrendFollowing:
18.BestPossibleStrategy:
19.MarketSentiment:
- Part 1: https://medium.com/@diegodegese/b07a35752b57
- Part 2: https://medium.com/@diegodegese/4ac9d73af75f
20.GAMACDStrategy:
- Part 1: https://medium.com/@diegodegese/5c953d20e836
- Part 2: https://medium.com/@diegodegese/3958aff26d0a
21.ControlChartStrategy:
- Rules 1 to 6: https://medium.com/@diegodegese/f6e9aca3d8a0
22.MarketDataDownload:
- Polygon Options: https://medium.com/@diegodegese/e20d46cbef3
- TradingView Downloader: https://medium.com/@diegodegese/1b4edb68492a
23.OptionsStrategy:
- SPY 1-minute Options (0DTE - Iron Condor): https://medium.com/@diegodegese/752289bbdfcc
- SPY 1-minute Options (0DTE - Credit Spread): https://medium.com/@diegodegese/03f9260a229c
- QQQ 1-minute Options (0DTE - Credit Spread): https://medium.com/@diegodegese/ba271cf4951b
- SPX 1-minute Options (0DTE - Credit Spread): https://medium.com/@diegodegese/9ff9d9dd8e96
24.TradingAlert:
25.BBGASeries
- SPY: https://medium.com/@diegodegese/839db4aa9173
- AAPL: https://medium.com/@diegodegese/769d16def2ce
- QQQ: https://medium.com/@diegodegese/8e672bc7775e
- KO: https://medium.com/@diegodegese/807d8cd26892
- DIA: https://medium.com/@diegodegese/283f3dcd29cf
- MCD: https://medium.com/@diegodegese/ebbe2705ba12
- IWM: https://medium.com/@diegodegese/ad404d807d1f
- AXP: https://medium.com/@diegodegese/cdfba58deaf5
- V: https://medium.com/@diegodegese/84c504621a18
- GDX: https://medium.com/@diegodegese/11b4cd84de8c
- MSFT: https://medium.com/@diegodegese/4e0ca2e92d87
- MRK: https://medium.com/@diegodegese/f50e7a326427
- SLV: https://medium.com/@diegodegese/96dab85b4af6
- NKE: https://medium.com/@diegodegese/23696395b644