NexusFi: Find Your Edge


Home Menu

 





Backtesting Vs Live Trades


Discussion in Traders Hideout

Updated
      Top Posters
    1. looks_one emini_Holy_Grail with 6 posts (1 thanks)
    2. looks_two Lysakat with 6 posts (5 thanks)
    3. looks_3 treydog999 with 5 posts (4 thanks)
    4. looks_4 vitrader with 5 posts (0 thanks)
      Best Posters
    1. looks_one DbPhoenix with 2.7 thanks per post
    2. looks_two juanman with 2 thanks per post
    3. looks_3 Lysakat with 0.8 thanks per post
    4. looks_4 treydog999 with 0.8 thanks per post
    1. trending_up 19,895 views
    2. thumb_up 28 thanks given
    3. group 11 followers
    1. forum 40 posts
    2. attach_file 0 attachments




 
Search this Thread

Backtesting Vs Live Trades

  #21 (permalink)
 
Lysakat's Avatar
 Lysakat 
Las Vegas NV USA
 
Experience: Beginner
Platform: TWS, TOS, Multicharts
Broker: IB
Trading: Stocks, ETFS,Options
Posts: 28 since Jul 2014
Thanks Given: 11
Thanks Received: 11

After live trading our backtested systems for three months, I am pleased to see it has reflected the backtested results. However the backtesting must be as DbPhoenix describes - there are no short cuts and detailed testing must be done with win/loss ratios, profit and loss ratios, and strict risk management rules; it is a lot of work; constant review to improve and then re-test again. Correctly backtesting your strategies, following all of the rules, all of time, following your trading plan - no exceptions is really the holy grail of success. You can say with absolute certainty that going forward, the markets will never perform exactly as they did in the past and that live trading isn't exactly like testing, etc. But for the most part, this is the exception rather than the rule and should not be used as an excuse not to test.

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Cheap historycal L1 data for stocks
Stocks and ETFs
Better Renko Gaps
The Elite Circle
 
  #22 (permalink)
 emini_Holy_Grail 
Dallas,TX
 
Experience: Intermediate
Platform: NinjaTrader, OpenQuant
Broker: Zaner/Zen Fire
Trading: ES,6E,6B,GC,CL
Posts: 597 since Nov 2009
Thanks Given: 176
Thanks Received: 126


DbPhoenix View Post
You may also find, however, that your "good ATR-based system" isn't as good as you thought it was and you'll be faced with the prospect of starting over. Don't be disappointed if this is the case. It happens. Often. But the re-working and re-working is where winning traders come from (losing traders won't bother, or will give up).

I already hit that wall few times since last year and I had to adjust exit condition, target, stop and others and has been quite stressfull.
even adjusted the size of each trade and moved to low commission to make it profitable. quite difficult process

Reply With Quote
Thanked by:
  #23 (permalink)
 emini_Holy_Grail 
Dallas,TX
 
Experience: Intermediate
Platform: NinjaTrader, OpenQuant
Broker: Zaner/Zen Fire
Trading: ES,6E,6B,GC,CL
Posts: 597 since Nov 2009
Thanks Given: 176
Thanks Received: 126



Lysakat View Post
After live trading our backtested systems for three months, I am pleased to see it has reflected the backtested results. However the backtesting must be as DbPhoenix describes - there are no short cuts and detailed testing must be done with win/loss ratios, profit and loss ratios, and strict risk management rules; it is a lot of work; constant review to improve and then re-test again. Correctly backtesting your strategies, following all of the rules, all of time, following your trading plan - no exceptions is really the holy grail of success. You can say with absolute certainty that going forward, the markets will never perform exactly as they did in the past and that live trading isn't exactly like testing, etc. But for the most part, this is the exception rather than the rule and should not be used as an excuse not to test.

right, due to ever changing market and we can't expect the previous 6months of move to the next 6 months,whatever the "best backtest results" may be, we can't reproduce backtest to future results, but about 50% of backtest result to future, i can

but we can test "an average" like avg trade PnL and win/loss ratio
my avg win/loss is mostly around 1.9 or so as # of wins are less but they are runners
I took 4 years to learn backtest and optimise, back and forth, doing sim and Live. quite stressful and I did at the expense of quality and healthy life

Reply With Quote
  #24 (permalink)
 
