NexusFi: Find Your Edge


Home Menu

 





How can I tell I my system will work in the Future


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one wallsteetking with 5 posts (0 thanks)
    2. looks_two ThatManFromTexas with 4 posts (1 thanks)
    3. looks_3 RM99 with 4 posts (2 thanks)
    4. looks_4 mainstream with 3 posts (0 thanks)
      Best Posters
    1. looks_one Fat Tails with 2 thanks per post
    2. looks_two Eric j with 2 thanks per post
    3. looks_3 fluxsmith with 1.5 thanks per post
    4. looks_4 RM99 with 0.5 thanks per post
    1. trending_up 9,207 views
    2. thumb_up 16 thanks given
    3. group 11 followers
    1. forum 32 posts
    2. attach_file 0 attachments




 
Search this Thread

How can I tell I my system will work in the Future

  #11 (permalink)
shadrock55
Marietta, GA U.S.A
 
Posts: 9 since Mar 2011
Thanks Given: 0
Thanks Received: 4

Your report doesn't appear to include slippage and commissions. I have no idea what (or how much of it) you are trading, but that can quickly turn a strategy negative.

The only way to get and idea is to do in sample and out of sample testing (forward testing) as was talked about above. For example, take 6 months from 2010 to optimize/test you strategy, then see if it worked up until now. That's replicating what you are trying to do. Write something in the past and have it work in the future.

I would then see if it worked in the data you have prior to that period. If not, then you probably need to check your code to make sure there aren't any constants in it, or at least determine if mitigating factor were an issue (the crash, etc).

I've read where people sim test for a year, but I only do so for a week measuring the expected buy and sell points. That's long enough for me to get confortable that the code works exactly like I want. In my opinion, It'll either work or it won't work. If I sim test for a month and its negative, does that invalidate my testing or was it a bad month? I just turn it on, monitor it constantly, and make sure that the percentages and averages I see in the backtest closely mirror the real time testing.

Also, I figure this is your first strategy so here are some things to look out for. I trade in TradeStation, but I know there are issues with limit orders (you may not get filled) and advanced bar types (buy on close instead of next bar). I'm not sure if they exist in Ninja, but before going live, make sure you research and understand any problems that may cause.

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #12 (permalink)
wallsteetking
MN
 
Posts: 25 since Feb 2011
Thanks Given: 4
Thanks Received: 0


mainstream View Post
If you have good back tested results, turn the system on live and watch the system trade. Is it following your rules, on entries and exits?

When you're comfortable take it live... with a finger on the quick close in the event your stop criteria doesn't execute as planned.

Once you gotten through that stage set it and forget it... you might also choose a broker that will allow for a max daily loss restriction for double fail safe.

My question to you is how many instruments does the system work on?


It only works on Crude Oil. but if I trade it on Euro my profit would of been 6% for years

Reply With Quote
  #13 (permalink)
 RM99 
Austin, TX
 
Experience: Advanced
Platform: TradeStation
Trading: Futures
Posts: 839 since Mar 2011
Thanks Given: 124
Thanks Received: 704


A) There's nothing that can "tell" if your system will work in the future....it's only relative and a sliding scale, some things give more confidence than others.

B) Forward testing will not indicate if your system will fair well in the future either as there logic challenges with simulation as well (fill orders, slippage, adverse market effects, etc).

C) Obviously simulation will help to iron out bugs with algo guys....but another good reason to sim or forward test is so that you can do a comparison/normalization to your backtest.

I do a forward sim test and then compare that result with the same time period doing a backtest. This will give me an indication of how the back and forward tests compare.

If the backtest is promising and the forward test is promising and the comparison between the 2 is very close, then that's as good as you can do going forward before taking it live. Market conditions can and do change.

Some strategies fair better in trending markets, some in sideways markets, so extended periods of either can make your strategy results seem better or worse.

D) Using an appropriate amount of data to backtest is just as important as the backtest itself. You can actually use too much data/time rearward. You have to carefully breakdown the results to ensure that if the market changed last year (against you) but the backtest was conducted over a 4 year period and seems profitable, then you might be given false confidence taking it live.

E) There are simply some things that become so complicated, you have to employ a "safety factor." I do this for just about everything. Before I put something live in play, I multiply the worst drawdown by 2. I cut the return by 4. I then look at the sheer number of trades and if it's a nibbler (lots of small trades) I try to envison what would happen if it traded half as often (dry spells for entries)....I then apply a very CONSERVATIVE estimate for slippage and I apply the maximum for commission (even though I know my commissions shrink with increased trade volume). IF, and only if it still makes money forward and backward, do I feel confident enough to play it live.

For example....when you backtest CL, you have to use assumption based data like @CL, and anyone trading futures will tell you, there's always a transition volume at the turn of the contract, it's very difficult to replicate how you will approach that....will you split your trades (between May and June), will you transition at the same time each month? Will you employ a rule to switch once the newer contract has more volume than the current? Those are the sort of things that are just very difficult to wrap your arms around and continuous backtest data can't account for the effect without some very sophisticated coding. THAT is why I overengineer my strategies, because I'd rather shoot for the stars, that way, if I fall short, at least I land on the moon.

