<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Error in MT4 backtesting]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/6625" />
	<updated>2017-06-07T15:55:53Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/6625/error-in-mt4-backtesting/</id>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/44149/#p44149" />
			<content type="html"><![CDATA[<p>Greetings Mr Popov . <br />Here is my strategy. <br />It looks fine, but as I said trailing stop loss it is not working , only on Mt5’s tester.</p><p>Thanks .</p>]]></content>
			<author>
				<name><![CDATA[lefteris.marrek]]></name>
				<uri>https://forexsb.com/forum/user/9885/</uri>
			</author>
			<updated>2017-06-07T15:55:53Z</updated>
			<id>https://forexsb.com/forum/post/44149/#p44149</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/44132/#p44132" />
			<content type="html"><![CDATA[<p>Please upload a strategy that has this problem and we will be able to analyze it and to find a solution.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2017-06-07T09:05:28Z</updated>
			<id>https://forexsb.com/forum/post/44132/#p44132</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/44130/#p44130" />
			<content type="html"><![CDATA[<p>Hello Every one . <br />Very nice software but I have 2 questions please. </p><p>1)&nbsp; &nbsp; Trailing Stop loss&nbsp; on MT5.( By the way i could not find MT5 posts ) <br />Is MT5 has&nbsp; a problem ? <br />I made many ex5 , and I run them on MT5s tester&nbsp; ,&nbsp; it opens trades , but the trailing stop loss never works. <br />Though&nbsp; it works on MT4s tester . <br />( I am thinking , that maybe MT5 ‘s Data , affected when I am making changes on them.<br />I am erasing Zeros from the last column and I am changing the CSV’s&nbsp; name&nbsp; , in order to FSB can read them. )</p><p>2)&nbsp; &nbsp; Also I see many deferent results , when I create a strategy on FSB and test them on testers MT4 – MT5..</p><p>Please note , that in all cases , I have imported&nbsp; the&nbsp; right Data into the right&nbsp; FSB Source Data Folder. </p><p>Anyone can answer, thanks in advance.</p>]]></content>
			<author>
				<name><![CDATA[lefteris.marrek]]></name>
				<uri>https://forexsb.com/forum/user/9885/</uri>
			</author>
			<updated>2017-06-07T07:08:24Z</updated>
			<id>https://forexsb.com/forum/post/44130/#p44130</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43260/#p43260" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>I&#039;ll try for last time.</p><br /><p>The experts use indicators.<br />The indicators need historical data in order to calculate signals.<br />If you have MA with period of 15, it needs minimum 15 bars to calculate its first value.<br />The strategy needs 2 bars more to calculate the signals.<br />If you don&#039;t have enough bars, the strategy cannot calculate the first signals.</p><p>If you have indicators that need 104 bars, you have to <strong>force</strong> MetaTrader to load these 104 bars. That is!</p><p><span style="color:red"><strong>The inability of MT or third party plugins to load enough bars is not our problem.</strong></span></p></blockquote></div><p>Do understand!<br />You made me clear that this is not a FSB problem.<br />So I will solve this problem outside this forum.<br />Sorry to bother you.</p>]]></content>
			<author>
				<name><![CDATA[martinsta]]></name>
				<uri>https://forexsb.com/forum/user/9813/</uri>
			</author>
			<updated>2017-04-29T17:38:15Z</updated>
			<id>https://forexsb.com/forum/post/43260/#p43260</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43254/#p43254" />
			<content type="html"><![CDATA[<p>I&#039;ll try for last time.</p><br /><p>The experts use indicators.<br />The indicators need historical data in order to calculate signals.<br />If you have MA with period of 15, it needs minimum 15 bars to calculate its first value.<br />The strategy needs 2 bars more to calculate the signals.<br />If you don&#039;t have enough bars, the strategy cannot calculate the first signals.</p><p>If you have indicators that need 104 bars, you have to <strong>force</strong> MetaTrader to load these 104 bars. That is!</p><p><span style="color:red"><strong>The inability of MT or third party plugins to load enough bars is not our problem.</strong></span></p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2017-04-29T07:39:37Z</updated>
			<id>https://forexsb.com/forum/post/43254/#p43254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43253/#p43253" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p><strong>You have to select the &quot;Use date&quot; option in the MT tester and to set a starting data in a way that will assure enough bars on the chart. </strong></p><p><span class="postimg"><img src="http://s10.postimg.org/hot88o0y1/screenshot_219.png" alt="http://s10.postimg.org/hot88o0y1/screenshot_219.png" /></span></p><p><strong>The correct &quot;from&quot; date depends on the time frame, the number of bars on the chart and the number of the recurred bars of the expert.</strong></p></blockquote></div><p>You can be sure that is done correctly</p>]]></content>
			<author>
				<name><![CDATA[martinsta]]></name>
				<uri>https://forexsb.com/forum/user/9813/</uri>
			</author>
			<updated>2017-04-29T07:23:06Z</updated>
			<id>https://forexsb.com/forum/post/43253/#p43253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43252/#p43252" />
			<content type="html"><![CDATA[<p>What I see in History Center / Data Statistics is <br />&quot;Data Horizon cut off 101 bars.&quot;</p><p>See attached picture for Dat Horizon settings.<br />Can this be the problem with the bar loading in MT4?</p>]]></content>
			<author>
				<name><![CDATA[martinsta]]></name>
				<uri>https://forexsb.com/forum/user/9813/</uri>
			</author>
			<updated>2017-04-29T07:21:13Z</updated>
			<id>https://forexsb.com/forum/post/43252/#p43252</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43251/#p43251" />
			<content type="html"><![CDATA[<p><strong>You have to select the &quot;Use date&quot; option in the MT tester and to set a starting data in a way that will assure enough bars on the chart. </strong></p><p><span class="postimg"><img src="http://s10.postimg.org/hot88o0y1/screenshot_219.png" alt="http://s10.postimg.org/hot88o0y1/screenshot_219.png" /></span></p><p><strong>The correct &quot;from&quot; date depends on the time frame, the number of bars on the chart and the number of the recurred bars of the expert.</strong></p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2017-04-29T07:20:53Z</updated>
			<id>https://forexsb.com/forum/post/43251/#p43251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43250/#p43250" />
			<content type="html"><![CDATA[<p>Made a very simple new strategy with FSB for GBPUSD D1:<br />Open position when simple MA period 10 rise and close when simple MA period 10 falls<br />Run back test with tick data ...... MT4 comes with error that it needs at least 104 bars</p>]]></content>
			<author>
				<name><![CDATA[martinsta]]></name>
				<uri>https://forexsb.com/forum/user/9813/</uri>
			</author>
			<updated>2017-04-29T07:09:28Z</updated>
			<id>https://forexsb.com/forum/post/43250/#p43250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43249/#p43249" />
			<content type="html"><![CDATA[<p>Thanks all for your great contribution to solve this issue for me.<br />1000 bars to test?? Understand!<br />But the back test stops because it can not load 211 bars which is less than 1000 bars<br />See attached picture<br />I&#039;m using EA_Studio_Expert_75137755.ex4 for this test.<br />&quot;The expert need minimum 211 bars.......&quot; line 5 from bottom.</p>]]></content>
			<author>
				<name><![CDATA[martinsta]]></name>
				<uri>https://forexsb.com/forum/user/9813/</uri>
			</author>
			<updated>2017-04-29T06:35:07Z</updated>
			<id>https://forexsb.com/forum/post/43249/#p43249</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43248/#p43248" />
			<content type="html"><![CDATA[<p>I just realized that the MT tester cannot load more than 1000 bars at the beginning of a test.<br />That explains strange issues:<br /> - modified indicators that require thousands of bars crash.<br /> - indicators that use Exponential Moving Average calculations give differences.</p><p>Now our experts try to detect how many bars they need in order to show a stable signals. It looks like it is meaningless to check for more than 1000 bars.</p><p>I&#039;m solving these problems for my by using only Simple Moving Averages and periods lower than 100. This is possible in FSB Pro because we can set the MA type for all indicators. For example, we can set MACD to use Simple MAs. On the other hand, the MetaTrader&#039;s MACD (and EA Studio) use Exponential MAs.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2017-04-29T03:54:26Z</updated>
			<id>https://forexsb.com/forum/post/43248/#p43248</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43243/#p43243" />
			<content type="html"><![CDATA[<p>You have to find a way to load at least 163 bars in order to make the test.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2017-04-28T20:40:33Z</updated>
			<id>https://forexsb.com/forum/post/43243/#p43243</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43240/#p43240" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>Here is an expert that prints the number of bars.<br />Run it on your MT Tester and see the &quot;Journal&quot; tab for the number.</p><p>This show that if no start date is selected the MT Tester loads 101 bars.</p><p><span class="postimg"><img src="http://s5.postimg.org/f7ay5zyuf/screenshot_2017_04_28_at_17_19_57.png" alt="http://s5.postimg.org/f7ay5zyuf/screenshot_2017_04_28_at_17_19_57.png" /></span></p><p>By setting a start date, the tester can start with a greater number.</p><p>Here is the expert code:</p><div class="codebox"><pre><code>int OnInit()
  {
    MqlRates rates[];
    int bars = CopyRates(_Symbol, 0, 0, 100000, rates);
    Print(&quot;Bars: &quot; + IntegerToString(bars));
    return INIT_FAILED;
  }</code></pre></div></blockquote></div><p>have run it with TDS on<br />As you can see I have 101 bars loaded see attachment<br />Run it without TDS on and I have 1002 bars loaded</p>]]></content>
			<author>
				<name><![CDATA[martinsta]]></name>
				<uri>https://forexsb.com/forum/user/9813/</uri>
			</author>
			<updated>2017-04-28T18:28:15Z</updated>
			<id>https://forexsb.com/forum/post/43240/#p43240</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43232/#p43232" />
			<content type="html"><![CDATA[<p>Using the ten year tick data is not necessary with FSBPro.</p><p>What the tick data is great for is backtesting, optimiszing, but with FSBPro you do not really need it....</p><p>I can understand that you are experiencing some difficulties, keep in mind that FSBPro is using the bar close and open in most cases, where as the tick data is intrabar..</p>]]></content>
			<author>
				<name><![CDATA[Blaiserboy]]></name>
				<uri>https://forexsb.com/forum/user/2491/</uri>
			</author>
			<updated>2017-04-28T15:05:11Z</updated>
			<id>https://forexsb.com/forum/post/43232/#p43232</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error in MT4 backtesting]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/43229/#p43229" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>martinsta wrote:</cite><blockquote><p>Why testing?<br />Strategies with good results in FSB (incl Monte Carlo) had a margin call after 2 days of trading live.<br />That&#039;s why I want to have second opinion.<br />And I run 10 year 99% tick data back test on every EA I buy or make.<br />It&#039;s no guarantee for a good EA but it shows me that it would have run good on 10 years info.<br />Which means that it&#039;s not a bad EA.</p></blockquote></div><p>What does that other 1% stand for in tick data back test? What does 99% mean? Data is one thing, but the real question is how is that data handled.</p><p>Have you compared live results with back test results after the fact? Take data you traded on and back test your strats with that, compare trades, do they match. This way you get the idea whether there&#039;s an issue or not.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2017-04-28T14:48:13Z</updated>
			<id>https://forexsb.com/forum/post/43229/#p43229</id>
		</entry>
</feed>
