This is the code for developing an automated Forex trading system using Oanda as a broker. I plan to implement many features into this, so if you have anything you want to see, fell free to leave comments under issues.
List of planned features:
- Fibonacci retracement and extenson levels
- RSI indicator
- Multi time frame analysis.
DISCLAIMER! Forex trading carries a heavy amount of risk. Any and everything outlined in this code is for educational purposes only. I am not responsible for any of your losses or any hardships you may face as a result of using this code. Again, this is meant to be used ONLY for educational purposes.
You will need to install oandapyV20 and requests
This strategy is based on a 2 simple moving average cross. The TP/SL levels are set with support and resistance lines for the past candles.
- Create a demo account with Oanda and obtain an api key and make note of your account ID.
- Place your accountID and api key in their respective ares in the init.py file.
- Within init.py place the numbers you want for your 2 Simple Moving Averages in "SMAbig" and "SMAsmall".
- Depending on what your largest SMA is, you will need to set "count" to the same or more. I like to load in a few extra to alow for more data manipulation.
- Point your terminal to the project directory and run app.py in terminal with:
user$: python app.py
Your system should now be running!