Gamestudio Links
Zorro Links
Newest Posts
Can't plot daily high & low
by Zheka. 10/14/19 18:39
TWS "Market closed" fix
by jcl. 10/14/19 15:09
2xCapital slider to increase size
by jcl. 10/14/19 14:03
Imgui Lite-c Development
by txesmi. 10/13/19 09:40
A9
by Dooley. 10/11/19 18:53
Need Help Finding Cause of Crash
by Dooley. 10/11/19 18:51
What algorithm is used for BALANCED?
by JamesHH. 10/11/19 17:32
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
7 registered members (exile, Dooley, Dalla, kvm, sdh309795gaas, jibanes, Zheka), 661 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
FrankW, TedMar, raimucuk, vivaldi2, filip
18304 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2 Broker setup #478327
10/03/19 15:48
10/03/19 15:48
Joined: Jul 2017
Posts: 407
Z
Zheka Online OP
Senior Member
Zheka  Online OP
Senior Member
Z

Joined: Jul 2017
Posts: 407
I am using 2 brokers to trade (1- for prices, another - for execution).

The Symbol string in the Assets file for e.g. EUR/JPY is MT4_demo:EURJPY!Darwinex_d5:EURJPY!Darwinex_d5:EURJPY.

Both broker times are standard MT4/5 times, i.e. UTC+3.

A simple test script printing bar open/close prices gives the picture below.

- current brokers' time is 18:17 .

- Zorro correctly identifies UTC time offset of brokerA as -3 to UTC, and reports/uses current UTC time as 15:17

- however, Zorro does not apply this offset when requesting prices from Darwinex, and requests LookBack prices from 15:17 broker time - see EA log and comparison of MT5 database and Zorro log prices


I have verified that Darwinex correctly reports its time, as running the same script on Darwinex only all historical price requests are made/timestamped correctly.

Attached Files
Re: 2 Broker setup [Re: Zheka] #478354
10/08/19 22:29
10/08/19 22:29
Joined: Jul 2017
Posts: 407
Z
Zheka Online OP
Senior Member
Zheka  Online OP
Senior Member
Z

Joined: Jul 2017
Posts: 407
JCL,

the bug fix for this issue provided in v 2.18.8 does not work: historical prices in Live started to be requested from the "SymbolTrade" broker ( MT4_demo in the example above).

Re: 2 Broker setup [Re: Zheka] #478359
10/09/19 08:14
10/09/19 08:14
Joined: Jul 2000
Posts: 27,029
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,029
Frankfurt
As to my knowledge, the MT4 plugin corrects the time zone with the "BrokerTime" function. This function is only called for the main broker. That's why additional MT4 brokers got no time zone shift for their historical data. This has nothing to do with "SymbolTrade".

The BrokerTime function is now always called when historical data is requested from MT4, which is supposed to enforce the time zone shift. If you have still a problem, or some other problem, please contact Support with details.

Re: 2 Broker setup [Re: Zheka] #478361
10/09/19 10:18
10/09/19 10:18
Joined: Jul 2017
Posts: 407
Z
Zheka Online OP
Senior Member
Zheka  Online OP
Senior Member
Z

Joined: Jul 2017
Posts: 407
And after the change in 2.18.8, historical data in Live are now only requested from the main broker.

Re: 2 Broker setup [Re: Zheka] #478362
10/09/19 12:42
10/09/19 12:42
Joined: Jul 2017
Posts: 407
Z
Zheka Online OP
Senior Member
Zheka  Online OP
Senior Member
Z

Joined: Jul 2017
Posts: 407
Support confirmed that the bug fix broke the basic functionality it was supposed to mend.

It would be great if changes are tested before release.

Last edited by Zheka; 10/09/19 13:00.
Re: 2 Broker setup [Re: Zheka] #478365
10/09/19 13:14
10/09/19 13:14
Joined: Feb 2017
Posts: 769
Chicago
AndrewAMD Online
User
AndrewAMD  Online
User

Joined: Feb 2017
Posts: 769
Chicago
Are you not a beta tester? grin

Re: 2 Broker setup [Re: Zheka] #478366
10/09/19 13:52
10/09/19 13:52
Joined: Jul 2017
Posts: 407
Z
Zheka Online OP
Senior Member
Zheka  Online OP
Senior Member
Z

Joined: Jul 2017
Posts: 407
Wish there were also alpha testers.


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