This is an automated JavaScript Crypto Trading Bot designed to analyze market trends, execute trades, and optimize profit strategies. The bot integrates various indicators such as MACD, EMA, Bollinger Bands, VWAP, ATR, and ADX to enhance decision-making.
- 📈 Real-time market analysis using ccxt
- 🔄 Supports multiple timeframes with custom strategies
- 📊 Technical indicators: MACD, EMA, Bollinger Bands, VWAP, ATR, ADX
- 🔍 Trend analysis using best-fit lines and support/resistance levels
- 📂 Saves historical OHLCV data for analysis
Make sure you have Node.js installed on your system.
- Clone the repository:
git clone https://github.com/ocirede/JavaScript_Crypto_Bot.git cd JavaScript_Crypto_Bot - Install dependencies:
npm install
- Set up environment variables (create a
.envfile):BINGX_API_KEY=your_api_key BINGX_SECRET_KEY=your_secret_key
⚠️ Do NOT share your API keys!
Start the bot with:
node bot.jsnpm start- Starts the botnpm run backtest- Runs backtesting on historical datanpm run analyze- Generates trading analysis
Modify config.json to customize trading strategies, indicators, and risk management settings.
{
"timeframe": "1h",
"strategy": "macd_vwap",
"indicators": {
"ema_period": 55,
"bollinger_bands": 14
},
"risk_management": {
"max_drawdown": 5,
"stop_loss": 2
}
}- MACD (Moving Average Convergence Divergence)
- EMA (Exponential Moving Average)
- VWAP (Volume-Weighted Average Price)
- Bollinger Bands
- ATR (Average True Range)
- ADX (Average Directional Index)
- 📡 Integration with TradingView for alerts
- 🤖 Machine learning-based pattern recognition
- 📉 Multiple exchange support (Coinbase, Kraken, etc.)
- 🐍 Planned Python translation for improved performance and flexibility
This project is private. If you'd like to contribute or use the bot, please contact me.
👨💻 Developed by Federico Diaferia