NexusFi: Find Your Edge


Home Menu

 





Is back testing a waste of time?


Discussion in Emini and Emicro Index

Updated
      Top Posters
    1. looks_one Ninj4Man with 4 posts (3 thanks)
    2. looks_two rleplae with 3 posts (1 thanks)
    3. looks_3 JonnyBoy with 2 posts (8 thanks)
    4. looks_4 SpeculatorSeth with 2 posts (4 thanks)
      Best Posters
    1. looks_one JonnyBoy with 4 thanks per post
    2. looks_two SpeculatorSeth with 2 thanks per post
    3. looks_3 Gauer with 2 thanks per post
    4. looks_4 Ninj4Man with 0.8 thanks per post
    1. trending_up 9,199 views
    2. thumb_up 19 thanks given
    3. group 15 followers
    1. forum 20 posts
    2. attach_file 0 attachments




 
Search this Thread

Is back testing a waste of time?

  #11 (permalink)
maggtrading
quintana roo, méxico
 
Posts: 84 since Mar 2013
Thanks Given: 222
Thanks Received: 40

Ninj4Man,


in my opinion, back testing, optimization and real time simulated testing are the best tools you have available to put together an automated strategy that does make more money than it loses.


the first part of my advice to you would be that you learned how to optimize the settings for the parameters in your strategies, as it is apparent you do not know how to do that. all the most popular trading platforms offer optimization engines, learn how to use them for the particular platform you happen to be using (there are even video tutorials availble on the internet). make sure to include realistic and even exaggerated values for commissions and slippage which all will be going against you all the time.

if your strategies lose more money than they make even when all the parameters have been optimized, you can be sure they will never work and it would be a waste of time to continue trying to develop them.




second, maybe the most advantageous thing you can do to determine if your strategies are winners or not is to optimize them always leaving a sizable period of time out of sample. optimize the parameters in your strategies over long enough periods of time (4 years or more), so that, ideally, your strategies will be tested on all kinds of market conditions; uptrends, downtrends and flat / ranging periods. leaving an extended period of time out of sample means that you would never optimize your strategies to the present day and consider those results to be overly credible, always optimize up to 6 - 12 months ago. once you have optimized your strategies, let's say, to 12 months ago and they made money up to that point, and then you included the latest 12 months of market data keeping the same values for your parameters and your strategies still turned a profit consistently over that period, then you can be certain you have a winner.




the next step would be to test your strategies for a number of weeks as they make trades in real time on a simulated account. if any of your strategies makes more than it loses over all these tests (remember to always use realistic / exaggerated values for total commissions and slippage when evaluating simulated results), you can be certain that as long as the market keeps moving in fairly similar patterns as it has done in the past you could make real money going forward.

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
Increase in trading performance by 75%
The Elite Circle
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
16 thanks
My NQ Trading Journal
14 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
  #12 (permalink)
Ninj4Man
Auckland
 
Posts: 10 since Jul 2016
Thanks Given: 4
Thanks Received: 4


JonnyBoy View Post
One suggestion is you parcel out your back test data. For example, let’s say you have 18 months of data you can back test against - split that into 3 parcels of data. You should then look to exclude an entire parcel from ever being back tested against with your system. Then optimise your setup on the 2 parcels of data you have. Human nature says that you will curve fit to the 2 parcels of data.

When you believe the system is the best you will ever get it, proceed to back test it against the parcel of data you have kept in reserve. That is a good way to avoid curve fitting to your entire back test catalogue of data.

I would say back testing is not a waste of time as it can eliminate some very bad systems very quickly.

thanks for the advice I will look into testing with this approach as I think the problem I have been having is only backtesting and not doing any out of sample testing / walk forward.

Reply With Quote
Thanked by:
  #13 (permalink)
 
FABRICATORX's Avatar
 FABRICATORX 
San Tan Valley, AZ/USA
 
Experience: Advanced
Platform: NT7
Broker: IB, Tallinex, & 10 others.
Trading: Futures
Posts: 195 since Jun 2013
Thanks Given: 697
Thanks Received: 165


Use BT as an out of sample developmental tool.

Then forward test, live.

Jimmy

-Jimmy
Reply With Quote
  #14 (permalink)
goodoboy
Houston
 
Posts: 380 since Dec 2016
Thanks Given: 344
Thanks Received: 246


Ninj4Man View Post
I’ve been running my strategies in Ninjatrader for 6 months now, tweaking parameters and always fine tuning, I don’t believe in a perfect strategy and I am fully aware that I will lose trades but hopefully win (some)
I am skeptical about using back testing as I can always generate more winning trades than loosing and at the time seems like my strategy is working well, but then I have to realize this is not live, not real and only simulated, which makes me wonder why use back testing at all. I mean it’s good for testing if strategies work but to get an idea if a strategy will be profitable seems false. Even if fill type is liberal and slippage is set to high I can’t help but think the results are pointless, I read time and time again in different forums about people developing new strategies running them on back test and getting some great results only to be told by other members that what they are experiencing is fake and in the real world the strategy will fail, which makes me wonder why even back test at all. I haven’t used other trading platforms but why would all these companies have back testing built in if the results were that far removed from live trading. How many of you back test and if so do the results you get in sim even equate to anything remotely similar in live trading?

