7 min
You might have heard or read about traders “automating” their strategies, and you may be curious exactly how they do that and why.
Author
Automated trading has become widespread, accounting for 60-73% of all US equity trades. In this article, we’ll explore why automated trading is so popular and how to avoid common pitfalls in trading codes.
Automated trading (also called “algorithmic trading”) involves using a computer program to place trades; the program is given rules for when to enter and exit positions and what position size to trade. Successful automated traders are skilled in both programming and developing and testing trading strategies.

In this article, I’ll show you examples of automated trading systems and explain how they vary from discretionary trading systems. I’ll also discuss the pros and cons of algorithmic trading versus traditional trading.
Automated trading involves creating trading strategies for financial markets that are based on specific rules. Generating and coding those rules can be simple or difficult, depending on the complexity of the strategy.
Automated trades must be planned according to simple rules and parameters that a computer can understand. For example, a simple automated strategy could specify to buy 100 shares of stock when the daily closing price moves above the 100-day moving average.
That means the program would automatically sell the 100 shares when the stock crosses below and has a daily close below the 100-day moving average.
The more complex the system, the harder it will be to code all the rules. For example, human traders can identify a triangle chart pattern quite quickly. You could then tell a human to buy when the price moves above the triangle. A computer, on the other hand, doesn’t know what a triangle looks like unless you tell it via rules.
To automate a triangle trading system, you would need to tell it how far the price moves (uptrend or downtrend), what that move looks like, and on what time frame, before the triangle forms. Then you would need to specify that price waves are getting smaller which creates the triangle-like appearance.
Then there also needs to be time or lookback constraints so that the computer knows to only look for chart patterns over the last one month, for example — and not over the last decade. There is nothing wrong with developing more complex programs, but the coding skill required increases.
The coded program is then linked to a broker so that the computer can execute trades through the broker, similarly to what a person would do.
Connecting software to a broker is easily done through most trading automated trading platforms, including MetaTrader 4, ThinkorSwim, NinjaTrader, TradingView, and many others. In most cases, you can code right in the platform, and then execute the program so that it trades your account.
A key component of automated trading is including all the variables and considering as many contingencies are possible when coding a strategy. There are many things you understand and take for granted that a computer doesn’t know to look for.
Here are some of things you will want to consider when trading an automated system. This is by no means an exhaustive list, but hopefully it will help you fill in some holes in your system if you decide to code one.
There is also automated trading software available that allows you to create a program with a list of variables. For example, you pick your asset, time frame, technical indicators, entry method, exit method, position sizing method, and so on. The software compiles this into a code that you can test on historical data to see if it is viable.

You can update and tweak the parameters until they are acceptable to you. These programs are often called Wizards. Keep in mind that Wizards may not include all the variables you need to consider (such as how the algorithm handles trading around news, for example).
There is also the option to manually turn your automated strategy on and off when you want it to trade and when you don’t. This can sometimes save some coding time.
Is manual trading better than automated, or the other way around? Let’s look at the pros and cons of algorithmic trading.
There are several things that make automated trading an attractive option for traders:
But automated trading isn’t without its downfalls. Here are some disadvantages of automating your trades:
There are loads of scams related to automated trading and “trading robots.” Be careful of these!
Nearly all robots and “expert advisors” you see being sold online for a few hundred or few thousand dollars won’t be around a year from now. Your money will vanish, and likely the robot will have also lost all your money in your account.
Why? Because of over-optimization. People build robots, backtest it, and get it to produce fantastic results on past price data. The robot is then sold as a way for you to make quick money. The problem is that it typically doesn’t work on live, real-time market data. The only person making quick money is the robot-seller.
Beware anything that promises great returns with little work. Remember, it is not only the upfront cost of the robot you are paying for. If you give it access to your trading account, it could do much greater damage there.
Find Your Perfect Broker: Explore Our List Now!
Choose the best with our expert-selected options
Find Your Perfect Broker: Explore Our List Now!
Choose the best with our expert-selected options
Discover top binary options brokers tailored to your region. Browse our curated lists by country:
1903