Skip to content

bgwrites/Forex-Trader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forex-Trader

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.

Getting started

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.

  1. Create a demo account with Oanda and obtain an api key and make note of your account ID.
  2. Place your accountID and api key in their respective ares in the init.py file.
  3. Within init.py place the numbers you want for your 2 Simple Moving Averages in "SMAbig" and "SMAsmall".
  4. 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.
  5. Point your terminal to the project directory and run app.py in terminal with:

user$: python app.py

Your system should now be running!

Releases

No releases published

Packages

No packages published

Languages