Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,400 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 787
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 787
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: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
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: 787
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 787
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: 787
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 787
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 | 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