Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, AndrewAMD, TipmyPip, Quad), 889 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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 (100 downloads)
AssetsOanda.csv (115 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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