Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zorro Cross Margin for FX Question #486518
08/31/22 18:03
08/31/22 18:03
Joined: Apr 2021
Posts: 22
S
scatters Offline OP
Newbie
scatters  Offline OP
Newbie
S

Joined: Apr 2021
Posts: 22
Hi,

I have a question when running an FX strategy on a basket of FX pairs with an initial deposit in USD.

//while(asset(loop("EUR/USD", "AUD/CAD", "EUR/NZD", "GBP/AUD", "USD/JPY", "GBP/JPY")))

how does zorro correctly calculate the proper cross margin if I am trading in USD or my original balance is in USD?

for example

How should we adjust our asset file so the backtest is correct for trading a basket of currency, do we need to make the pip cost dynamic in the asset file, or is this already done?

Re: Zorro Cross Margin for FX Question [Re: scatters] #486539
09/03/22 13:25
09/03/22 13:25
Joined: Apr 2008
Posts: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
Austria
Margin is always in account currency. Not in counter currency.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1