NexusFi: Find Your Edge


Home Menu

 





Backtesting & Optimization -- worthless? How to get value from them?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Jayswiss with 3 posts (1 thanks)
    2. looks_two GuppyDRV with 3 posts (0 thanks)
    3. looks_3 rleplae with 2 posts (1 thanks)
    4. looks_4 resirca52009 with 2 posts (0 thanks)
    1. trending_up 2,309 views
    2. thumb_up 2 thanks given
    3. group 5 followers
    1. forum 9 posts
    2. attach_file 0 attachments




 
Search this Thread

Backtesting & Optimization -- worthless? How to get value from them?

  #1 (permalink)
 Jayswiss 
San Francisco, CA / USA
 
Experience: Intermediate
Platform: NinjaTrader, TradingView
Trading: ES, TF, NQ, CL, GC
Posts: 29 since Jun 2016
Thanks Given: 4
Thanks Received: 3

I've seen a lot of replies buried in threads that subtlety suggest that backtesting & optimization do not have as much value as we might be led to believe. People have posted "successful" strategies, and advanced users quickly reply to say the results are unrealistic and can not be replied upon (and often fail, miserably, in live trading).

Simple questions -- Why? And how should we be utilizing these functions to realize the most value from them?


I'm sitting here trying to develop a strategies (as a new NT user) using the Backtest feature of Ninjatrader. I have been giving weight and considerations to the minute differences in results from the Backtesting engine. However, after reading some of the posts here at Futures.io, I wonder if I am throwing out profitable strategies, going in the wrong directions towards improving a strategy due to unreliable(?) data coming from the Backtesting .

I've seen some people suggest to use optimizer on half of your data series, then backtest using the optimized parameters for the other half. If that's something that is sound advice, that is the kind of information & tips that I am seeking with this thread.

Hopefully the experts and advanced users can shed some light here.

Thanks!

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
OrderFlow-Based Support/Resistance Levels
Emini and Emicro Index
Strategy stop orders partially filled
EasyLanguage Programming
Cheap historycal L1 data for stocks
Stocks and ETFs
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
Funded Trader platforms
17 thanks
ApexTraderFunding.com experience and review
13 thanks
Trading with Intuition
12 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #2 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

Hi

It boils down to 'know' what you are doing and what to expect from back-testing and optimization.

It is possible to take a period of data and find 'magic' settings that create the best possible (optimized)
result over that period. Now adding data from another period, or just from tomorrow, will change the
results and they may be horrible.

Is all optimization bad ? no, you need to understand what you are doing

If a series of values for a parameter 16,17,18,19,20 all create positive profitable results and you pick
the best value, the chances are that your system is less vulnerable. If you have 18 being profitable
and all the rest loosers, guaranteed your strategy will fail in forward.

Probably a good read would be the book of Kevin. it walks you step by step through an approach.
Is it the only possible approach ? no.. for sure not
Is it a good approach ? if you apply and the strategy passes the tests, then you are on good track

good luck !

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
 Jayswiss 
San Francisco, CA / USA
 
Experience: Intermediate
Platform: NinjaTrader, TradingView
Trading: ES, TF, NQ, CL, GC
Posts: 29 since Jun 2016
Thanks Given: 4
Thanks Received: 3


Thanks, rleplae.

Can you link to "The book of Kevin"? I tried some searches and I guess that's not the title?

You bring up a good point with regards to general optimizations. For example, many people favor SMAs (or EMAs) of 50/200 or 9/50. I assume these numbers are the favorites because they were tested (long before NT existed) and seemed to be the most consistently proven winners across the board? Or were they just rabbitoutofhat starting points that stuck after a couple people wrote books about them? Even today on many wise TA educational sites, you will find "standard" sets of numbers to use for SMA crossovers (and RSI, and MACD, ADX, etc. etc.). But of course I agree... 50/200 may be hat magic today, but terrible tomorrow.

Started this thread Reply With Quote
  #4 (permalink)
 Jayswiss 
San Francisco, CA / USA
 
Experience: Intermediate
Platform: NinjaTrader, TradingView
Trading: ES, TF, NQ, CL, GC
Posts: 29 since Jun 2016
Thanks Given: 4
Thanks Received: 3

For optimization specifically though, I do like the idea of using the same specific periods of difficult historical trading periods + a few "regular" trading periods to test against as a sort of benchmark. A backtesting profile? Something like that. Then when you find something that worked through the bulk of those periods within your standard profile of periods to test, retry against a current or more recent period of time and see how it works out.

Started this thread Reply With Quote
  #5 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

"building algorithmic trading systems"
kevin davey

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
 GuppyDRV 
Seattle
 
Experience: Intermediate
Platform: MultiCharts 10
Broker: InteractiveBrokers, IQFeed
Trading: ES
Posts: 58 since Nov 2015
Thanks Given: 19
Thanks Received: 7

hello all,

With regard to back testing I'm interested in larger historical time periods and thus have a need for a good data source. I am specifically interested in YM, ES, NQ, ZN,ZB,E6 DAX etc.... I'm not interested in free stuff etc... Just a quality source where I can purchase the needed data and upload it into NT7. Anyone have any experience with this, hopefully going back at least 3 years.

Thanks for the help.

GuppyDRV

Reply With Quote
  #7 (permalink)
 resirca52009 
Indianapolis, Indiana/ USA
 
Experience: Advanced
Platform: MT4, Ninjatrader
Broker: AMP / CQG
Trading: Futures
Posts: 64 since Oct 2012
Thanks Given: 112
Thanks Received: 35

GuppyDRV,

I am also looking; Did you have any success ?

Richard

Reply With Quote
  #8 (permalink)
 GuppyDRV 
Seattle
 
Experience: Intermediate
Platform: MultiCharts 10
Broker: InteractiveBrokers, IQFeed
Trading: ES
Posts: 58 since Nov 2015
Thanks Given: 19
Thanks Received: 7

I made a move from NT8 to MC recently. I just find the Easy Language stuff faster for me to work with. I'm still trading with NT but should be migrated shortly. As a result my data needs changed so I switched providers for historical. I had good luck with these guys for NT and for that matter it migrates to MC if you ever use that. Their not cheap but for me that wasn't my prime deciding factor.

I believe Tckdata is cheaper but DTN has the NXCore product with a wide reach.

https://www.tickdata.com/

Commodity market trading data - DTN ProphetX

Hope it helps.

GuppyDRV

Reply With Quote
  #9 (permalink)
 resirca52009 
Indianapolis, Indiana/ USA
 
Experience: Advanced
Platform: MT4, Ninjatrader
Broker: AMP / CQG
Trading: Futures
Posts: 64 since Oct 2012
Thanks Given: 112
Thanks Received: 35

GuppyDRV,

I just downloaded the MultiCharts.Net platform for a trial. Thanks for the data links.

I had good luck with these guys for NT and for that matter it migrates to MC if you ever use that.

So, to ensure I follow you, you were able to initially use that data in ninjatrader and eventually port it over to MC ? If correct, that is a nice bonus !

Best,
Richard

Reply With Quote
  #10 (permalink)
 GuppyDRV 
Seattle
 
Experience: Intermediate
Platform: MultiCharts 10
Broker: InteractiveBrokers, IQFeed
Trading: ES
Posts: 58 since Nov 2015
Thanks Given: 19
Thanks Received: 7


Yes and yes but I'm using MC 10 not the MC.NET

C# is not my strong suit.....well none really but I can get buy with EasyLanguage better.

GuppyDRV

Reply With Quote




Last Updated on March 12, 2017


© 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