vitrader's Avatar
 vitrader 
New York, New York, United States
 
Experience: Beginner
Platform: TOS
Trading: Options
Posts: 53 since Jul 2015
Thanks Given: 13
Thanks Received: 7


treydog999 View Post
The goal for any back test should be 90% or better accuracy in simulated trades vs live fills. This can be done by using accurate commissions, slippage, and understanding the limitations of your back test engine. Being overly pessimistic or overly optimistic is a mistake, you should try to be as accurate in assumptions of the market as possible. But in general it is safer to be overly pessimistic.

Back testing and modeling of trading strategies comes down to 2 essential types of assumptions 1) assumptions about the markets and its micro structure 2) assumptions about the type of activity that is exploitable to generate alpha. You must make both assumptions as close as you possibly can to real life as possible. The more off you are in your base assumptions the more off your back test will be, and that is completely human/user error. No institutional grade software, back tester can help you fix this.

In regards to strategy type affecting back tests, this is just a falsehood. It is not the strategy that is affecting it, it is the poor back tester. Most people are using tradestation, ninja trader etc. These are not very robust back testers and were not built to handle intraday or scalper type strategies. They are based around the idea of re hashing common technical indicators and using longer time frames. Just you need to choose the right tool for the job. The backtesting engines in Tradestation or Ninja are just not the right tool.

What do you recommend as a solution? Thank you.

Reply With Quote
  #25 (permalink)
 
treydog999's Avatar
 treydog999 
seoul, Korea
 
Experience: Intermediate
Platform: Multicharts
Broker: CQG, DTN IQfeed
Trading: YM 6E
Posts: 897 since Jul 2012
Thanks Given: 291
Thanks Received: 1,039


vitrader View Post
What do you recommend as a solution? Thank you.

Well the best solution would be to have a fully extensible back tester that can be customized to fit your strategy. However the only way to do that would be to either program one yourself, extend one from a package (R quantstrat/ Python bt) , or buy an institutional back tester. There are no retail backtesting platforms that are fully extensible to my knowledge, that would include trade station, TOS, ninja trader, multi charts. I have gotten multi charts to about 85% fill accuracy, but it ment that I was limited to types of strategies it would do well with. Long term daily bars and using market orders. Also I had recorded the liquidity patterns in order to estimate my slippages accurately.

However here are a few tips that can help:

1) if using limit orders use 1 tick pass through for a fill, not on touch.

2) record the level 2 and determine the average bid ask spread, as well as average sizes on bid offer. This will give you better slippage and fill assumptions.

3) understand the limitations of your back tester. Try to test systems that are within the boundaries of what your tester is good at, or understand where it can be giving you over or under stated results.

4) learn how or when your live system actually runs the logic cycle. Is it at end of bar, each tick, what is the order of logic priorities.

5) Use a broker server live sim and small sized real money to compare results. Broker sim will only show gross errors as it is still a simulation. You need to use real money to find out if your slippage, latency, and executions will be in line with what you expected. Then go back and add these new adjusted numbers to your test to find more realistic result. THIS DOES NOT MEAN GO BACK AND CHANGE RULES! it only means go back and see if you were over or under estimating the results, and see what it would be like now that you have experienced real fills.

Reply With Quote
Thanked by:
  #26 (permalink)
 
vitrader's Avatar
 vitrader 
New York, New York, United States
 
Experience: Beginner
Platform: TOS
Trading: Options
Posts: 53 since Jul 2015
Thanks Given: 13
Thanks Received: 7


treydog999 View Post
Well the best solution would be to have a fully extensible back tester that can be customized to fit your strategy. However the only way to do that would be to either program one yourself, extend one from a package (R quantstrat/ Python bt) , or buy an institutional back tester. There are no retail backtesting platforms that are fully extensible to my knowledge, that would include trade station, TOS, ninja trader, multi charts. I have gotten multi charts to about 85% fill accuracy, but it ment that I was limited to types of strategies it would do well with. Long term daily bars and using market orders. Also I had recorded the liquidity patterns in order to estimate my slippages accurately.

However here are a few tips that can help:

1) if using limit orders use 1 tick pass through for a fill, not on touch.

2) record the level 2 and determine the average bid ask spread, as well as average sizes on bid offer. This will give you better slippage and fill assumptions.

