Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, howardR, sleakz), 674 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Simulate script - bugs? #449717
03/30/15 04:38
03/30/15 04:38
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Hi jcl,

There appear to be a couple of bugs or my misunderstandings happening with the Simulate script. Either way, I could use your help! laugh

1) I was trying to reconcile using my trades.csv in Simulate with the account's values. The only way I've been able to achieve this is by replacing "ThisTrade->fProfit = tProfit;" with "ThisTrade->fResult = tProfit;". Should it be fResult? If fProfit is correct, how do I reconcile? The calculated return is also very different between the two...

2) The plot produced by Simulate when clicking Result is missing the last few bars on the right side - almost as if the right Equity scale is overwriting those last bars. I've tried all the parameters I can see in the manual but none of them have caused these bars to appear. How can I get them plotted?

Thanks.

Re: Simulate script - bugs? [Re: DdlV] #449741
03/30/15 17:07
03/30/15 17:07
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
As to the second question, check if the price history covers the dates until the end of the simulated trades. Otherwise the plot ends with the end of the history. I can't answer the first question immediately, but I'll look into it.

Re: Simulate script - bugs? [Re: jcl] #449749
03/30/15 18:51
03/30/15 18:51
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline OP
Serious User
DdlV  Offline OP
Serious User
D

Joined: Jun 2013
Posts: 1,609
Thanks jcl.

Yes, the price history was not complete.

It appears that the trades in trades.csv that came after the end of the price history were ignored since the figures changed when the complete price history was in place. Can you confirm trades after the end of the price history are ignored, distorting the results? If so, is there an easy way to fix this? Or at least modify Simulate to print a message advising of the problem?

Thanks.


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