Phase 1: Foundation hardening#1
Merged
Merged
Conversation
Restructure monolithic Main/ codebase into modular C++17 library: - CMake build system with FetchContent (Google Test v1.14.0) - 5 module directories: core, indicators, analysis, risk, simulation - 14 passing tests with CSV-based offline data (no network dependency) - GitHub Actions CI (Ubuntu + macOS matrix) Bugs fixed during extraction: - RSI division by zero when avgLoss=0 - Correlation division by zero when variance=0 - Dynamic hedging wrong loop bound for long MA - EMA unsigned integer underflow (backward loop) - CURL missing error handling (silent failures) - Bollinger bands returning only upper band New capabilities: - CSV load/save for reproducible analysis - MeanReversion methods implemented (were declared but empty) - CLAUDE.md project conventions established
- test_slippage.cpp: add #include <cmath> for std::isnan/std::isinf (GCC requires it) - time_utils.cpp: increase snprintf buffer from 11 to 32 to silence GCC -Wformat-truncation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Main/into modular C++17 library with 5 module directories (core, indicators, analysis, risk, simulation)Test plan