AdvancedTradingBot
Solana Crypto Scalping Bot A real-time trading bot for Solana-based tokens that uses technical indicators and machine learning to execute scalping trades. It dynamically selects trending coins, predicts buy/sell signals, manages risk with trailing stop-loss, and swaps tokens via Jupiter Aggregator
Install / Use
npx skills add aminali/AdvancedTradingBotInstalls into whichever agent you are using.
README
🧠 Tradambot – AI-Powered Solana Crypto Scalping Bot
Tradambot is an automated trading bot that executes high-frequency trades on the Solana blockchain using advanced technical indicators, machine learning (LightGBM), and Optuna-tuned predictive modeling. It dynamically selects the best coins, monitors real-time price action, and uses a hybrid rule-based + model-driven strategy to buy and sell with high precision.
📌 Features
- ✅ Executes buy/sell trades using Jupiter Aggregator
- ✅ Uses real-time candlestick data from CryptoCompare
- ✅ LightGBM model trained with Optuna hyperparameter tuning
- ✅ Class imbalance handled via SMOTETomek
- ✅ Rule-based signal generation (RSI, OBV, Stochastic, MACD, EMA, Bollinger Bands, ADX)
- ✅ Auto-retraining when model is missing or inaccurate
- ✅ Trailing stop-loss to protect profits
- ✅ Persistent position tracking via
position.json - ✅ Trade history logging (
trade_log.json) - ✅ Multicoin support via
.envsymbol settings - ✅ Runs on interval via
apschedulerwith async data fetch
📊 Indicators Used
- RSI – Overbought/Oversold
- Stochastic %K/D – Crossovers
- MACD – Trend momentum
- OBV – Volume confirmation
- EMA 5 / EMA 20 – Short & Medium trend
- ADX – Trend strength
- Bollinger Bands – Reversals & volatility
🛠 Technologies
- Python 3.10+
- LightGBM
- Optuna (Hyperparameter tuning)
- SMOTETomek (imbalanced-learn)
- Solana SDK (
solana&solders) - TA-lib via
ta - APScheduler (Job Scheduling)
- Jupiter Aggregator API (for swaps)
- CryptoCompare API (Market data)
⚙️ Configuration
Edit your .env file:
PRIMARY_MINT=SOL
SECONDARY_MINT=YOUR_TOKEN_ADDRESS
SECONDARY_MINT_SYMBOL=ABC
API_KEY2=your_cryptocompare_api_key
🙏 Acknowledgements
Special thanks to Soltrade, which served as an inspiration and foundation during the research and development of Tradambot. Portions of the strategy logic, structure, and design were adapted and enhanced based on insights gained from the Soltrade project.
## ⚠️ Disclaimer
This project is intended **for educational purposes only**. It is not financial advice. Use of this software for real trading is at your own risk. Always backtest and understand the implications before deploying with real funds.
Related Skills
mcp
Use the `mcp_perplexity-ask_perplexity_search` tools to answer questions. You should use this instead of the `web_search` tool because it is a lot more accurate.
practical-power-systems-synthesis
This skill enables synthesis in the domain of power-systems (engineering). It represents research-level-level expertise and is designed for production use in research, industry, and educational contexts. Use this skill when you need to perform synthesis operations related to power-systems.
semi-supervised-optogenetics-testing
This skill enables testing in the domain of optogenetics (neuroscience). It represents intermediate-level expertise and is designed for production use in research, industry, and educational contexts. Use this skill when you need to perform testing operations related to optogenetics.
data-mining-interpretation-fundamental
This skill enables interpretation in the domain of data-mining (data-science). It represents fundamental-level expertise and is designed for production use in research, industry, and educational contexts. Use this skill when you need to perform interpretation operations related to data-mining.
