<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — MQL5 errore in the code]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9950/" />
	<updated>2025-06-09T07:42:33Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9950/mql5-errore-in-the-code/</id>
		<entry>
			<title type="html"><![CDATA[Re: MQL5 errore in the code]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/82702/#p82702" />
			<content type="html"><![CDATA[<p>Hello Traders!</p><p>Thank you for the reports!</p><br /><p>This issue appeared in recent days. It resulted from changes in the MQL code in the latest MetaTrader update.</p><p>They changed the type of some variables without giving a deprecation warning. (Or, it was!)</p><p>I updated the MQL code of all applications to match the latest MetaTrader release.</p><p>Please reload your application and re-export the Expert Advisor.</p><p>Please report any errors or warnings you may see in the MT compiler.</p><p>Trade Safe!</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2025-06-09T07:42:33Z</updated>
			<id>https://forexsb.com/forum/post/82702/#p82702</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MQL5 errore in the code]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/82701/#p82701" />
			<content type="html"><![CDATA[<p>HI<br />I&#039;ve just run into I think the same issue. This has happened straight after this weekends MT5 update.<br />Version 5 build 5100 release date 6 June 2025<br />Now can&#039;t compile Expert Studio portfolios.<br />I&#039;ll attatch an example.</p><p>errors seen follow:-<br />&#039;Portfolio Expert EURUSD H4 (3).mq5&#039;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0<br />&#039;MQL5_TRADE_ALLOWED&#039; is deprecated, use &#039;MQL_TRADE_ALLOWED&#039; instead&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 768&nbsp; &nbsp; 34<br />&#039;lineWidth&#039; - parameter conversion not allowed&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 1128&nbsp; &nbsp; 30<br />&nbsp; &nbsp;built-in: bool TextGetSize(const string,uint&amp;,uint&amp;)&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 1128&nbsp; &nbsp; 30<br />possible use of uninitialized variable &#039;lineHeight&#039;&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 1132&nbsp; &nbsp; 36<br />possible use of uninitialized variable &#039;lineWidth&#039;&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 1131&nbsp; &nbsp; 56<br />possible use of uninitialized variable &#039;lineHeight&#039;&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 1143&nbsp; &nbsp; 52<br />&#039;lnWidth&#039; - parameter conversion not allowed&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 1147&nbsp; &nbsp; 29<br />&nbsp; &nbsp;built-in: bool TextGetSize(const string,uint&amp;,uint&amp;)&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 1147&nbsp; &nbsp; 29<br />possible use of uninitialized variable &#039;lineWidth&#039;&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 1148&nbsp; &nbsp; 20<br />possible use of uninitialized variable &#039;lnWidth&#039;&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 1148&nbsp; &nbsp; 10<br />possible use of uninitialized variable &#039;lineWidth&#039;&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 1152&nbsp; &nbsp; 37<br />possible use of uninitialized variable &#039;lineHeight&#039;&nbsp; &nbsp; Portfolio Expert EURUSD H4 (3).mq5&nbsp; &nbsp; 1154&nbsp; &nbsp; 34<br />2 errors, 8 warnings&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; 8</p><p>Hope someone can davise please.</p>]]></content>
			<author>
				<name><![CDATA[andrew_1089]]></name>
				<uri>https://forexsb.com/forum/user/10441/</uri>
			</author>
			<updated>2025-06-08T19:11:27Z</updated>
			<id>https://forexsb.com/forum/post/82701/#p82701</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MQL5 errore in the code]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/82700/#p82700" />
			<content type="html"><![CDATA[<p>&#039;BOT EA Farming AUDCAD H1 2122925492.mq5&#039;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0<br />&#039;MQL5_TRADE_ALLOWED&#039; is deprecated, use &#039;MQL_TRADE_ALLOWED&#039; instead&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 709&nbsp; &nbsp; 34<br />&#039;lineWidth&#039; - parameter conversion not allowed&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 1078&nbsp; &nbsp; 30<br />&nbsp; &nbsp;built-in: bool TextGetSize(const string,uint&amp;,uint&amp;)&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 1078&nbsp; &nbsp; 30<br />possible use of uninitialized variable &#039;lineHeight&#039;&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 1082&nbsp; &nbsp; 36<br />possible use of uninitialized variable &#039;lineWidth&#039;&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 1081&nbsp; &nbsp; 56<br />possible use of uninitialized variable &#039;lineHeight&#039;&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 1093&nbsp; &nbsp; 52<br />&#039;lnWidth&#039; - parameter conversion not allowed&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 1097&nbsp; &nbsp; 29<br />&nbsp; &nbsp;built-in: bool TextGetSize(const string,uint&amp;,uint&amp;)&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 1097&nbsp; &nbsp; 29<br />possible use of uninitialized variable &#039;lineWidth&#039;&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 1098&nbsp; &nbsp; 20<br />possible use of uninitialized variable &#039;lnWidth&#039;&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 1098&nbsp; &nbsp; 10<br />possible use of uninitialized variable &#039;lineWidth&#039;&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 1102&nbsp; &nbsp; 37<br />possible use of uninitialized variable &#039;lineHeight&#039;&nbsp; &nbsp; BOT EA Farming AUDCAD H1 2122925492.mq5&nbsp; &nbsp; 1104&nbsp; &nbsp; 34<br />2 errors, 8 warnings&nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; 8</p><p> int lineWidth, lineHeight;<br />&nbsp; &nbsp;TextGetSize(robotTagline, lineWidth, lineHeight);</p><p>&nbsp; &nbsp;if(maxRectangles == 0)<br />&nbsp; &nbsp; &nbsp; RectLabelCreate(0, &quot;Stats_background&quot;, 0, 0, 30, lineWidth,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; linesCount * lineHeight, GetChartBackColor(0));</p>]]></content>
			<author>
				<name><![CDATA[Vincenzo]]></name>
				<uri>https://forexsb.com/forum/user/14930/</uri>
			</author>
			<updated>2025-06-08T17:34:03Z</updated>
			<id>https://forexsb.com/forum/post/82700/#p82700</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MQL5 errore in the code]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/82699/#p82699" />
			<content type="html"><![CDATA[<p>Me too, but time to time it write some line that doesn’t allow the mt5 to compile it.<br />Look at these 2, same EA MT4 get attaced and MT5 not (will send them via PM)<br />Would be great to get a feedback.</p>]]></content>
			<author>
				<name><![CDATA[Vincenzo]]></name>
				<uri>https://forexsb.com/forum/user/14930/</uri>
			</author>
			<updated>2025-06-08T15:22:42Z</updated>
			<id>https://forexsb.com/forum/post/82699/#p82699</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MQL5 errore in the code]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/82698/#p82698" />
			<content type="html"><![CDATA[<p>Which lines?</p><p>I have been using Mt5 ea&#039;s for a long time without noticing this error.</p>]]></content>
			<author>
				<name><![CDATA[Blaiserboy]]></name>
				<uri>https://forexsb.com/forum/user/2491/</uri>
			</author>
			<updated>2025-06-08T12:39:55Z</updated>
			<id>https://forexsb.com/forum/post/82698/#p82698</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[MQL5 errore in the code]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/82697/#p82697" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I am getting problems when try to instal MT5 EAs, it looks like EA Studio includes some wromg Lines in the code and the MQL5 does not compile the Experts.</p><p>Any experiences?<br />BR<br />Vincenzo</p>]]></content>
			<author>
				<name><![CDATA[Vincenzo]]></name>
				<uri>https://forexsb.com/forum/user/14930/</uri>
			</author>
			<updated>2025-06-08T10:09:18Z</updated>
			<id>https://forexsb.com/forum/post/82697/#p82697</id>
		</entry>
</feed>
