Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by dr_panther. 05/18/24 11:01
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
2 registered members (7th_zorro, dr_panther), 724 guests, and 3 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
AssetList - Download Script #465672
05/09/17 09:26
05/09/17 09:26
Joined: Mar 2017
Posts: 65
G
Ger1 Offline OP
Junior Member
Ger1  Offline OP
Junior Member
G

Joined: Mar 2017
Posts: 65
Hi,

can anyone shed some light on how Zorro determines asset parameters from the broker interface?

For example, Oanda has a leverage of 50:1, however when updating with the download script I get leverage values of around 200:1 for most currencies, see attached file.
The same issue happens when connecting with FXCM. The leverage should be 400:1. The values are closer to the actual ones but still not exact.

I know from the manual that Leverage is ignored in case the MarginCost is nonzero (as is the case here). However, when conerting MarginCost to Leverage (MarginCost = Asset price / Leverage * PipCost / PIP) I still do not get the actual Leverage.

Thanks!

Attached Files
AssetsFix.csv (103 downloads)
AssetsOanda.csv (118 downloads)
Last edited by Ger1; 05/09/17 09:28.
Re: AssetList - Download Script [Re: Ger1] #465676
05/09/17 11:48
05/09/17 11:48
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
From what I see, the leverage looks ok in your files, but for instance the commission is not ok - Oanda has no commission. If you think the leverage is wrong, please check with Oanda support.

The broker API does not deliver all parameters. If a parameter is not available, it is taken from the current asset list. That happened with the commissions when you download data from Oanda. So set them to zero before using that file. The new Oanda API will also not provide rollover, so you must enter it manually in the Assets.csv after downloading the asset data.


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