How Can I Backtest Intraday Data?

drtro

Active member
216 21
I can only go back so far on the 1 minute time-frame in ThinkOrSwim. How can I test back a year, or five?

Here's my 10 day 1 minute time-frame result.

 

drtro

Active member
216 21
Well that's no good. But it's trading 1 contract of /CL.

Max trade P/L: 1,750.00

Total P/L 84,690.00

Total 1013 order(s)

That's all the information TOS gives me. Wish I could see total unrealized loss to define risk, average win, average loss, etc.
 

drtro

Active member
216 21
/CL 1 Contract 10 Day 1-Minute Time-Frame
1013 Total Trades 995 Winners 18 Losses (98.2%)
+$86 Average Winner -$64 Average Loser (1.34 R:R)
Total P/L $84,690

Is all backtesting this good, or did I break the system?
 

drtro

Active member
216 21
It is rarely that simple, have you factored in spread or commission costs plus slippage ?
I've factored in $2.50 commission (to include ECN and other fees) and applied slippage of 2 ticks.
 

Forexmospherian

Legendary member
39,928 3,299
/CL 1 Contract 10 Day 1-Minute Time-Frame
1013 Total Trades 995 Winners 18 Losses (98.2%)
+$86 Average Winner -$64 Average Loser (1.34 R:R)
Total P/L $84,690

Is all backtesting this good, or did I break the system?
Hi drtro

Just out of interest - what instrument are you doing it on ?

Over 100 trades per 24 hrs means approx 4 to 5 trades an hour - fine in the busy 10 hrs of the day but very difficult in the other 14 hrs unless your targets are just a 5 to 7 pip/ point move with your stop at 75% of your target size.

You will not get that result in real forward time - not just because of the spread and slippage etc even if you have a great robot - simply because the market is the market and theory and live conditions - never quite line up ;-) - well they might if you have the resources of super computers and a very large R & D budget etc etc.

Also - pick out another 5 x 10 day periods over next 5 -6 months to see how they compare - that would be interesting

GL

Regards

F
 

drtro

Active member
216 21
Hi drtro

Just out of interest - what instrument are you doing it on ?

Over 100 trades per 24 hrs means approx 4 to 5 trades an hour - fine in the busy 10 hrs of the day but very difficult in the other 14 hrs unless your targets are just a 5 to 7 pip/ point move with your stop at 75% of your target size.

You will not get that result in real forward time - not just because of the spread and slippage etc even if you have a great robot - simply because the market is the market and theory and live conditions - never quite line up ;-) - well they might if you have the resources of super computers and a very large R & D budget etc etc.


Also - pick out another 5 x 10 day periods over next 5 -6 months to see how they compare - that would be interesting

GL

Regards

F
This is a future contract, not FX. Don't get what you mean by pip? And of my years in trading futures, I've never seen /CL have a spread larger than 2 ticks, even when I was trading at 2AM.

I'll run some tests on other instruments. Will try a FX pair and few stocks.
 

drtro

Active member
216 21
The following is 10 Year Daily of the EUR/USD 100,000 units.


And then here's 20 Day 5 Minute of the EUR/USD 100,000 units.


20 Day 5 Minute of BABA 100 shares.
 

drtro

Active member
216 21
Had my friend run it through NT with different spillage and exit timing settings, roughly the same results. Can trades be automated in TOS, or is this just a backtesting tool? Would like to know if I can trade paper money but I read online that it doesn't fill orders, it's just an indicator. Any thoughts?
 

drtro

Active member
216 21
I'm afraid the range bars may be flawed due to the lack of phantom bars. But I'm looking forward to testing the 1m and 5m timeframe.

Still don't understand the big deal about slippage and fees though.

10 days on the 1 minute time frame yielded $84,690.

$2.25 TD Ameritrade Commission + $0.02 NFA Fee + $1.45 GLOBEX Exchange Fee = $3.72/contract.

1,013 orders + 3.72 = 3768.36

84,690 - 3768.36 = 80921.64

$80,921.64 NET PnL.

Let's imply orders are executed within 5 ticks of the signal.

5 * 1,013 = 5,065.

tick = $10

5,065 * 10 = 50,650

$80,921.64 - 50,650 = $30,271.64 justified on 5 tick slippage on every trade.

Let me try to find something else that makes $30K every 2 weeks.
 

Similar threads


AdBlock Detected

We get it, advertisements are annoying!

But it's thanks to our sponsors that access to Trade2Win remains free for all. By viewing our ads you help us pay our bills, so please support the site and disable your AdBlocker.

I've Disabled AdBlock