MqlTicks from market watch not getting written into tick database.

 

Hi, 


Since updating MT5 on March 12th incoming custom symbol ticks from an external source using a mql5 script (CustomTicksAdd function) are getting updated on MarketWatch window but the current bar is not getting updated on the chart window as per the incoming ticks. Although the bid/ask line is moving but the candle isn't updating. Also the new ticks are not reflected in the tick history window for the symbol. Please help!!

                     if(lenOfFirstPacket==32){
                        ArrayCopy(timestamp,quote,0,28,4);
                        ArrayReverse(timestamp);
                        int time=0;
                        deserialize(timestamp,time,0);
                        datetime mqlTime = (datetime) (time+19800);
                        //PrintFormat("TS:"+mqlTime);
                        string symbol_name = getSymbolFromToken(instrument_token);
                        MqlTick last_tick[1];
                        last_tick[0].bid = finalLTP;
                        last_tick[0].ask = finalLTP;
                        last_tick[0].last = finalLTP;
                        last_tick[0].volume = 0;
                        last_tick[0].volume_real = 0;
                        last_tick[0].time = mqlTime;
                        int n = CustomTicksAdd(symbol_name+".ZD",last_tick);
                     }

Video link demonstrating the problem: https://youtu.be/CiOiN14OM0M

Regards,

Anubhav

Creating and testing custom symbols in MetaTrader 5
Creating and testing custom symbols in MetaTrader 5
  • www.mql5.com
Creating custom symbols pushes the boundaries in the development of trading systems and financial market analysis. Now traders are able to plot charts and test trading strategies on an unlimited number of financial instruments.
 
anubhavmeena:

Hi, 


Since updating MT5 on March 12th incoming custom symbol ticks from an external source using a mql5 script (CustomTicksAdd function) are getting updated on MarketWatch window but the current bar is not getting updated on the chart window as per the incoming ticks. Although the bid/ask line is moving but the candle isn't updating. Also the new ticks are not reflected in the tick history window for the symbol. Please help!!

Video link demonstrating the problem: https://youtu.be/CiOiN14OM0M

Regards,

Anubhav

What build from "March 12th" ? The last official build is 3621 from March, 10th. You should not use Beta version if you don't want to be a betatester.

Anyway, I just tested CustomTicksAdd() and there is no issue (Build 3630).

Most probably your MT5 is overloaded, try to reduce the load by using less charts and less indicators/EA to identify the issue.

 
Alain Verleyen #:

I don't use beta versions and it seems that each broker uses a different version.

build

build2

 
Miguel Angel Vico Alba #:I don't use beta versions and it seems that each broker uses a different version.

Yes, brokers do occasionality push out a specific beta build when it is for fixing a critical bug specific to their situation.

 
Miguel Angel Vico Alba #:

I don't use beta versions and it seems that each broker uses a different version.


Ok. But it's still not March 12th 

So what's the last build release now ?

 
Alain Verleyen #So what's the last build release now ?

That is a very good question. There doesn't seem to be a consensus on that.

Officially 3620, but as I showed above it seems that each broker uses different versions as release.

If it is as Fernando says and brokers are free to use beta versions as release, it seems to me a serious mistake. In case of a serious bug, MQ should release a release version and not let each broker decide for you which bugs they fix and which possibly "new" ones you have to deal with.

 
Alain Verleyen #:

What build from "March 12th" ? The last official build is 3621 from March, 10th. You should not use Beta version if you don't want to be a betatester.

Anyway, I just tested CustomTicksAdd() and there is no issue (Build 3630).

Most probably your MT5 is overloaded, try to reduce the load by using less charts and less indicators/EA to identify the issue.


If that's the case, why aren't the ticks getting written to the database? The ticks history for the symbol is empty. 

Tick history

 
Miguel Angel Vico Alba #:

That is a very good question. There doesn't seem to be a consensus on that.

Officially 3620, but as I showed above it seems that each broker uses different versions as release.

If it is as Fernando says and brokers are free to use beta versions as release, it seems to me a serious mistake. In case of a serious bug, MQ should release a release version and not let each broker decide for you which bugs they fix and which possibly "new" ones you have to deal with.

We have not an exact idea how it works behind the scene. I would not call build 3621/3622 betas, they are probably just quickly fixing some issues with the official 3620.

 
anubhavmeena #:


If that's the case, why aren't the ticks getting written to the database? The ticks history for the symbol is empty. 


Please answer my question about the build if you need help.

I can't answer your questions without knowing your setup and what you are doing exactly.

 
Alain Verleyen #: So what's the last build release now ?
MetaTrader 5 Platform update build 3640: Web Terminal in 11 languages 😁
Reason: