π Description:
This Python project showcases a trade bot for EUR/USD using a simple candlestick-based strategy. The bot leverages the OANDA API to execute trades with take-profit and stop-loss levels.
π Strategy:
The trade bot analyzes recent candlestick patterns and generates buy/sell signals based on the following conditions:
Bullish Pattern: When a green candle follows a red candle with higher highs and higher lows. Bearish Pattern: When a red candle follows a green candle with lower highs and lower lows. π‘ Disclaimer:
π Getting Started:
Install required Python packages using pip install -r requirements.txt. Obtain an OANDA API access token and replace YOUR_ACCESS_TOKEN and YOUR_ACCOUNT_ID in the code. Run the bot using python trade_bot.py and watch it in action! π Results:
The bot's performance can be monitored through the console output and the generated dataF DataFrame. However, always remember to validate the strategy with extensive testing before using it for real trading.
π Resources:
OANDA API: https://developer.oanda.com/ Candlestick Patterns: https://www.investopedia.com/trading/candlestick-charting-what-is-it/ π§ Contact:
Feel free to reach out with any questions or suggestions via email: dave38@purdue.edu
π Enjoy Trading! π