Python

Dynamically calculate lot size for your algorithmic trading bot

4 Min Read In the last post, we looked at how you can dynamically load strategies into your trader. Today, I will show you how to dynamically calculate the lot size your algorithmic trading bot. The position size of a trade will depend on a percentage of risk, you are willing to take on your account balance. E.g. …

Dynamically calculate lot size for your algorithmic trading bot Read More »

Creating a strategy for your algorithmic trading bot – Part 2

4 Min Read Today, we will be continue creating a strategy for your algorithmic trading bot. By now, you should have 3 new files created from the last post. strategy.py that loads in your strategy, myStrategy.json that contains your strategy and a constants.py file that stores all the moving average functions for ta-lib. Today, we will be exploring …

Creating a strategy for your algorithmic trading bot – Part 2 Read More »

Creating a strategy for your algorithmic trading bot – Part 1

4 Min Read Today you will be creating a strategy for your algorithmic trading bot. By now, you should have a trader that can connect to a broker via MetaTrader 5, open/close trades and apply entry and exit strategies. If you don’t, I recommend you check out the beginning of this series before continuing. You might remember from …

Creating a strategy for your algorithmic trading bot – Part 1 Read More »

Creating an algotrader/trading bot with Python – Part 1

5 Min Read Creating an algotrader/trading bot with Python & the MT5 platform should generally have 3 main pieces of functionality, – opening a trade, closing a trade and receiving and analyzing new data. This post will take you through the last step. Because of the complexity, it will be split into multiple parts. Let’s get started with …

Creating an algotrader/trading bot with Python – Part 1 Read More »

Subscribe to my newsletter to keep up to date with my latest posts

Holler Box