Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
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
4 registered members (flink, AndrewAMD, TipmyPip, 1 invisible), 667 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Rolls simulation close to reality #484047
09/01/21 18:04
09/01/21 18:04
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
It would be very nice to have position rolling costs calculated close to real life.

The "charging time" is known - it is 1700ET, with 3x charge on Wed.

Current 12-hour charge is too arbitrary and not useful in tuning short-term strategies.

Thank you.

Re: Rolls simulation close to reality [Re: Zheka] #484051
09/02/21 09:11
09/02/21 09:11
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Already possible. First find out the swap or roll method used by your broker, then calculate the current value and update the TradeRoll variable in a TMF or trade loop.

Re: Rolls simulation close to reality [Re: Zheka] #484053
09/02/21 09:26
09/02/21 09:26
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
The problem is not with exact amounts.

The problem is identifying which trades will be subjected to rolling costs.

Zorro currently applies rolls to trades longer than 12-hours, - and that's what I suggest to improve.

I suggest to implement a "close-to-reality" mechanism, where rolls are charged on trades open at 17:00ET, and 3x on Wed (which is the industry norm), - regardless of their duration and as many times as needed.



Last edited by Zheka; 09/02/21 09:26.
Re: Rolls simulation close to reality [Re: Zheka] #484055
09/02/21 09:37
09/02/21 09:37
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784

Thank you for the suggestion. This would work.

Still, would be great to have it right "out-of-the-box".

Last edited by Zheka; 09/02/21 09:42.
Re: Rolls simulation close to reality [Re: Zheka] #484058
09/02/21 14:40
09/02/21 14:40
Joined: Jul 2017
Posts: 784
Z
Zheka Offline OP
User
Zheka  Offline OP
User
Z

Joined: Jul 2017
Posts: 784
1) When setting TradeRoll manually, should it be set in Account currency or Quote currency ?

Is this correct: TradeRoll+= 0.3*PIP *TradeLots*LotAmount*PIPCost ? (assuming a rollover of 0.3PIP either way)

2) When will TradeProfit reflect changes in TradeRoll? After run() i guess?

Last edited by Zheka; 09/02/21 15:06.

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