Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AbrahamR, 7th_zorro, dr_panther, 1 invisible), 702 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to simulate market maker credit? #486067
06/06/22 21:27
06/06/22 21:27
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline OP
Member
MegaTanker  Offline OP
Member
M

Joined: Aug 2021
Posts: 101
Let's say the exchange grants you 0.0005% of the trade volume as credit for every maker order that get's taken. Can Zorro simulate this? It's technically a negative commission but Zorro interprets negative values for the Commission variable as a percentage based commission, not a credit.

Re: How to simulate market maker credit? [Re: MegaTanker] #486068
06/06/22 21:32
06/06/22 21:32
Joined: Feb 2017
Posts: 1,729
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,729
Chicago
Just use enterTrade.

Re: How to simulate market maker credit? [Re: MegaTanker] #486071
06/07/22 07:26
06/07/22 07:26
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
0.0005% is probably irrelevant for backtests. If you want still simulate it, add it to the Balance variable after entering the trade.

Re: How to simulate market maker credit? [Re: MegaTanker] #486074
06/07/22 18:57
06/07/22 18:57
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline OP
Member
MegaTanker  Offline OP
Member
M

Joined: Aug 2021
Posts: 101
I realized you can set a negative Spread which will be added to the Balance instead of subtracted. Probably a little more intuitive than manually setting the Balance but similar.

Re: How to simulate market maker credit? [Re: MegaTanker] #486087
06/08/22 13:49
06/08/22 13:49
Joined: Feb 2017
Posts: 1,729
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,729
Chicago
I actually wrote about this on my blog:
https://www.vitaltrades.com/2020/07/14/adding-exact-fee-and-credit-calculations-to-zorro/

So basically, you can set Commission to 0 for your trading asset, and then use a dummy asset to add complex commissions calculations in the form of standalone trades with profits/losses.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1