38 lines
686 B
Markdown
38 lines
686 B
Markdown
# OHLCV Predictor - Simple Inference
|
|
|
|
Refactored for easy reuse in other projects.
|
|
|
|
## Usage
|
|
|
|
```python
|
|
from predictor import OHLCVPredictor
|
|
|
|
predictor = OHLCVPredictor('model.json')
|
|
predictions = predictor.predict(your_ohlcv_dataframe)
|
|
```
|
|
|
|
## Files Needed
|
|
|
|
Copy these 5 files to your other project:
|
|
|
|
1. `predictor.py`
|
|
2. `custom_xgboost.py`
|
|
3. `feature_engineering.py`
|
|
4. `technical_indicator_functions.py`
|
|
5. `xgboost_model_all_features.json`
|
|
|
|
## Data Requirements
|
|
|
|
Your DataFrame needs these columns:
|
|
- `Open`, `High`, `Low`, `Close`, `Volume`, `Timestamp`
|
|
|
|
## Dependencies
|
|
|
|
```
|
|
xgboost >= 3.0.2
|
|
pandas >= 2.2.3
|
|
numpy >= 2.2.3
|
|
scikit-learn >= 1.6.1
|
|
ta >= 0.11.0
|
|
numba >= 0.61.2
|
|
``` |