Yes, it is a waste of time.

Reply With Quote
  #15 (permalink)
 SpeculatorSeth   is a Vendor
 
Posts: 780 since Apr 2016
Thanks Given: 22
Thanks Received: 1,018

So here's a couple of the problems you're going to run into that people often don't consider. I use Ninjatrader to backtest, but these considerations are applicable to every platform.

Does it run the same way in in live vs backtesting? If your strategy is based completely on closing prices for signals then you're probably ok. That means you have to wait for the close of the bar though, which means the strategy is always late. One alternative is to use a shorter timeframe bars like seconds instead of minutes. Then the problem is it requires more data to backtest.

What is the max drawdown and longest losing streak? Many automated traders curve fit their targets and stops which inevitably leads to having a larger stop than your target. However, a larger stop could result in worse drawdowns. Here's where the losing streak is important. Is it significantly worse than what can expected based on chance alone? If it is then that could be a sign that the strategy was bullied in the past.

What are the risk adjusted returns? Generally speaking a strategy will do better the more it is in the market. Some strategies do this by really pushing winners. Others do this by constantly changing directions, and always being in the market. So for instance it's a lot more common to see swinger traders with a positive P&L. However, if you're in the market for days at a time then you have to consider what the performance would be if you just bought and hold. To determine if the signal really has edge outside of the long holding periods then you need to look at risk adjusted metrics like Sharpe ratio.

What is the chances of it working in the future? Past performance is not indicative of future results. The probability stat in Ninjatrader is one way to look at this as it tells you how consistent the strategy is. You can also run Monte-Carlo simulations. Ultimately though, you'll need to forward test it both on live and sim to really know.

TLDR: You need to look at more than just total net profit.

Reply With Quote
Thanked by:
  #16 (permalink)
 
AllSeeker's Avatar
 AllSeeker 
Mumbai, India
Legendary Pratik_4Clover
 
Experience: Beginner
Platform: TradingView & ZerodhaKite
Trading: NIFTY, BANKNIFTY
Frequency: Daily
Duration: Minutes
Posts: 1,424 since Jan 2019
Thanks Given: 5,249
Thanks Received: 5,012


TWDsje View Post
So here's a couple of the problems you're going to run into that people often don't consider. I use Ninjatrader to backtest, but these considerations are applicable to every platform.

Does it run the same way in in live vs backtesting? If your strategy is based completely on closing prices for signals then you're probably ok. That means you have to wait for the close of the bar though, which means the strategy is always late. One alternative is to use a shorter timeframe bars like seconds instead of minutes. Then the problem is it requires more data to backtest.

What is the max drawdown and longest losing streak? Many automated traders curve fit their targets and stops which inevitably leads to having a larger stop than your target. However, a larger stop could result in worse drawdowns. Here's where the losing streak is important. Is it significantly worse than what can expected based on chance alone? If it is then that could be a sign that the strategy was bullied in the past.

What are the risk adjusted returns? Generally speaking a strategy will do better the more it is in the market. Some strategies do this by really pushing winners. Others do this by constantly changing directions, and always being in the market. So for instance it's a lot more common to see swinger traders with a positive P&L. However, if you're in the market for days at a time then you have to consider what the performance would be if you just bought and hold. To determine if the signal really has edge outside of the long holding periods then you need to look at risk adjusted metrics like Sharpe ratio.

What is the chances of it working in the future? Past performance is not indicative of future results. The probability stat in Ninjatrader is one way to look at this as it tells you how consistent the strategy is. You can also run Monte-Carlo simulations. Ultimately though, you'll need to forward test it both on live and sim to really know.

TLDR: You need to look at more than just total net profit.

+ 1

Little something to chime in here, as most other retailers in market I've played with so many indicators and setups that I've lost count, if it wasn't for backtesting I think I might not have enough money or time in this life.

So, its very useful. At least it is one of the very few tools retail traders actually have to do their fair work and expect some results. Its much better than me imagining a strategy with some indicators I thought traded the way I wanted, and then blowing my account to realise how wrong I was. At least with backtests that can be avoided. Granted you are not just looking at the % profit column. Its surprising how many people actually "only look at that".

Just my 2c

Visit my NexusFi Trade Journal Reply With Quote
  #17 (permalink)
Gauer
garopaba + santa catarina
 
Posts: 45 since Aug 2019
Thanks Given: 9
Thanks Received: 62

It is a waste of time. Trading systems are not the way to trade profitably. They only work for a short amount of time, then they get out of sync with the market and you give all back.

Think of the market as a sinewave, and your system another sinewave that is out of phase with the market. At one moment they will sync and it will give you the illusion that the system "works".

