Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (SBGuy), 652 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Portfolio Trading [Re: Zheka] #470497
01/17/18 15:41
01/17/18 15:41
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
For a per-trade SMA, sum up the last 20 results from the Results array, and divide by 20.

Re: Portfolio Trading [Re: jcl] #470500
01/17/18 15:50
01/17/18 15:50
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
Results array is unfortunately available only as ResultsLong/Short separately.

Or is there another way to access it for all trades of asset/algo component?

Last edited by Zheka; 01/17/18 15:51.
Re: Portfolio Trading [Re: Zheka] #470501
01/17/18 15:57
01/17/18 15:57
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Sum up ResultLong/Short and divide by 40?

Re: Portfolio Trading [Re: jcl] #470503
01/17/18 16:03
01/17/18 16:03
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
The sequence of trades must be known to sum the correct e.g. 30 trades from ResultsLong/Short.

Re: Portfolio Trading [Re: Zheka] #470507
01/17/18 16:31
01/17/18 16:31
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Then store the result of any trade in a series.

Re: Portfolio Trading [Re: jcl] #470528
01/18/18 16:34
01/18/18 16:34
Joined: Aug 2017
Posts: 102
Spain
B
Brax Offline
Member
Brax  Offline
Member
B

Joined: Aug 2017
Posts: 102
Spain
Hi Zheka.

I'd like to suggest you to try out rolling expectancy ratio rather than averages for equity curve trading:

https://www.financemagnates.com/forex/bloggers/equity-curve-trading-part-2-rolling-expectancy-ratio/

Another thing i am currently using is setting a maximum percent drawdown instead of averages. I just run a test and determine maximum possible drawdown according to Montecarlo analysis to set this.

For example, if i don't want any strategy to lose more than 10%, i set this cap and adjust lot sizes so Montecarlo drawdowns kind of adjust to this limit.

This way i get a disaster proof mechanism without interfering too much in the dynamics of the strategy, because sometimes when we go phantom trading is just when the comeback starts and we lose that opportunity to recover.

Just my two cents.

Last edited by brax; 01/18/18 16:36.
Re: Portfolio Trading [Re: Brax] #470529
01/18/18 16:51
01/18/18 16:51
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
Thanks, brax!

I am actually using both the expectancy and eq.curve trading, and take care of drawdowns through position sizing and diversification.

Page 2 of 2 1 2

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