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
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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