Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, Ayumi, AndrewAMD, Quad), 1,014 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
system variables for strategy performance #470448
01/15/18 10:28
01/15/18 10:28
Joined: Jan 2017
Posts: 64
J
Jeff1228 Offline OP
Junior Member
Jeff1228  Offline OP
Junior Member
J

Joined: Jan 2017
Posts: 64
Hi there,

I am backtesting my strategy, need to write “CARG, Profit Factor(PPR), Sharpe Ratio, Ulcer index, Max Drawdown and Max Adverse Excursion”, 7 variables into my report. I found MAE and DrawDownMax are system variables which I can use directly, how about others? If they are, pls tell me what variables are for them? If not, could you please provide some code snippets?

Thank you

Jeff

Re: system variables for strategy performance [Re: Jeff1228] #470449
01/15/18 11:46
01/15/18 11:46
Joined: Feb 2017
Posts: 369
D
Dalla Offline
Senior Member
Dalla  Offline
Senior Member
D

Joined: Feb 2017
Posts: 369
I guess you want to create some custom report? Because all the metrics you mention are already in the default performance report.

If so, strategy parameters can be found here:
http://zorro-trader.com/manual/en/statistics.htm

Using the for(all_trades) construct (http://zorro-trader.com/manual/en/fortrades.htm) and the Trade parameters (http://zorro-trader.com/manual/en/winloss.htm) you can calculate pretty much any other metric you want.

Re: system variables for strategy performance [Re: Dalla] #470455
01/16/18 05:27
01/16/18 05:27
Joined: Jan 2017
Posts: 64
J
Jeff1228 Offline OP
Junior Member
Jeff1228  Offline OP
Junior Member
J

Joined: Jan 2017
Posts: 64
Thank you very much for your reply. Yes I want to create a customized report, I noticed that all my variables are in the system generated report, can I simply parse the report to get those numbers? If I can, how? Any snippet?

Cheers

Last edited by Jeff1228; 01/16/18 05:27.
Re: system variables for strategy performance [Re: Jeff1228] #470461
01/16/18 11:43
01/16/18 11:43
Joined: Aug 2017
Posts: 102
Spain
B
Brax Offline
Member
Brax  Offline
Member
B

Joined: Aug 2017
Posts: 102
Spain
You don't need to parse the report, just use the trade statistics and strategy statistics directly:

http://zorro-trader.com/manual/en/fortrades.htm
http://www.zorro-trader.com/manual/en/winloss.htm
http://www.zorro-trader.com/manual/en/statistics.htm

If you want to create additional items, use print(TO_REPORT, ...) inside evaluate function:

http://www.zorro-trader.com/manual/en/printf.htm
http://www.zorro-trader.com/manual/en/evaluate.htm


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