HOW TO BUILD A PROFITABLE TRADING SYSTEM PART 1: CONFIDENCE IN NUMBERS — DARA | Automate your trading without learning how to code (2024)

There is something very compelling about mathematics.There are no ‘buts’ and no ‘maybes’. Mathematics is not subjective. 2+2=4 and that's that – no matter how hard someone will try to insist that it is not. Numbers do not lie.

As an engineer, my love for numbers helped me in my trading from day one. I was never comfortable trading with subjective projections or on the recommendations of other traders. I needed concrete black-and-white proofs, with real hard numbers, to convince me that the trading rules and strategies I used had a statistical advantage and was profitable over time.

Any trading rules or strategies that I learned – whether from books, courses or other traders who came to me asking to automate their strategies – I rigorously tested to confirm their profitability. As you might have guessed, most of the trading strategies I tested over the last 14 years were shams, some even coming from prominent and highly respected traders. Out of almost a hundred different trading strategies that I tested, only a handful of them constantly made profits in the market.

While testing whether a strategy has worked in the past is a relatively simple task, the real challenge is evaluating its future profitability. Can we reasonably expect the strategy to perform the same in the future as it did in the past? Will we get the same results if we keep doing the same things we did 10 years ago? Most likely not since markets change all the time. To have the best shot of developing a trading strategy that not only worked in the past but also has a high chance of working in the future, we must employ the following three methods.

  1. Statistical significance (Confidence in Numbers)

  2. Simple strategies (Antifragile trading systems)

  3. Continuous and automated strategy adjustments(when our knowledge changes our probabilities must change too)

CAN WE HAVE CONFIDENCE IN NUMBERS?

In this article, we will look at the first factor: statistical significance and what is required to have confidence in your numbers.

A widespread mistake by discretionary traders is to look only at small sample sizes (typically less than 100 trades) when building a strategy or deciding on a trading rule. Couple this with the human tendency to see what you want to see –and you can see how relying on manually performed subjective strategy tests can quickly go wrong. Performing tests manually often leads to errors and overconfidence in the test results. The only way to be confident in your statistics is if it’s performed in an automated way with a testing-algorithm applied to a large enough data set. What size sample is large enough?How to know if the results are due to pure luck or is statistically significant?

Don't worry; there is a formula for this.

It's called Cochran's Sample Size Formula.

Where:

  • Z is Z score

  • p is currently known result (for example 50% win rate for the strategy)

  • q is 1-p

  • e is margin of error (for example 5%)


With this formula, we can calculate how many trades we need to have in our sample size to be confident in the statistical result, given our margin of error. This test is commonly used with a 5% margin of error.

Putting some figures into the formula we get:

  • Confidence level 99%

(2.58)^2 (0.5)(0.5)/0.05^2 = 666

To be 99% confident with a projection that has a 5% margin of error we need 666 trades in our sample.

  • Confidence level 98%

(2.33)^2 (0.5)(0.5)/0.05^2 = 543

To be 98% confident with a projection that has a 5% margin of error we need 543 trades in our sample.

  • Confidence level 95%

(1.96)^2 (0.5)(0.5)/0.05^2 = 385

To be 95% confident with a projection that has a 5% margin of error we need 385 trades in our sample.

  • Confidence level 90%

(1.645)^2 (0.5)(0.5)/0.05^2 = 271

To be 90% confident with a projection that has a 5% margin of error we need 271 trades in our sample.

  • Confidence level 80%

(1.28)^2 (0.5)(0.5)/0.05^2 = 164

To be 80% confident with a projection that has a 5% margin of error we need 164 trades in our sample.

  • Confidence level 70%

(1.03)^2 (0.5)(0.5)/0.05^2 = 107

To be 70% confident with a projection that has a 5% margin of error we need 101 trades in our sample.


To be 70% confident in your statistical result, you need at least 107 trades in your test sample; to be 99% confidence you need 666 trades.A commonly accepted confidence level is 95%: thus when you have 385 trades in your test sample, you can be reasonably confident that the results are not obtained by chance.


