trading-backtest
A stock backtesting engine written in Java. And a pairs trading (cointegration) strategy implementation using a bayesian kalman filter model
File Explorer
Download Latest Version (.zip)- gradle-wrapper.jar
- gradle-wrapper.properties
- coint-residuals.png
- coint-returns.png
- Backtest.java
- BacktestTradingContext.java
- SimpleClosedOrder.java
- SimpleOrder.java
- CsvReader.java
- CsvWriter.java
- Bar.java
- ClosedOrder.java
- Order.java
- TradingContext.java
- TradingStrategy.java
- DoubleSeries.java
- MultipleDoubleSeries.java
- TimeSeries.java
- AlphaVantageHistoricalPriceService.java
- HistoricalPriceService.java
- Http.java
- Statistics.java
- Util.java
- Cointegration.java
- CointegrationTradingStrategy.java
- KalmanFilter.java
- AbstractTradingStrategy.java
- BuyAndHold.java
- MultipleTradingStrategy.java
- BacktestMain.java
- report.r
- .gitignore
- build.gradle
- gradlew
- gradlew.bat
- LICENSE
- README.md
- settings.gradle
# Installation Guide
1. Get the code
git clone https://github.com/lukstei/trading-backtest
Downloads the entire project code from GitHub to your computer.
cd trading-backtest
Moves into the project folder you just downloaded.
2. Gradle (Java/Kotlin)
Medium RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- JDK (Java) Required to build and run Java/Kotlin projects.
- Gradle If the repo includes gradlew (Gradle Wrapper), you don't need to install Gradle separately.
./gradlew build
Builds the project using Gradle.
A BUILD SUCCESSFUL message means it worked. The output is created under build/.
// repository documentation
Was this content helpful?
(0 ratings)
