MT5 build 19xx, CustomTicksAdd function alsway return 5310 error

 
Since MT5 build 19xx, CustomTicksAdd function alsway return 5310 error.

Please help me to solve it.
MqlTick last_tick[];
ArrayResize(last_tick, 1);

last_tick[0].flags = TICK_FLAG_LAST;

last_tick[0].ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
last_tick[0].bid = SymbolInfoDouble(_Symbol, SYMBOL_BID);
last_tick[0].last = SymbolInfoDouble(_Symbol, SYMBOL_LAST);

last_tick[0].time = TimeCurrent();
last_tick[0].time_msc = GetTickCount();

last_tick[0].volume = 1;

int result_code = CustomTicksAdd(_Symbol + ".my", last_tick);
int error_code = GetLastError();
printf("[%s] result code: %d, error code: %d, ticks: %d", _Symbol + ".my", result_code, error_code, ArraySize(last_tick));


 
Xiangdong Guo:
Since MT5 build 19xx, CustomTicksAdd function alsway return 5310 error.

Please help me to solve it.


2018.12.11 19:31:31.077    293961    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2018.12.11 19:31:31.175    293961    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2018.12.11 19:31:31.397    293961    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2018.12.11 19:31:33.888    293961    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2018.12.11 19:31:33.993    293961    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2018.12.11 19:31:37.391    293961    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2018.12.11 19:31:38.383    293961    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2018.12.11 19:31:39.792    293961    [GBPUSD.my] result code: 1, error code: 0, ticks: 1

 
Alain Verleyen:
2018.12.11 19:31:31.077    293961    [GBPUSD.my] result code: 1, error code: 0, ticks: 1

Thanks for your reply.

Could you give me your MT5 Build# ?

 
Xiangdong Guo:

Thanks for your reply.

Could you give me your MT5 Build# ?

It was 1959. But 1960 is just published. Pay attention that's beta versions.
 

Since MT5 v5 build 3624 always getting  5310 error on CustomTicksAdd. Was working fine previously. Please resolve the issue in the build. 

Thanks,

Anubhav

 
anubhavmeena #:

Since MT5 v5 build 3624 always getting  5310 error on CustomTicksAdd. Was working fine previously. Please resolve the issue in the build. 

Thanks,

Anubhav

Can't reproduce it.

Same code as above :

2023.03.13 15:04:21.742    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:22.067    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:22.150    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:22.277    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:22.558    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:22.682    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:23.557    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:23.710    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:23.761    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:23.954    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:24.117    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:24.161    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:24.730    [GBPUSD.my] result code: 1, error code: 0, ticks: 1
2023.03.13 15:04:24.929    [GBPUSD.my] result code: 1, error code: 0, ticks: 1

 
Anyway to remove the auto update and shift back to the previous build?