WHAT IF YOU DON’T HAVE ENOUGH TRADES IN YOUR TEST SAMPLE?

If the signals of your trading strategy are rare and you don’t have the required sample size we’ve discussed, the best way to get more results is to combine test results from multiple markets. In particular, closely correlated markets. For example, you can expect the results for your strategy to be very similar on EURUSD and GBPUSD currency pairs since these currency pairs are closely correlated. But the important thing to remember is that the strategy rules must be exactly the same and you should not optimise the strategy separately for each market. The significance of this we cover in part two of this article series: How to build a profitable trading system Part 2: Antifragile trading systems.

Having a large enough sample size is very important when testing and developing trading strategies. If you’re using small sample sizes you risk picking up random noise obtained by chance alone. That’s not a good way to build your strategies. The larger the sample size the more confidence you can have in the statistical result.

HOW TO BUILD A PROFITABLE TRADING SYSTEM PART 1: CONFIDENCE IN NUMBERS — DARA | Automate your trading without learning how to code (2024)

FAQs

How do you make a profitable trading system? ›

How to Develop a Profitable Trading System
  1. Step 1: Select a market and a timeframe. Every market and every timeframe can be traded with a system. ...
  2. Step 2: Define entry rules. ...
  3. Step 3: Define exit rules. ...
  4. Step 4: Evaluate your system. ...
  5. Step 5: Improving your system.

How do you build self confidence in trading? ›

Michael Guess
  1. Understand the Risks. Before you start day trading, it's important to understand the risks involved. ...
  2. Start with a Demo Account. ...
  3. Set Realistic Expectations. ...
  4. Develop a Trading Plan. ...
  5. Stay Disciplined. ...
  6. Start Small. ...
  7. Manage Your Risk. ...
  8. Stay Up-To-Date on Financial News.
Mar 22, 2023

What is the most profitable trading system? ›

Profit Parabolic” trading strategy based on a Moving Average. The strategy is referred to as a universal one, and it is often recommended as the best Forex strategy for consistent profits. It employs the standard MT4 indicators, EMAs (exponential moving averages), and Parabolic SAR that serves as a confirmation tool.

How to build your own automated trading system? ›

You need a strategy to automate the trading system. Consider the following steps:
  1. Formulate rules and conditions for order placement and execution.
  2. Decide on a platform based on the available feature list (or launch your own.)
  3. Apply your rules using platform functionality.
  4. Backtest your system. ...
  5. Start real-life trades.
Mar 15, 2023

Which type of trading is most profitable for beginners? ›

The defining feature of day trading is that traders do not hold positions overnight; instead, they seek to profit from short-term price movements occurring during the trading session.It can be considered one of the most profitable trading methods available to investors.

What is the best trading strategy for beginners? ›

10 Day Trading Tips for Beginners
  • Set Aside Time. ...
  • Start Small. ...
  • Avoid Penny Stocks. ...
  • Time Those Trades. ...
  • Cut Losses With Limit Orders. ...
  • Be Realistic About Profits. ...
  • Reflect on Investment Behavior. ...
  • Stick to the Plan. Successful traders have to move fast, but they don't have to think fast.
Sep 6, 2024

Is there a trading system that can win 100% of the trades? ›

There is no such thing as a trading plan that wins 100% of the time. After all, losses are a part of the game.

What is the most successful trading pattern? ›

Some of the most successful chart patterns in trading include the Head and Shoulders pattern, Double Top and Double Bottom patterns, Triangle patterns, the Cup and Handle pattern, and the Flag and Pennant patterns.

What is the strategy of the trading system? ›

They are step-by-step approaches that help traders capture opportunities amidst volatilities in the market and manage their risk. Trading strategies can be short-term or long-term, depending on the time horizon of the trades, and they often involve setting: Specific entry and exit points. Position sizing.

Which algorithm is best for trading? ›

