Programming & Backtesting - Why do it?
If your idea is programmed mechanically, you can
- Remove the emotions from testing.
- Remove the mistakes from testing.
- Easily optimise the parameter settings.
- Test various hypotheses, such as larger profit targets, tighter stops, or trading mornings only.
- Test on multiple markets.
- Test on multiple time-frames.
Backtesting A System
Here is a four month backtest of an in-house system developed by TradingCoders.com that catches pullbacks in a trend. Out of the starting gate it is profitable, but certainly not flawless just yet.It has a profit of $4,000, and a profit factor of 1.25.
What can we do to improve this system? Let's modify the criteria for entries, shooting for deeper pullbacks.

This equity graph certainly looks better. Our profit factor has gone up to 2.41, but the amount of trades got reduced by a factor of 5, and our profit is only $1,200.
Hopefully we can get more entries, and still keep our profitability.
After some more optimising, we can find that reducing our profit target actually increases the smoothness of our system. We can get our trade count up and our profitability up as well. Very low drawdowns too.
This results in a profit of $9,985 and a profit factor of 3.84, which is outstanding.
By building the idea as a mechanical system, we can hone and improve the idea until it demonstrates its worth.
Benefits of a Trading Portfolio
Trading multiple systems, or even the same system on different markets, can make a significant difference to the equity curve of your trading account.
With only one system on one market, such as you might manually trade on the e-minis or forex, you are susceptible to that specific market's conditions, and the results your one system gets out of those conditions.
Here is a backtest result of a system on one market.
So far so good, we are making money. But let's include a lot of other markets with the same system, without increasing the amount of contracts we trade at any one time.
A huge improvement! About 3.5 times more profit.
Can it get better? Let's split our trading account into portions, dividing the account into quarters and trading one quarter of our money across four positions on four different markets at once.
Now we're talking! Very smooth, consistent equity curve, with very small drawdowns.
This is what a portfolio of systems, or a proven system across multiple markets can do for you.
This is why modelling your trading ideas mechanically is so important. Only with solid backtesting can you be confident your real-world trading results will be positive.
Throughout the selection of a trading platform to host our automated strategy we faced many obstacles even after the selection was made. Our next task then was to find a coder who could actually code our strategy due to the complexity. All those, in excess of 50 in number, I contacted in the U.S., Israel, and the Ukraine didn't want the job, or couldn't do it, didn't know if they could, or we had serious reservations with their being able to fulfill our instructions, parameters, and logic, and many lacked even the most basic courtesy replies including others who are certified NT partners.
I finally came across Trading Coders as one of your certified partners who replied to our most basic requirement within just hours. I was astonished. The project took nearly a year and half to complete mainly due to emergency problems in my family, but James with Trading Coders, stood by us the entire time and delivered the finished product to us timely once I was set up to move forward. His setup and tutorial session was relaxing, informative, and thorough. Out of all the certified partners NT has listed, he by far was the most professional and knowledgeable in meeting our needs. His coding far exceeded our expectations and executes perfectly in the NT platform. His work is phenomenal. I highly recommend him for coding services and I cannot say enough regarding his professionalism and courtesy.
You may share my testimonial either personally or on your website to promote him and his company as a legitimate certified partner to NT.
Respectfully submitted,
Free Stuff
Free indicators to download and use free, forever. Trading articles written by the TradingCoders team.
Check 'em out
Our team is comprised of people who are both coders and traders. We combine programming skills with our knowledge of the markets to seek edge wherever it may be found.
Our rates are low because we love what we do.
We will always deal with you with complete integrity, doing our very best to help you grow your trading.