Gamestudio Links
Zorro Links
Newest Posts
New AUM
by George. 06/05/20 21:50
Reading a TXT file on server
by Truth. 06/05/20 18:22
Oanda instruments
by Morris. 06/05/20 10:24
Indicator coding
by Grat. 06/05/20 09:29
MT4/5 - wrong M1 time
by Grat. 06/05/20 08:34
fce for close signal
by Grat. 06/05/20 06:09
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
5 registered members (Truth, TipmyPip, Dooley, Grat, Mio), 465 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Frank_Shieh, PBSeven, Hardi01, Giuseppe, AdamWu
18461 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: 872
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 872
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,225
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,225
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.


Moderated by  Petra 

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