Gamestudio Links
Zorro Links
Newest Posts
Accessing All Historical Price Data
by JohnJits. 10/22/19 22:37
file_write var array ?
by laz. 10/22/19 16:00
SAV_STATS
by MatPed. 10/22/19 13:57
Instrument Price Zorro Chart
by jcl. 10/22/19 10:39
Calculating with price series
by AndrewAMD. 10/21/19 14:31
Error E355: Startup failure
by Dooley. 10/21/19 06:47
Today real live account blown - my experience
by Clifford_B. 10/19/19 17:09
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
4 registered members (JohnJits, AndrewAMD, Clifford_B, 1 invisible), 627 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
VillageTalkies, line7, Shutch, Clifford_B, Paulius
18310 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 4
Page 4 of 4 1 2 3 4
Re: Dual Momentum Algorithm - The way Zorro would have done it [Re: jmlocatelli] #469599
11/24/17 04:21
11/24/17 04:21
Joined: Sep 2017
Posts: 235
H
Hredot Offline OP
Member
Hredot  Offline OP
Member
H

Joined: Sep 2017
Posts: 235
Great question jmlocatelli!
As is, the code assigns an equal share of funds to each asset bought.
You have the option to use assetWeight[assetSorted[i]]/totalSlope instead of just dividing by enterNum to calculate the Lot amount.
That would assign funds to each asset bought proportional to its momentum value in comparison with other bought assets.

Last edited by Hredot; 11/24/17 04:21.
Re: Dual Momentum Algorithm - The way Zorro would have done it [Re: Hredot] #477702
07/22/19 21:23
07/22/19 21:23
Joined: Mar 2019
Posts: 8
D
danatrader Offline
Newbie
danatrader  Offline
Newbie
D

Joined: Mar 2019
Posts: 8
// Note: The following is optimized for 2x leveraging!
Lots=(Capital+WinTotal-LossTotal)*Leverage/(4*enterNum*price()*LotAmount);

How would you optimize it for 5 times leverage?

Page 4 of 4 1 2 3 4

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