I AM NOT RESPONSIBLE FOR ANY MONETARY LOSSES USING THIS BOT, THIS IS A CODING SIDE PROJECT AND NOTHING MORE, BY USING THIS BOT, YOU ARE ACCEPTING RESPONSIBILITY FOR ANY LOSSES YOU MAY INCUR.
This bot is designed to run indefinitely unless one of the following things occurs:
- You input an invalid Ticker when asked.
- You input an invalid Interval to trade.
- You kill the script or container manually. (Be Warned, This will not close open trades.)
Any invalid inputs/calls will error while returning a list of valid options.
Once this repository has been cloned, there is some setup required before it can be used.
- Rename APISettingsTEMPLATE.json to APISettings.json
- Fill in the values of that JSON with your personal settings.
- ticker: The ticker code.
- interval: The Interval you wish to trade in seconds.
- auto_trade: true will allow the bot to place trades if the criteria are met, false will run the bot without trading (good for testing predictions and backtesting).
- access_token: Your FXCM API Key.
- account_type: demo or live.
- account_id: The ID of the FXCM account you wish to trade.
- max_trade_open_time: The max number of intervals a trade is allowed to be open for before it is force killed.
- There are two ways to run this bot:
- Using the locally installed Python.
pip install -r requirements.txt
python3 main.py
- Or using the dockerfile.
- To Build the docker image,
docker build -t fxcm-bot .
- Then to run the image,
docker run -it --rm fxcm-bot
- To Build the docker image,
- Using the locally installed Python.
This Bot does not support running multiple configs in one script.
If you wish to trade multiple Ticker/Interval combinations, Create a seperate copy of this repository with the desired settings.
Copyright of Ben Hiram Taylor