Hello,
I am using assetHistory function to download the candle data especially from my broker.
Sample script for downloading:
#include <zorro.h>
const int y = 2025;
const char* a = "GER40.cash";
const int resolution = 15;
DLLFUNC void main(){
printf("Starting data download for %s for the year %d with %d minute resolution.\n", a, y, resolution);
Verbose = 3;
LookBack = 0;
StartDate = y * 10000 + 101;
EndDate = y * 10000 + 1231;
LookBackResolution = resolution;
assetHistory(a, 4);
}
I use this with MT4 bridge.
However, as we see, there is one candle shift in the downloaded data.
at the .t6 history file:
4:45 open: 23594,26at my broker:
4:30 open: 23594,26So the data is the same, but the time is shifted with one candle. Note that my borker server time is not in CET, but it's easy to spot because of the full hours. Please check the attached pictures:
- 445.png: data in .t6 file
- 430.png, 430_2.png: the actual data at the broker
Do you have any clue what I did wrong?