Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
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
0 registered members (), 470 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ResultsAtBar/ResultsDaily with PIPRETURN #485987
05/23/22 11:30
05/23/22 11:30
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
Would be great if PIPRETURN also switched corresponding Results arrays to pips, as well as all 'bar-based' calculations like ReturnMean, ReturnStdDev, ReturnUlcer,etc

Additionally, please expose account currency as a variable that can be set in the script, not only in the Accounts file. (SET_CCY only works in Live).

I am trying to calculate a path-dependent Profit Factor the Timothy Masters's way - as a ratio of all 'profitable' BAR returns to all 'un-profitable'.
His research shows this to be a more robust measure of true system performance (and optimization objective).

Would be great if Zorro provided this calculation out-of-the-box and also provided a pip-return-based equity array so that one could calculate/analyze such PF conditionally instead of running optimizations.


Last edited by Zheka; 05/23/22 12:46.
Re: ResultsAtBar/ResultsDaily with PIPRETURN [Re: Zheka] #486002
05/26/22 08:19
05/26/22 08:19
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
For volume independent profit use the PipsTotal variable: https://zorro-project.com/manual/en/winloss.htm

The blue profile in the chart can be accessed with g->pEquity[N], where N is the bar number. This is undocumented, but safe to use.

Since CCY has no effect in a backtest, not being able to set it will likely save you some time.

Re: ResultsAtBar/ResultsDaily with PIPRETURN [Re: Zheka] #486007
05/26/22 11:34
05/26/22 11:34
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
jcl, you are answering questions I did not ask.

1) please let PIPRETURN switch all return-based calculations - ReturnMean, ReturnStdDev, ReturnLR,etc.+ ReturnUlcer - to pips.

2) please expose account currency as a variable that can be set in the script, not only in the Accounts file. (I am NOT asking to make brokerCommand(SET_CCY) work in Test).

3) please add path-dependent PF calculation to Zorro's arsenal of metrics.

Re: ResultsAtBar/ResultsDaily with PIPRETURN [Re: Zheka] #486051
06/04/22 12:04
06/04/22 12:04
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
PIPRETURN switches displayed equity line to pips and so I have been using g->pEquity -as you suggested - to calculate pip-based metrics.

However, g->pEquity is not filled in Train.

Please provide a way to access a pip-based equity across modes.

Thank you.


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