Download MetaTrader 5

how to "right click refresh" on mt4 codes.

To add comments, please log in or register
Do you keep a blog? Place a link to MQL5.community there and make money!
Jonatslim
424
Jonatslim 2016.02.26 10:05 

i took a screenshot just before the EA took the trade and all the candles were present.

after a few hours, the same candles disappeared! it caused a gap on my chart for about 14 hours.

after reporting this issue to the broker, they said that i should  "right click refresh" my charts and the candles will appear. (some technical talk about there were "no quote"). all the candles are now present on the chart.

 

now, i want to get this on a code. how to "right click refresh" on mt4 codes? i tried WindowRefersh() , RefreshRAte() and ChartRedraw() all didn't work. 

Appreciate your help on this one. 

Alain Verleyen
Moderator
30719
Alain Verleyen 2016.02.26 10:24  
Change your broker it's absolutely not normal situation if a broker changes history prices.
Jonatslim
424
Jonatslim 2016.02.26 10:41  

yeah. i agree that it is not normal but i like someting on my code to prevent this from happening again in teh future. maybe a "right-click - refresh" codes to clear things up.  

Alain Verleyen
Moderator
30719
Alain Verleyen 2016.02.26 11:04  
Jonatslim:

yeah. i agree that it is not normal but i like someting on my code to prevent this from happening again in teh future. maybe a "right-click - refresh" codes to clear things up.  

Exactly, change your broker

The question has been asked a looot of times. You need to use WINAPI call.

Refresh the chart window - MQL4 forum
Refresh the chart window - MQL4 forum
  • www.mql5.com
Refresh the chart window - MQL4 forum
To add comments, please log in or register