Nolama is a simple, extendable trading bot. It is able to trade live with the Alpaca API. It can easily be extended and backtested. I have also tested it with historical bitcoin data. An example for Bitcoin can be found as a Jupyter Notebook in the repo and on Colab below.
WARNING: This bot can not make consistent profit as is.
You can run the bot using this notebook in colab. This is an example using the Alpaca API and $AAPL:
See how it works with Bitcoin:
-
Clone the repository
-
Build and run
docker build -t nolama:bot .
docker run -it nolama:bot
- Clone the repository
- Create and activate virtual environment
python3 -m venv env
source env/bin/activate
- Install dependencies
pip install -r "requirements.txt"
- Run
python3 nolama/run.py
Currently tested on three timeframes of $AAPL (each roughly 3 days) with minute ticks. The bot trades profitable for these three timeframes even if the overall price trend is negative. The bot underperforms the stock for the timeframe where the price trend is very positive.
Example plot of bot trading $AAPL (bot bought stock at green circles and sold at red circles):
You can extend the bot by implementing TA Calculation Steps and Scoring Steps and adding them to the bot. You will need to set the score_threshold
value accordingly.