Reply With Quote
  #14 (permalink)
stopnlimits
Chicago, IL
 
Posts: 29 since Mar 2011
Thanks Given: 7
Thanks Received: 7

700 trades spread over 4 years? Get a statistician to compare your results with 700 random trades and check the difference. If your system is good there will be a difference.

Reply With Quote
  #15 (permalink)
 mainstream 
Chicago, IL
 
Experience: Master
Platform: Kinetick Ninja Trader <7>
Broker: Ninja & IB
Trading: YM & Equities & Options & Mutual Funds
Posts: 174 since Jun 2010
Thanks Given: 57
Thanks Received: 88

Some great points! I will be integrating them!


I am definitely scared of CL systems... the fill is just so iffy. Especially when that market starts moving, your slippage could be ten ticks.

Reply With Quote
  #16 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,353


fluxsmith View Post
Some version of this is a frequent theme here. I think you could be saying any combination of 3 things:

1. Historical data feeds don't match real-time data feeds.
This is true, but they are certainly very highly correlated


2. The past is not predictive of the future
This may be true, but if it had no predictive value at all then no trading system would work

A system will work or not regardless of predictions

3. The systems you've tried execute differently over historical data vs real-time data
This is true for NT by default, but it can be largely overcome

So... I find backtesting to be highly correlated with actual results. In fact, for each system I trade, I check daily after the close that the backtesting engine gives the same performance I experienced in real-time. If there is any difference at all which is not explainable by slippage, then I treat it as a programming error and seek to correct it.

Actually I was saying one thing; I have never found a correlation between a system's back test results and it's actual results.

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
  #17 (permalink)
 
torroray's Avatar
 torroray 
Malaysia
 
Experience: Beginner
Platform: Multichart DT
Broker: MB Trading
Trading: Fx
Posts: 272 since Nov 2009
Thanks Given: 52
Thanks Received: 61


Eric j View Post
Forward testing your strategy through enough weeks to trade in at least one each of a trending , ranging and congested market is the only place to start . Backtests are fraught with inconsistencies that could take more (valuable) time to unravel than to forward test in a live market on a simulator .

I and most others here have had great tests that flopped hard in the live market . Dunno exactly why but its true , so invest your time in testing it in hand to hand combat long enough to shake out the bugs .

I used to go thru almost every forum to find strategy and test them. I found that same conclusion that what was claimed to be great, fall short in live market. But after years of looking at many stategy I learned something from years of system evaluation. At a glance I can tell that such system work on certain market condition (trending, ranging, congestion) but not all at the same time.

Its like a racing car that have to be adjusted to the race track ( not the Nascar oval). The problem with trading system, the market is the unknown factor so adjusting to is difficult. Some tried and call them trading system but they are more prediction or what if trading system.

Reply With Quote
Thanked by:
  #18 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,442 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,602


wallsteetking View Post
I have developed a trading system that did very well from 2007-2011. total of 700 trades taken. however, I feel that this does not tell me the whole story. I feel that I need at least then years back data for my trading system to see if it really works. However, because its an intra day strategy, I only got 4 years back data. Is there a way to tell if this strategy will work in the future or was this just luck.

Did you disclose the bar type and period? Exotic bars are not reliable for backtesting, and large bars (ie: 60 min) will produce inaccurate results due to NT backtest engine OHLC ordering.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #19 (permalink)
 Lamboo 
Stockholm
 
Experience: Intermediate
Platform: Nanotrader/ tradestaion
Broker: WHS / TS
Trading: EC / SI / ES / BP
Posts: 19 since Mar 2011
Thanks Given: 8
Thanks Received: 5


wallsteetking View Post
I have developed a trading system that did very well from 2007-2011. total of 700 trades taken. however, I feel that this does not tell me the whole story. I feel that I need at least then years back data for my trading system to see if it really works. However, because its an intra day strategy, I only got 4 years back data. Is there a way to tell if this strategy will work in the future or was this just luck.

Always test your strategy with real money before you can say it works or not!
I use a autoprogram on Silver that gives me a minimum profit of 10k a month,
but it has cost 25k for the developper before it was really working as it should!
backtesting or testing in simulated trading did'nt give the real results!

Lamboo

Reply With Quote
  #20 (permalink)
 mainstream 
Chicago, IL
 
Experience: Master
Platform: Kinetick Ninja Trader <7>
Broker: Ninja & IB
Trading: YM & Equities & Options & Mutual Funds
Posts: 174 since Jun 2010
Thanks Given: 57
Thanks Received: 88


I think exotic instruments are the problem....


If the bar isn't full of ticks then you're going to have room for error. An instrument that is very liquid and doesn't jump 5 or six ticks in a second, because there is a deep depth of market is going to be more accurate.

Reply With Quote




Last Updated on April 13, 2011


© 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