<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — MQL file addition]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/8465/" />
	<updated>2020-06-23T23:32:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/8465/mql-file-addition/</id>
		<entry>
			<title type="html"><![CDATA[Re: MQL file addition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/61305/#p61305" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2020-06-23T23:32:53Z</updated>
			<id>https://forexsb.com/forum/post/61305/#p61305</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MQL file addition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/61301/#p61301" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2020-06-23T14:33:33Z</updated>
			<id>https://forexsb.com/forum/post/61301/#p61301</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MQL file addition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/61300/#p61300" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2020-06-23T14:15:23Z</updated>
			<id>https://forexsb.com/forum/post/61300/#p61300</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[MQL file addition]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/61299/#p61299" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2020-06-23T13:55:53Z</updated>
			<id>https://forexsb.com/forum/post/61299/#p61299</id>
		</entry>
</feed>