Algorithmic trading can be used in various markets, including stocks, futures, options, and IPOs.
  • Tradetron.
  • AlgoTraders.
  • TradeSanta.
  • Robo Trader.
  • NinjaTrader.
  • Algobulls.
  • AlgoTest.
  • Quantiply.

How to create a trading bot without coding? ›

No Code Bot Creator
  1. Define The Trade Rules. Provide with Scrips / Indexes you want to include in your Rules.
  2. Save & Backtest. SpeedBot's accurate backtest result summarises the profit and loss of your Trade Rules.
  3. Optimize The Rules. Learn lessons from Backtest. Improve your rules. ...
  4. Ready! PaperTest! & Go...!

Can I create my own trading platform? ›

The number of features isn't limited, so you can create any functionality to streamline online trading. In case you don't have a solid understanding of how to create a trading platform, check out the list of crucial features to develop. Let's untangle the core features to understand how to create a trading platform.

How do you create a stock trading system? ›

How To Create a Trading Platform
  1. STEP 1: DEFINE GOALS AND VALIDATE IDEA.
  2. STEP 2: PREPARE INPUT ARTIFACTS.
  3. STEP 3: CREATE UI/UX DESIGN.
  4. STEP 4: CHOOSE TECH STACK AND API INTEGRATIONS.
  5. STEP 5: ONBOARD DEVELOPERS.
  6. STEP 6: DEVELOP MVP.
  7. STEP 7: TEST TRADING APP.
  8. STEP 8: RELEASE MVP.
Jun 25, 2024

Which trading system is the best? ›

Position trading

This strategy is particularly suited for traders who have a longer time horizon and seek to capitalise on fundamental factors and market trends. One of the main advantages of position trading is that it allows traders to capture significant price movements and profit from larger market trends.

Top Articles
Insuring Two Mortgages
2024 Automotive Market Forecast: The Car-Buying Landscape 
Citibank Branch Locations In Orlando Florida
How to know if a financial advisor is good?
Clafi Arab
Stolen Touches Neva Altaj Read Online Free
Tabler Oklahoma
Which Is A Popular Southern Hemisphere Destination Microsoft Rewards
Milk And Mocha GIFs | GIFDB.com
Uc Santa Cruz Events
Call Follower Osrs
Goldsboro Daily News Obituaries
Craigslist Boats For Sale Seattle
Rosemary Beach, Panama City Beach, FL Real Estate & Homes for Sale | realtor.com®
Cooking Fever Wiki
Check From Po Box 1111 Charlotte Nc 28201
Spectrum Field Tech Salary
Tvtv.us Duluth Mn
Nesz_R Tanjiro
Nordstrom Rack Glendale Photos
Nurse Logic 2.0 Testing And Remediation Advanced Test
라이키 유출
2024 INFINITI Q50 Specs, Trims, Dimensions & Prices
Barber Gym Quantico Hours
Titanic Soap2Day
Www.craigslist.com Savannah Ga
Pearson Correlation Coefficient
Red Cedar Farms Goldendoodle
Redfin Skagit County
Umn Biology
Orange Park Dog Racing Results
Log in or sign up to view
Mercedes W204 Belt Diagram
Craigslist Hamilton Al
Eleceed Mangaowl
How To Get Soul Reaper Knife In Critical Legends
Best Restaurant In Glendale Az
Ashoke K Maitra. Adviser to CMD's. Received Lifetime Achievement Award in HRD on LinkedIn: #hr #hrd #coaching #mentoring #career #jobs #mba #mbafreshers #sales…
M Life Insider
Karen Wilson Facebook
Best GoMovies Alternatives
Satucket Lectionary
Grizzly Expiration Date Chart 2023
All Weapon Perks and Status Effects - Conan Exiles | Game...
M&T Bank
New Starfield Deep-Dive Reveals How Shattered Space DLC Will Finally Fix The Game's Biggest Combat Flaw
Billings City Landfill Hours
Ics 400 Test Answers 2022
Service Changes and Self-Service Options
683 Job Calls
Law Students
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated:

Views: 6229

Rating: 4.2 / 5 (43 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.