Skip to content

aliemrekaragul/trading_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trading Bot

A cryptocurrency trading bot that uses technical indicators to make trading decisions on Binance Futures.

Features

  • Uses multiple technical indicators:
    • Stochastic Oscillator
    • RSI (Relative Strength Index)
    • ATR (Average True Range)
    • Linear Regression Channel (LRC)
  • Implements ATR-based stop loss and take profit orders
  • Real-time market data monitoring
  • Comprehensive logging system
  • Configurable parameters for risk management

Setup

  1. Clone the repository:
git clone <your-repository-url>
cd trading_bot
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file with your Binance API credentials:
API_KEY=your_api_key_here
SECRET_KEY=your_secret_key_here

Usage

Run the bot with default parameters:

python bot.py

Or with custom parameters:

python bot.py --symbol ETH/USDT --amount 20 --leverage 20 --atr_multiplier 3.0 --tp_ratio 2.0 --lookback_days 150

Parameters

  • --symbol: Trading pair (default: ETH/USDT)
  • --amount: USDT amount per trade (default: 20)
  • --leverage: Leverage multiplier (default: 20)
  • --atr_multiplier: ATR multiplier for stop loss (default: 3.0)
  • --tp_ratio: Take profit ratio (default: 2.0)
  • --lookback_days: Days of historical data to load (default: 150)

Warning

This bot is for educational purposes only. Trading cryptocurrencies involves significant risk of loss. Use at your own risk.

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages