Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
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
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (sleakz, AndrewAMD), 684 guests, and 3 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
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,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
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.

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

Joined: Jan 2016
Posts: 122
Originally Posted By: tradingest
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?


Some brokers don't actually have tick data, even if they use MT4. When Zorro asks for it, they give you M1, which they do have.

Originally Posted By: Sphin
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.


I noticed that too!

My suspicion is that FIX would have to require code changes for certain brokers and giving away source is hard to control. Alternatively, they'd already built a FIX plugin for a client and weren't sure if it should be released or thought they'd build one for a client but the client changed their mind.

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