3) understand the limitations of your back tester. Try to test systems that are within the boundaries of what your tester is good at, or understand where it can be giving you over or under stated results.

4) learn how or when your live system actually runs the logic cycle. Is it at end of bar, each tick, what is the order of logic priorities.

5) Use a broker server live sim and small sized real money to compare results. Broker sim will only show gross errors as it is still a simulation. You need to use real money to find out if your slippage, latency, and executions will be in line with what you expected. Then go back and add these new adjusted numbers to your test to find more realistic result. THIS DOES NOT MEAN GO BACK AND CHANGE RULES! it only means go back and see if you were over or under estimating the results, and see what it would be like now that you have experienced real fills.

That's great information. By 85% fill accuracy, how inaccurate are the remaining 15% of the orders?

I am at the point in my trading where I need to backtest and the learning curve for backtesting just as insane if not more insane than starting to learn about all of the concepts of trading.

I have created a thread: . I am looking to trade options intraday with the lowest timeframe being 1 minute bars. I also want to develop other strategies, but that's probably the most demanding of them.

Do you have any recommendations for my situation? Thank you.

Reply With Quote
  #27 (permalink)
 
treydog999's Avatar
 treydog999 
seoul, Korea
 
Experience: Intermediate
Platform: Multicharts
Broker: CQG, DTN IQfeed
Trading: YM 6E
Posts: 897 since Jul 2012
Thanks Given: 291
Thanks Received: 1,039


vitrader View Post
That's great information. By 85% fill accuracy, how inaccurate are the remaining 15% of the orders?

I am at the point in my trading where I need to backtest and the learning curve for backtesting just as insane if not more insane than starting to learn about all of the concepts of trading.

I have created a thread: . I am looking to trade options intraday with the lowest timeframe being 1 minute bars. I also want to develop other strategies, but that's probably the most demanding of them.

Do you have any recommendations for my situation? Thank you.

In regards to how the 15% of orders were. they were scattered. But about 2-4 x my estimate on slippage, i did have some really hurt though 10 x+.


I suggest you learn to make algos on any single time series like futures, stocks or FX before dealing with options based strats. They are much more complex and require a hell of a lot more software/hardware. I have a thread i started here dealing with that, basically no retail package fitted my needs. So we had to go enterprise level and build out from there.


Reply With Quote
  #28 (permalink)
 
vitrader's Avatar
 vitrader 
New York, New York, United States
 
Experience: Beginner
Platform: TOS
Trading: Options
Posts: 53 since Jul 2015
Thanks Given: 13
Thanks Received: 7


treydog999 View Post
In regards to how the 15% of orders were. they were scattered. But about 2-4 x my estimate on slippage, i did have some really hurt though 10 x+.


I suggest you learn to make algos on any single time series like futures, stocks or FX before dealing with options based strats. They are much more complex and require a hell of a lot more software/hardware. I have a thread i started here dealing with that, basically no retail package fitted my needs. So we had to go enterprise level and build out from there.


Thank you again.

What timeframe were you working with? I am curious if you were using really small timeframes. The smallest I would want to work with are 1 minute intervals.

Reply With Quote
  #29 (permalink)
 
treydog999's Avatar
 treydog999 
seoul, Korea
 
Experience: Intermediate
Platform: Multicharts
Broker: CQG, DTN IQfeed
Trading: YM 6E
Posts: 897 since Jul 2012
Thanks Given: 291
Thanks Received: 1,039


vitrader View Post
Thank you again.

What timeframe were you working with? I am curious if you were using really small timeframes. The smallest I would want to work with are 1 minute intervals.

Daily and 4 hour. I dont trust the execution for anything smaller then that on MC or tradestation ninja etc.

Reply With Quote
  #30 (permalink)
 
vitrader's Avatar
 vitrader 
New York, New York, United States
 
Experience: Beginner
Platform: TOS
Trading: Options
Posts: 53 since Jul 2015
Thanks Given: 13
Thanks Received: 7



treydog999 View Post
Daily and 4 hour. I dont trust the execution for anything smaller then that on MC or tradestation ninja etc.

Wow! And you still had 15% execution errors?! Trying to get into this space as a retail trader is such a ridiculous hurdle. I am trying to look at 1 min, 5 min, 15 min. charts.

Reply With Quote




Last Updated on May 5, 2016


© 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