<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — MQL file addition]]></title>
		<link>https://forexsb.com/forum/topic/8465/mql-file-addition/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/8465/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in MQL file addition.]]></description>
		<lastBuildDate>Tue, 23 Jun 2020 23:32:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: MQL file addition]]></title>
			<link>https://forexsb.com/forum/post/61305/#p61305</link>
			<description><![CDATA[<p>This is nice, thank you, Miroslav!</p><p>Now I can envisage using custom libraries as well. I&#039;ll carry on.</p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Tue, 23 Jun 2020 23:32:53 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/61305/#p61305</guid>
		</item>
		<item>
			<title><![CDATA[Re: MQL file addition]]></title>
			<link>https://forexsb.com/forum/post/61301/#p61301</link>
			<description><![CDATA[<p>Added a proper error message:</p><p><a href="https://image-holder.forexsb.com/store/incorrect-mqh-file.png"><span class="postimg"><img src="https://image-holder.forexsb.com/store/incorrect-mqh-file-thumb.png" alt="https://image-holder.forexsb.com/store/incorrect-mqh-file-thumb.png" /></span></a></p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Tue, 23 Jun 2020 14:33:33 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/61301/#p61301</guid>
		</item>
		<item>
			<title><![CDATA[Re: MQL file addition]]></title>
			<link>https://forexsb.com/forum/post/61300/#p61300</link>
			<description><![CDATA[<p>Hello Footon,</p><p>Please try the following:</p><p> - Add your file-name.mqh in the `C:\Program Files\Forex Strategy Builder Pro\User Files\MT4 Files\MQL\Forexsb.com` folder.<br /> - FSB Pro will import the content after a line containing: <strong>//## Import Start</strong><br /> - Add the file name in the import list in `FSB_Expert_MT4.mq4`. Do that among the other import files between lines 102 - 117.</p><p><strong>file-name.mqh</strong></p><div class="codebox"><pre><code>This will not be imported !!!

//## Import Start

;; FOO

;; This is imported :)</code></pre></div><br /><p><strong>FSB_Expert_MT4.mq4</strong></p><div class="codebox"><pre><code>//##IMPORT Logger.mqh
//##IMPORT StrategyTrader.mqh
//##IMPORT file-name.mqh
//##IMPORT ActionTrade4.mqh</code></pre></div><br /><p>FSB Pro will include the necessary content in the exported expert at the proper place:</p><p>Exported expert:</p><div class="codebox"><pre><code>      double stoploss  = moneyrisk / (lots * tickvalue) - spread;
      return ((int) MathRound(stoploss));
     }
//+------------------------------------------------------------------+

;; FOO

;; This is imported :)

#define TRADE_RETRY_COUNT 4
#define TRADE_RETRY_WAIT  100
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
class ActionTrade</code></pre></div><br /><br /><p>Please open some of the standard mqh files to see how the &quot;//## Import Start&quot; tag is used. The purpose of this tag is&nbsp; to make possible the MQH files to be used in both FSB Pro and MT. (Because MT requires file intro not needed in FSB Pro <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /> )</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Tue, 23 Jun 2020 14:15:23 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/61300/#p61300</guid>
		</item>
		<item>
			<title><![CDATA[MQL file addition]]></title>
			<link>https://forexsb.com/forum/post/61299/#p61299</link>
			<description><![CDATA[<p>I wanted to add additional .mqh file with another class and method to FSBs MQL files. All I get is an error in FSB:</p><div class="codebox"><pre><code>StartIndex cannot be less than zero.</code></pre></div><p>When I copy the class directly to EA file, it works and compiles.</p><p>My question: there&#039;s no modularity and way for having additional .mqh files added to FSBs EA export function?</p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Tue, 23 Jun 2020 13:55:53 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/61299/#p61299</guid>
		</item>
	</channel>
</rss>
