Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by rayp. 11/20/26 18:10
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (1 invisible), 54,085 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rht, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 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,839
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,839
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: 604
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 604
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,839
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,839
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