hh), lower lows (ll), trend, body size, and volume ratio.1pandas==2.0.3
2numpy==1.24.3
3scikit-learn==1.2.2
4datasets==2.14.4
5torch==2.0.1XAUUSD_H1.csv: Hourly OHLCV data with columns Time, Open, High, Low, Close, Volume (tab-separated).1git clone <repository-url>
2cd <repository-directory>pip install -r requirements.txtXAUUSD_H1.csv) is placed in the project directory.Dataset:python preprocess_smc_optimized.pyXAUUSD_H1.csv (~150,000 rows)/xauusd_smc_dataset (saved dataset with sequences and labels)Open, High, Low, Close, Volume, hh, ll, trend, body_size, volume_ratiopython train_evaluate_lstm_smc.py/xauusd_smc_dataset/best_lstm_model.pthEpoch 1/100, Train Loss: 0.571448, Test Loss: 0.568098, Test Accuracy: 0.9834
...
Epoch 100/100, Train Loss: 0.232735, Test Loss: 0.235532, Test Accuracy: 0.9650
Classification Report:
precision recall f1-score support
Sell 0.XX 0.XX 0.XX XXXX
Buy 0.XX 0.XX 0.XX XXXX
Hold 0.XX 0.XX 0.XX XXXXX
accuracy 0.XX 29988
macro avg 0.XX 0.XX 0.XX 29988
weighted avg 0.XX 0.XX 0.XX 29988preprocess_smc_optimized.py: Generates SMC signals, creates sequences, and saves the dataset.train_evaluate_lstm_smc.py: Trains an LSTM model and evaluates performance with a classification report.XAUUSD_H1.csv: Input dataset (not included; provide your own)./xauusd_smc_dataset: Saved Hugging Face dataset./best_lstm_model.pth: Saved best model weights.[1.0, 1.0, 0.1]) to prioritize Buy/Sell signals over Hold.float32 for features, int64 for labels, and saves dataset to disk.dask for larger datasets.