Posted By: Zheka
2 Broker setup - 10/03/19 15:48
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.
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.