NexusFi: Find Your Edge


Home Menu

 





How to analyze backtested data?


Discussion in Currencies

Updated
      Top Posters
    1. looks_one anituchka with 3 posts (1 thanks)
    2. looks_two vegasfoster with 2 posts (2 thanks)
    3. looks_3 Koepisch with 1 posts (3 thanks)
    4. looks_4 angpao with 1 posts (0 thanks)
    1. trending_up 2,773 views
    2. thumb_up 6 thanks given
    3. group 6 followers
    1. forum 8 posts
    2. attach_file 1 attachments




 
Search this Thread

How to analyze backtested data?

  #1 (permalink)
 
anituchka's Avatar
 anituchka 
Vancouver, Canada
 
Experience: Intermediate
Platform: Ninja
Broker: IB and Scotia iTrade
Trading: futures, US stocks
Posts: 40 since Jun 2011
Thanks Given: 78
Thanks Received: 40

Hello, I have developed an automated trading strategy that has shown good results in backtesting. I am trying to
do some additional analysis and possibly try to find any correlation but am a bit stuck for ideas.

I have the following data.

Average true range (in ticks)
Opening range size (in ticks)
Daily profit (in ticks)

Does anyone know how I can analyze the data? I have about 850 rows...Ideally I wanted to know if there is any correlation between average true range and opening range or opening range and profit or profit and average true range.

Any input will be appreciated.

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
ZombieSqueeze
Platforms and Indicators
Deepmoney LLM
Elite Quantitative GenAI/LLM
Better Renko Gaps
The Elite Circle
 
  #3 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844


Do you know how to use a spreadsheet? It's typically the best way to do this type of analysis, because you can quickly slice and dice without having to do a bunch of programming. If you don't have one, you can download a free one, e.g. open office. I can then help with the formulas.

Reply With Quote
Thanked by:
  #4 (permalink)
 
anituchka's Avatar
 anituchka 
Vancouver, Canada
 
Experience: Intermediate
Platform: Ninja
Broker: IB and Scotia iTrade
Trading: futures, US stocks
Posts: 40 since Jun 2011
Thanks Given: 78
Thanks Received: 40

Yes, I know how to use spreadsheets. I am just not sure how to find correlation, if there is any. For example, I have

Column A B C D
ATR opening range Profit
15-Jan-12 20 8 8
27-Feb-11 40 21 24
11-Feb-13 70 50 -24
13-May-13 58 41 -81
12-Oct-12 70 44 -5
15-Jul-11 100 59 99

I am not sure how to approach this. Maybe there is no correlation and it's all random, but i would be interesting to find out

I am attaching an excerpt from my Excel as columns don't look very neat

Attached Files
Elite Membership required to download: opening range, ATR and profit.xlsx
Started this thread Reply With Quote
  #5 (permalink)
 
anituchka's Avatar
 anituchka 
Vancouver, Canada
 
Experience: Intermediate
Platform: Ninja
Broker: IB and Scotia iTrade
Trading: futures, US stocks
Posts: 40 since Jun 2011
Thanks Given: 78
Thanks Received: 40

Yes, I know how to use spreadsheets. I am just not sure how to find correlation, if there is any. For example, I have

Column A B C D
ATR opening range Profit
15-Jan-12 20 8 8
27-Feb-11 40 21 24
11-Feb-13 70 50 -24
13-May-13 58 41 -81
12-Oct-12 70 44 -5
15-Jul-11 100 59 99

I am not sure how to approach this. Maybe there is no correlation and it's all random, but i would be interesting to find out

I am attaching an excerpt from my Excel as columns don't appear nice in my message.

Started this thread Reply With Quote
  #6 (permalink)
 Koepisch 
@ Germany
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: FDAX
Posts: 569 since Nov 2011
Thanks Given: 440
Thanks Received: 518

You can make a simple line Chart with line studies. Then you can easily see if there is some correlation. If you want it more mathematically you can use the built in functions of excel. I highly recommend the book "Statistical Analysis: Microsoft Excel 2010".

Reply With Quote
Thanked by:
  #7 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844

A couple things. You could simply sort by ATR and then average the last 50 or whatever points and graph that line. You could stratify the ATR and get the average for ATRs from 50-100, then 100-150, etc. Then you could look at the relationship of the change in ATR to the change in profit, for example if ATR doubles, does the profit double or typically increase a lesser percentage? Once in percentages you can also calculate the correlation coefficient.

Reply With Quote
Thanked by:
  #8 (permalink)
angpao
bandung indonesia
 
Posts: 14 since Sep 2013
Thanks Given: 0
Thanks Received: 3

I think that testing the backtest data is not accurate, it will give different result when we trade in real/live account.
You just need to practice in demo and start trade in real using small balance first..

Reply With Quote
  #9 (permalink)
Darwin
Regensburg, Germany
 
Posts: 9 since Oct 2013
Thanks Given: 0
Thanks Received: 3

Hey

Perhaps this might be of interest regarding the current topic: w*w.bigmiketrading.com/forex-currency-trading/29419-why-backtests-useless-eas-flawed-their-parameters-bad-discuss.html (can not yet post links, sorry)


- Darwin

Reply With Quote




Last Updated on November 7, 2013


© 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