Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (AndrewAMD, fogman, Grant, juanex), 972 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Using Chart Viewer with Old Backtests? #484328
10/09/21 18:22
10/09/21 18:22
Joined: Oct 2014
Posts: 42
DEVON
S
scotpip Offline OP
Newbie
scotpip  Offline OP
Newbie
S

Joined: Oct 2014
Posts: 42
DEVON
Hi

Is there any way use the Chart Viewer to view the logged results of an old backtest without having to re-run the whole test and click the [Result] button?

If not, is there some way I could code this up?

Apologies if I'm missing anything obvious....

Re: Using Chart Viewer with Old Backtests? [Re: scotpip] #484333
10/10/21 09:41
10/10/21 09:41
Joined: Sep 2003
Posts: 928
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 928
The equity curve of the old backtest is stored in a csv file, I think with a small script that loads the equity at any bar you can plot that curve again.

Re: Using Chart Viewer with Old Backtests? [Re: scotpip] #484336
10/10/21 12:44
10/10/21 12:44
Joined: Oct 2014
Posts: 42
DEVON
S
scotpip Offline OP
Newbie
scotpip  Offline OP
Newbie
S

Joined: Oct 2014
Posts: 42
DEVON
Thanks - but what I'm really looking for is the ability to debug the trades on the chart.

I find that a very helpful exercise when trying to develop filters.

Re: Using Chart Viewer with Old Backtests? [Re: scotpip] #484342
10/11/21 09:48
10/11/21 09:48
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
The trades are saved to testrades.csv. You can load it in a dataset, then fill a TRADE struct with any record and enter it with the enterTrade() function. That should work, but that script would be a bit bigger, and AFAIK no one has written such a script yet.

Re: Using Chart Viewer with Old Backtests? [Re: jcl] #484346
10/11/21 14:49
10/11/21 14:49
Joined: Oct 2014
Posts: 42
DEVON
S
scotpip Offline OP
Newbie
scotpip  Offline OP
Newbie
S

Joined: Oct 2014
Posts: 42
DEVON
Thanks - I'll give it a go.

Perhaps you could consider the ability to save and replay results as a feature?

For slower tests, this would be useful, I think.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1