Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (AndrewAMD, Quad, Grant), 8,062 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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 | 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