Gamestudio Links
Zorro Links
Newest Posts
How to install R ?
by Clifford_B. 10/16/19 18:05
Indices & metals easier to trade than FX???
by StefanCGN. 10/15/19 16:19
Can't plot daily high & low
by Zheka. 10/14/19 18:39
TWS "Market closed" fix
by jcl. 10/14/19 15:09
2xCapital slider to increase size
by jcl. 10/14/19 14:03
Imgui Lite-c Development
by txesmi. 10/13/19 09:40
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
10 registered members (Phrendo, AndrewAMD, Clifford_B, 3run, Dooley, sdh309795gaas, Superku, Shutch, kvm, 1 invisible), 625 guests, and 31 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Clifford_B, Paulius, Junker, FrankW, TedMar
18307 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Backtest with different trades than forward test #476317
02/17/19 16:38
02/17/19 16:38
Joined: Feb 2018
Posts: 12
1
1ND1G0 Offline OP
Newbie
1ND1G0  Offline OP
Newbie
1

Joined: Feb 2018
Posts: 12
I just ran a forward test on a demo account over the last week. Today, I downloaded the price files from my broker so that I had the latest set of data for testing in zorro.

When I ran a backtest over the last week's data, I would have expected this to tie up with the forward test results I had just seen. However while it was largely the same, I noticed a trade that was taken in the forward test was not generated in the backtest.

Any reason why?

Re: Backtest with different trades than forward test [Re: 1ND1G0] #476318
02/17/19 17:05
02/17/19 17:05
Joined: Sep 2003
Posts: 861
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 861
What is a forward test? Do you mean a trading session?

Re: Backtest with different trades than forward test [Re: Spirit] #476319
02/17/19 17:29
02/17/19 17:29
Joined: Feb 2018
Posts: 12
1
1ND1G0 Offline OP
Newbie
1ND1G0  Offline OP
Newbie
1

Joined: Feb 2018
Posts: 12
Having developed an algo that had generated good results when testing, I wanted to undertake an addional check before going live with real money. So, I connected to a demo account at the start of last week and just let the algo run.

This allowed me to see the actual trades that would be generated on a new set of data, and to see if the performance was similar to that generated when testing.

Re: Backtest with different trades than forward test [Re: 1ND1G0] #476328
02/18/19 07:44
02/18/19 07:44
Joined: Jul 2000
Posts: 27,029
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,029
Frankfurt
As to the why, you should normally see in the log why a trade was triggered or not, and what was different, like price, time, or an accumulative indicator.

Re: Backtest with different trades than forward test [Re: jcl] #476331
02/18/19 16:56
02/18/19 16:56
Joined: Nov 2016
Posts: 69
USA
J
jrath Offline
Junior Member
jrath  Offline
Junior Member
J

Joined: Nov 2016
Posts: 69
USA
Thought I would offer my 2 cents on possible difference between backtest and paper trading.

1. Bars vs. ticks in backtest. If you backtest off bars expect difference to paper trading off live market real time stack.

2. Limit vs Market orders. If your algo uses limit orders these can be less likely to execute in livepaper tradng than market orders.

3. Big size. The full size you are trying to trade in backtest may not be there in livepaper market.

4. In backtest your trading does not affect the market. But in live/demo your trades are part of the market and will change what is happening and what other people are doing.

All this is called slippage. So paper/demo trading does not add up to backtest most of the time.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1