Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/24/26 01:52
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
No connection to MT4
by JeyKey II. 10/22/26 15:33
Zorro tutorial ideas?
by mistery. 10/21/26 05:28
Avoid "log\ - delete old files" message
by Martin_HH. 10/20/26 07:23
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 7,375 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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,836
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,836
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,836
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

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