Gamestudio Links
Zorro Links
Newest Posts
Price of entry with OrderDelay
by Zheka. 10/18/21 23:50
Easiest way to get 1m History?
by Grant. 10/18/21 22:31
Lapsa's very own thread
by Lapsa. 10/18/21 21:09
Is it possible to find robust systems?
by Mariano. 10/18/21 20:59
Orders not found
by dpn. 10/18/21 18:09
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/18/21 13:49
What are you working on?
by rayp. 10/17/21 12:01
AUM Magazine
Latest Screens
Tactics of World War I
Hecknex World
Scheherazade's Journey
Paradox Vector
Who's Online Now
8 registered members (Grant, Mariano, AndrewAMD, Rtttt, Quad, Dooley, Zheka, RealSerious3D), 423 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mariano, KoenC, Cuttyflame, Chiller, Avedon
18694 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: 39
DEVON
S
scotpip Offline OP
Newbie
scotpip  Offline OP
Newbie
S

Joined: Oct 2014
Posts: 39
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: 891
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 891
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: 39
DEVON
S
scotpip Offline OP
Newbie
scotpip  Offline OP
Newbie
S

Joined: Oct 2014
Posts: 39
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,641
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,641
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: 39
DEVON
S
scotpip Offline OP
Newbie
scotpip  Offline OP
Newbie
S

Joined: Oct 2014
Posts: 39
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