Now, if you are using a simulator to replay the market and practice, oh yes that is a must and very necessary. But you have to master a method like VSA (volume spread analysis), which is mostly discretionary but still retains some "rigid" fundamental principles.

I tell you that in all these years of reading and watching all trading books/courses you can think of (and perhaps you never heard about), thousands of hours in this, studying, practicing, losing money, the only method that really taught me how to read a chart properly was VSA. When I read the "Master the Markets" book by Tom Williams, that was a game changer, I just ditched all the rest (never worked, only lost money with classic TA).

There is a reason the retail trading education industry pushes this kind of education (combination of different indicators, chart patterns and candle patterns): they make you lose money and provide liquidity for the smart money. They know exactly what are you doing.

Regards

Reply With Quote
Thanked by:
  #18 (permalink)
 
JonnyBoy's Avatar
 JonnyBoy 
Montreal, Quebec
 
Experience: Advanced
Platform: NinjaTrader 8
Broker: Kinetick
Trading: ES
Posts: 1,561 since Apr 2012
Thanks Given: 706
Thanks Received: 3,855


Gauer View Post
It is a waste of time. Trading systems are not the way to trade profitably. They only work for a short amount of time, then they get out of sync with the market and you give all back.

Think of the market as a sinewave, and your system another sinewave that is out of phase with the market. At one moment they will sync and it will give you the illusion that the system "works".

Now, if you are using a simulator to replay the market and practice, oh yes that is a must and very necessary. But you have to master a method like VSA (volume spread analysis), which is mostly discretionary but still retains some "rigid" fundamental principles.

I tell you that in all these years of reading and watching all trading books/courses you can think of (and perhaps you never heard about), thousands of hours in this, studying, practicing, losing money, the only method that really taught me how to read a chart properly was VSA. When I read the "Master the Markets" book by Tom Williams, that was a game changer, I just ditched all the rest (never worked, only lost money with classic TA).

There is a reason the retail trading education industry pushes this kind of education (combination of different indicators, chart patterns and candle patterns): they make you lose money and provide liquidity for the smart money. They know exactly what are you doing.

Regards

Whilst I agree with some of your points above, as a very competent back tester I can tell you that back testing isn't a waste of time. However, for it not to be a waste of time it needs to be executed correctly.

This is the biggest reason why some people think back testing is useless, because it didn't work for them. However, their execution was likely flawed to begin with. They were attempting to design an 'all rounder' strategy that would work for 12 months of the year in all types of market conditions, ringing up the cash register every day.

This isn't how it works. You don't buy one coat to wear all year because it will not perform well in every season, which is exactly like the market and back tests. Your comment about Sine Waves was a great analogy to this.

Knowing when to deploy a strategy is the key to successful implementation. Many of the strategies available to the public are trying to balance good performance by being in the market continuously. IMO this isn't the correct way to do it, but who is going to pay for a strategy that only runs on gap up or gap down days? Probably not many, so they compromise.

In conclusion back testing is not a waste of time. If executed correctly and deployed (turned on and off basically) at the most opportune time established by the correctly executed back test, they can be very rewarding.

I could hand out a long and short strategy in GC tomorrow. It is doing quite well, but it only runs for a few hours per day so the return is slow to build but steady. I would never have known the most profitable time frame(s) in which to run these without a back test.

--------------------------------------------------------
- Trade what you see. Invest in what you believe -
--------------------------------------------------------
Reply With Quote
  #19 (permalink)
 SpeculatorSeth   is a Vendor
 
Posts: 780 since Apr 2016
Thanks Given: 22
Thanks Received: 1,018

Now I think people are getting more into curve fitting issues. So the first approach would be find markets where the setups do well and don't do well. Find higher time-frame indicators to identify those conditions and change how you trade it. Or the more common approach would be just select those times when the strategy does well, and only trade those.

Both are curve fitting though. You're taking past data, and modifying to strategy to conform to that data as best as you can. Such methods are no more or less likely to be successful than any other approach based on purely on technical analysis because it the strategy is still entirely premised on inspecting past data.

Reply With Quote
Thanked by:
  #20 (permalink)
 brakkar 
Paris + France
 
Experience: Advanced
Platform: SierraChart
Trading: NQ
Posts: 69 since Feb 2014
Thanks Given: 30
Thanks Received: 39


There is nothing mystical about backtesting. It is just testing what you would have done if you were 100% disciplined with your plan.

It is true that a winning backtested strategy may fail or become caduc in real trading.... but you are 99,9% sure that a strategy that is failing in backtesting, will fail in real trading.

So the first step is to have a winning backtested strategy.
Then see how it does in real testing.

Also some strategies are more prone to backtesting and automated trading than others.
Backtesting a tick scalping strategy on illiquid instrument will fail, guaranteed.
Backtesting a strategy on longer time frame, where you would enter and exit with limit orders on real trading (only stop losses will be prone to slippage) on very liquid instrument will be much more realistic and replicable in real trading.

Reply With Quote




Last Updated on October 3, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts