.:: Meta Trader MQL4/5 - Two questions ??? ::.

 

1/. When you start Meta Trader and press F3 there is window opened with GLOBAL VARIABLES. What for are global variables and how to use them?

2/. When you start Meta Trader on current time frame for example 15 min and current chart for example EURUSD you need refresh data every bar. How to refresh current chart on current timeframe every next candle?


Please for the answers only from experienced users.


Thank you in advance.

 

1. https://docs.mql4.com/globals

2. Charts are refreshed automatically

 
stringo:

1. https://docs.mql4.com/globals

2. Charts are refreshed automatically

ad. 1 - ok thank you

ad. 2 - I need a script or function what redraw all current chart on the current timeframe every 5 minutes. Chart refreshs automatically but not at all. Some drawings are not repainted, but after change the current timeframe and back again to the same timframe these drawings are repinted all.

 

In my opinion this function WindowRedraw() does not work. What should I do in order to refresh all graphical objects on current chart and current timeframe every next candle. Maybe do you know any script what refresh data every 5 min?

Reason: