https://github.com/federico123579/Forecaster
A trading Bot written in python, clear and simple structure
https://github.com/federico123579/Forecaster
bot finance investment python python3 trading trading-algorithms trading-bot trading-strategies trading-systems
Last synced: 7 months ago
JSON representation
A trading Bot written in python, clear and simple structure
- Host: GitHub
- URL: https://github.com/federico123579/Forecaster
- Owner: federico123579
- License: mit
- Created: 2018-02-20T13:19:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-09T15:57:38.000Z (about 5 years ago)
- Last Synced: 2024-10-31T06:34:56.463Z (12 months ago)
- Topics: bot, finance, investment, python, python3, trading, trading-algorithms, trading-bot, trading-strategies, trading-systems
- Language: Python
- Homepage:
- Size: 335 KB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
# Forecaster
A trading software that uses various algorithms to predict trend in regolar time spans and make transaction to Trading212 broker service using the Trading212 APIs (that I've made before). In other branches it uses XTBApi (another api built by me) and different algorithm tested with Foreanalyser. **There's a lot of work to do here, if you like you can help me build this. Contact me at federico123579@gmail.com.**
## Behavior
### Algorithm
One of the many algorithms I used is the Mean Reversion with this formula:
![]()
with `avg` as a **price average**, `mult` for a **costant** and `dev` for a **deviation**. In my tests I found most effective the use of a _linear regression_ as `price average` and a finantial index named _Average True Range_ (that defines volatility) as `deviation`.
## How to install
Install just with pip:
``` bash
cd Forecaster/
pip install -e .
```Then run setup.sh to save the tokens needed by the software.
``` bash
chmod +x setup.sh
./setup.sh
```## Developing
Will be used these _Design Patterns_:
* creational: _`singleton`_, _`factory method`_
* structural: _`Proxy`_, `Adapter`, _`Decorator`_
* behavioral: _`Chain of responsability`_, _`Mediator`_, _`Strategy`_### Main Libraries
* Telegram API
* Trading212 APIThe `Bot` uses Telegram APIs to communicate with the user news and receive commands (asyncronously) and Trading212 API to make transactions and drive predictive algorithms.
### Backlog
To-Do list before the v1.0 release.
* [x] Tidy up code
* [x] Add thread handler
* [x] Add more telegram commands
* [x] Add market closure time watcher
* [ ] Add database integration