Forum

MT5 Refresh all open charts

Hi, i try a refresh for all my open charts, i.e. have 4 EUSUSD charts open: H4, H1, M30, M15. But after running the script void OnStart () { long id= ChartNext ( 0 ); while (id>= 0 ) { if (! ChartSetSymbolPeriod (id, NULL , 0 )) Print ( __FUNCTION__ +" ChartSetSymbolPeriod

Print output from multiple indicators to one shared file

Hi, I have different indicators that run on different MT5 instances with different _Symbols. These indicators provide printouts. Is there a way to output these printouts in ONE file shared by all MT5's? Do I have to regulate the access to the file myself, e.g. via FileOpen () and Sleep () until the

how to convert MarketInfo(_Symbol,MODE_TICKVALUE) to MT5 version?

I used MarketInfo(_Symbol,MODE_TICKVALUE) in MT4, but can not found equivalent in MT5

Daily trendline at a fixed price between two candles

Hi Folks, i'm quite newbie to MQL and i try to draw a trendline in MQL4. The trendline should have a fix price, start at the time which i only have in a string (i.e. "06:05") and end at the time which i only have in a string (i.e. "10:45"). It should only be drawn for the actual date, not yesterday