Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 677 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
IC Markets EUR/USD unusually high spread #485255
02/09/22 13:24
02/09/22 13:24
Joined: Apr 2016
Posts: 9
_
_kp Offline OP
Newbie
_kp  Offline OP
Newbie
_

Joined: Apr 2016
Posts: 9
Hi guys,

TL;DR:
When pulling spread for EUR/USD using IC Markets MT4 Bridge, get 0.01 which is
Zorro: v.2.35, free
Broker: IC Markets, spread account
Connection: MT4 bridge

Long version:
I am trying to replicate Z1 results. My first step is to fill AssetsFix with realistic values, so I pulled all symbols available in MT4 to csv file. Next I am loading this file to Zorro and looping through symbols, to load approperiate parameters to Logs/Assets.csv.
I print some of the params while pulling:
[img]https://imgur.com/wNLSCIV[/img]
Corresponding entry in Assets.csv:
[img]https://imgur.com/eJ1WmCV[/img]

I checked in MT4, the spread was 0.0000 - 0.0001 at the time of pulling.

I found this in the manual, but not sure how it would apply to EUR/USD in this case:

Quote
If a broker API returns asset prices in cent instead of dollars, Price, Spread, and PIP are 100 times higher than for a dollar-priced asset. Adapt the asset list accordingly and make sure that historical data also contains prices in cent. You can generate cent history with a simple script that imports dollar-based price history with dataLoad, multiplies all prices with 100, then stores it with dataSave. For options or futures with cent prices, use the Centage variable.


and:
Quote

The current difference of ask and bid price, in counter currency units. Accessible with the Spread variable. Used for backtests with constant spread. If at 0, ask/bid spread must be determined by script.


All of the above raises a question: why Zorro is pulling incorrect spread value? For other assets used by Z1, symbol parameters look reasonable. But I have ~160 symbols in AssetsFix.csv hence I would like to know the root cause of this behaviour, correct it, if needed, and be able to pull symbols' parameters automatically.

Any feedback/hints are much appreciated.

Last edited by _kp; 02/10/22 10:09.
Re: IC Markets EUR/USD unusually high spread [Re: _kp] #485260
02/10/22 10:58
02/10/22 10:58
Joined: Jul 2017
Posts: 784
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 784
Most probably this is what MT4 is providing for EUR/USD . This might be a problem in Live trading since Zorro calculates Bid as Ask-Spread and long stops/short profit targets might get triggered prematurely.

For backtesting, just manually enter reasonably conservative Spread values for the top 10-20 instruments you might theoretically trade, set RollLong/Short either to 0 or to some fixed reasonable number (simulating rollover costs correctly requires a) historical swap data b) Zorro correctly applying those ( or you writing a script to do that) ).

Re: IC Markets EUR/USD unusually high spread [Re: _kp] #485261
02/10/22 11:28
02/10/22 11:28
Joined: Apr 2016
Posts: 9
_
_kp Offline OP
Newbie
_kp  Offline OP
Newbie
_

Joined: Apr 2016
Posts: 9
Hey Zheka,

Thanks for your input.

I checked and MT4 is reporting correct spread on chart and in MQL, so I would assume that this correct value is being provided to Zorro.
Considering live trading - I hope that there are some people trading live using IC Markets and they will confirm if this problem perists.

On the backtesting: that is the key issue - I do not want to intervene into data being pulled by Zorro from the broker. I know that having correct data in the assets file is crucial for producing reliable (as much as they can be) backtests, hence I would prefer to have it in line what my broker reports or at least know the root cause of the discrepancy.

RollLong/RollShort should not have as high impact on results as spread (but please correct me if I am wrong).

Re: IC Markets EUR/USD unusually high spread [Re: _kp] #485262
02/10/22 16:55
02/10/22 16:55
Joined: Jul 2017
Posts: 784
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 784
"What's being pulled from the broker" - is just a 'single-point snapshot", not really representative of 'live trading costs' - both forward (for spreads) and backward (swaps).
With backtesting, you generally would want to minimize impact of 'other variables' on performance of the 'signal'.
So, unless your strategy is very short-term or very long-term, it makes sense to "hold other things equal".

Re: IC Markets EUR/USD unusually high spread [Re: Zheka] #485263
02/10/22 17:05
02/10/22 17:05
Joined: Apr 2016
Posts: 9
_
_kp Offline OP
Newbie
_kp  Offline OP
Newbie
_

Joined: Apr 2016
Posts: 9
I pulled data few times and although other parameters change, spread for EUR/USD was 0.01 every time. This is clearly error and undermines my trust to any other value in assets file.
Spread for EUR/USD being at least 100 times higher than it should be is only one stark example. It changes AR for Z1 from ca. 100% to -10%.

The problem is not that parameters in assets file change but, that at least one of them takes ridiculous value and I do not understand why.

Re: IC Markets EUR/USD unusually high spread [Re: _kp] #485270
02/12/22 15:14
02/12/22 15:14
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
It is not a price in cents issue because only futures have prices in cents. Do you get 0.01 only for EUR/USD or for other pairs also?

Re: IC Markets EUR/USD unusually high spread [Re: Petra] #485272
02/13/22 00:29
02/13/22 00:29
Joined: Apr 2016
Posts: 9
_
_kp Offline OP
Newbie
_kp  Offline OP
Newbie
_

Joined: Apr 2016
Posts: 9
Hi Petra,
Only EUR/USD, other assets seems to have correct data.

Re: IC Markets EUR/USD unusually high spread [Re: _kp] #485276
02/15/22 10:12
02/15/22 10:12
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
That's apparently a wrong bid price on the MT4 server. Zorro does not use the spread from MT4. It gets ask and bid. The spread is the difference.

Contact your broker and inform them about the issue. Check also what spread you have in your asset list. If ask or bid are unavailable from MT4, Zorro uses the spread value from the list, so the error might also lie there.

If you get no sufficient solution from your broker, contact Zorro support. The will then send you a script for taking a snapshot from the MT4 asset parameters, to help your broker fixing the issue. It is rare, but happens occasionally that a MT4 server is wrongly configured.

Re: IC Markets EUR/USD unusually high spread [Re: _kp] #485290
02/17/22 12:37
02/17/22 12:37
Joined: Apr 2016
Posts: 9
_
_kp Offline OP
Newbie
_kp  Offline OP
Newbie
_

Joined: Apr 2016
Posts: 9
Thanks for you answer, jcl. I will probably follow you advice.

Last edited by _kp; 02/17/22 12:37.
Re: IC Markets EUR/USD unusually high spread [Re: _kp] #485984
05/21/22 21:33
05/21/22 21:33
Joined: Oct 2014
Posts: 42
DEVON
S
scotpip Offline
Newbie
scotpip  Offline
Newbie
S

Joined: Oct 2014
Posts: 42
DEVON
Did you get this sorted?

I'm planning to trade the EURO on ICM, so have a live interest in the issue!

Page 1 of 2 1 2

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