Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Quad, TipmyPip, degenerate_762, AndrewAMD, Nymphodora), 997 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
MT4 tick data accuracy #472506
05/02/18 07:53
05/02/18 07:53
Joined: Jan 2016
Posts: 122
V
Veratyr Offline OP
Member
Veratyr  Offline OP
Member
V

Joined: Jan 2016
Posts: 122
I'm a Zorro S subscriber and I've been looking into broker arbitrage.

I downloaded tick data using the download script from 4 brokers (B, C, D, E) and 3 pairs (EURUSD, GBPUSD, USDJPY) and then backtested all combinations.

All combinations were profitable and made tens of trades a day.

I then filled a couple of small accounts and had the script run live. In 24 hours not a single trade has been made. I cleared the data, downloaded it again and backtested it again and it shows many trades being made.

My conclusion is that the MT4 tick data must not be accurate. Is there anything I can do about this (like have Zorro record it live)?

Re: MT4 tick data accuracy [Re: Veratyr] #472507
05/02/18 08:59
05/02/18 08:59
Joined: Jan 2016
Posts: 122
V
Veratyr Offline OP
Member
Veratyr  Offline OP
Member
V

Joined: Jan 2016
Posts: 122
Just remembered this is a beta feature and I should probably keep it in the beta thread...

Re: MT4 tick data accuracy [Re: Veratyr] #472525
05/02/18 17:06
05/02/18 17:06
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Quote:
All combinations were profitable and made tens of trades a day.

I made similar experiences with test runs, esp. if using static spreads and commissions but using spread=marketVal() and recorded ticks or
downloaded tick prices (assetHistory) from FXCM result in realistic appearing scenarios (I didn't try assetHistory via MT4 so far because its history seems to be very short). But nevertheless the differences to live trading still persist.

Quote:
I then filled a couple of small accounts and had the script run live.

I think this is the only way to get realistic results, esp. because the important time component (both signals generating and execution speed) of this strategy can hardly be simulated even if the tick material is valid and fine. And I fear that at last Zorro wasn't built to simulate strategies that are at least anywhere on the border to high frequency trading.

Re: MT4 tick data accuracy [Re: Sphin] #472541
05/03/18 20:26
05/03/18 20:26
Joined: Jan 2016
Posts: 122
V
Veratyr Offline OP
Member
Veratyr  Offline OP
Member
V

Joined: Jan 2016
Posts: 122
Originally Posted By: Sphin

I think this is the only way to get realistic results, esp. because the important time component (both signals generating and execution speed) of this strategy can hardly be simulated even if the tick material is valid and fine. And I fear that at last Zorro wasn't built to simulate strategies that are at least anywhere on the border to high frequency trading.


I think the biggest problem right now is broker support. MT4 just isn't suited for arbitrage with the execution speeds you see from it.

To get even closer to realism, I ended up writing a Python script that connects to cTrader's FIX API and records arbitrage opportunities. After you account for spread and commission (which eat into potential profits a lot), arbitrage opportunities are very fleeting.

Re: MT4 tick data accuracy [Re: Veratyr] #472551
05/04/18 16:33
05/04/18 16:33
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Trading broker arbitrage via FIX API is also my imagination and AndrewAMD already announced to write a plugin, as his time permits.
Your Python solution is actually recording only or also able to trade?

Re: MT4 tick data accuracy [Re: Sphin] #472553
05/04/18 17:52
05/04/18 17:52
Joined: Jan 2016
Posts: 122
V
Veratyr Offline OP
Member
Veratyr  Offline OP
Member
V

Joined: Jan 2016
Posts: 122
I'm going to try writing a plugin too I think.

I've only implemented recording but there's no reason it can't trade too.

Re: MT4 tick data accuracy [Re: Veratyr] #472554
05/04/18 18:01
05/04/18 18:01
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
Hoo boy, people are counting on me to do this stuff? wink

It's a little tricky, it might become a premium product of mine.

I wouldn't code broker arbitrage in Python - C/C++/Lite-C should be preferred any day.

Re: MT4 tick data accuracy [Re: AndrewAMD] #472561
05/04/18 22:18
05/04/18 22:18
Joined: Jan 2016
Posts: 122
V
Veratyr Offline OP
Member
Veratyr  Offline OP
Member
V

Joined: Jan 2016
Posts: 122
The Python was just because it was easy and I wanted to see if it even worked. Turns out it might. I saw some pretty high differentials throughout the day.

I've started work on C++ now and I've got quotes coming in. I'll see if I can get it into Zorro now. It's looking surprisingly achievable.

I really wish Zorro just gave me a damn callback for data though, this incessant polling is silly when I'm getting packets pushed to me over a network.

Re: MT4 tick data accuracy [Re: Veratyr] #472564
05/05/18 10:23
05/05/18 10:23
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline
Member
tradingest  Offline
Member

Joined: Feb 2018
Posts: 236
Italy
I have Zorro S but from script Download I can't dowload tick.
The file .t1 has generated but in the ZHistoryEditor I see data each minute

why?

Re: MT4 tick data accuracy [Re: Veratyr] #472565
05/05/18 10:27
05/05/18 10:27
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline
User
Sphin  Offline
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Sounds hopeful promising! Nevertheless I would like to know why development wasn't pursued further on because from Zorro version 1.40 to ~1.5x 'FIX API template (for Zorro S)' was part of 'Planned for future Zorro versions' from where it vanished later silently.

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