<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
		<link>https://forexsb.com/forum/topic/9232/advice-needed-portfolio-expert-vs-mt5-completely-opposite-backtest/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/9232/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Advice needed - Portfolio Expert vs MT5 completely opposite backtest.]]></description>
		<lastBuildDate>Sat, 08 Oct 2022 05:25:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71410/#p71410</link>
			<description><![CDATA[<p>I have experienced different performance in MetaTrader tester due to different starting bar.</p><p>It happens when a strategy trades continuously. </p><p>I&#039;m trying to detect such cases by adjusting the Data Horizon in EA Studio to start testing on the same day as MetaTrader tester.</p><p>...</p><p>You may tray splitting your Portfolio in parts and testing them separately.</p><p>You can&nbsp; change the Symbol Settings in the MetaTrader 5 Tester</p><p><a href="https://image-holder.forexsb.com/store/symbol-settings-mt5-tester.png"><span class="postimg"><img src="https://image-holder.forexsb.com/store/symbol-settings-mt5-tester-thumb.png" alt="https://image-holder.forexsb.com/store/symbol-settings-mt5-tester-thumb.png" /></span></a></p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Sat, 08 Oct 2022 05:25:33 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71410/#p71410</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71380/#p71380</link>
			<description><![CDATA[<p>Did you adjust GMT???</p>]]></description>
			<author><![CDATA[null@example.com (Blaiserboy)]]></author>
			<pubDate>Thu, 06 Oct 2022 14:13:21 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71380/#p71380</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71377/#p71377</link>
			<description><![CDATA[<div class="quotebox"><cite>tomaria wrote:</cite><blockquote><p>Hello, After testing the same Expert Advisor on several MT5 platforms, I found that the quality of the backtest history was very low unlike the MT4 platform, this may be due to brokers because they can make changes in the data of the history they import into their demo account.</p><p>I tested the same EA over the same timeframes with the same settings on 3 different brokers and got vastly different results.</p></blockquote></div><p>Yes, I always use the &quot;live&quot; account to export data from (into EAS), rather than the demo account, and then I&#039;ll use the &quot;live&quot; account to run any backtest from -despite then possibly running the EA in the demo account.&nbsp; &nbsp;Your point is correct though, not all demo data is the same!</p>]]></description>
			<author><![CDATA[null@example.com (timelleston)]]></author>
			<pubDate>Thu, 06 Oct 2022 13:07:56 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71377/#p71377</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71374/#p71374</link>
			<description><![CDATA[<p>Hello, After testing the same Expert Advisor on several MT5 platforms, I found that the quality of the backtest history was very low unlike the MT4 platform, this may be due to brokers because they can make changes in the data of the history they import into their demo account.</p><p>I tested the same EA over the same timeframes with the same settings on 3 different brokers and got vastly different results.</p>]]></description>
			<author><![CDATA[null@example.com (tomaria)]]></author>
			<pubDate>Thu, 06 Oct 2022 12:25:51 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71374/#p71374</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71051/#p71051</link>
			<description><![CDATA[<div class="quotebox"><cite>sleytus wrote:</cite><blockquote><p>If you&#039;ve found conditions where EAS backtesting and MT Strategy Tester results align (e.g. shorter data horizons) then I would go with that.&nbsp; Maybe it has to do with spreads or maybe there is something else going on with the simulated OHLC data -- regardless, our time is better spent trading and using this amazing tool to create new and different portfolio EAs...</p></blockquote></div><p>Completely agree, and thanks for spending some time looking into this with me.&nbsp; I&#039;ll concentrate on closer timeframes for sure, and yes, it&#039;s an amazing tool for sure.</p><p>Thanks again Sleytus.</p>]]></description>
			<author><![CDATA[null@example.com (timelleston)]]></author>
			<pubDate>Mon, 19 Sep 2022 11:30:56 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71051/#p71051</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71050/#p71050</link>
			<description><![CDATA[<p>For EAS I only use the Premium Data from DukasCopy.&nbsp; I trade prop firm accounts and I&#039;m disinclined to complicate things by having to remember to repeatedly import data from a variety of different brokers.&nbsp; Though broker data differs, I figure if my strategies are that sensitive then they will likely fail in real-time.&nbsp; So, before trading them I will do a sanity check using MT4 / MT5 Strategy Tester for each broker I&#039;m about to trade with.&nbsp; So far the Premium Data has been good enough for my purposes.</p><p>As for whether your explanation makes sense -- perhaps.&nbsp; Right now I&#039;m being forced to think harder than what I&#039;m up to.&nbsp; In MT4&#039;s Strategy Tester it was possible to specify the spread, but that feature seems to be missing in MT5 -- or, at least I haven&#039;t yet figured out how to set it.&nbsp; I have no idea what spread MT5 is using.&nbsp; My rule of thumb is to use 40 points in EAS.</p><p>My view from 30000 feet...<br />Strategy Tester is unreliable -- that is, sometimes it turns out to be accurate and others times not, you just never know which it will be.&nbsp; So, I wouldn&#039;t beat my head over this.&nbsp; If you&#039;ve found conditions where EAS backtesting and MT Strategy Tester results align (e.g. shorter data horizons) then I would go with that.&nbsp; Maybe it has to do with spreads or maybe there is something else going on with the simulated OHLC data -- regardless, our time is better spent trading and using this amazing tool to create new and different portfolio EAs...&nbsp; &nbsp;</p><br /><br /><br /><br /><div class="quotebox"><cite>timelleston wrote:</cite><blockquote><div class="quotebox"><cite>sleytus wrote:</cite><blockquote><p>I think it may have something to do with differences in the spread.</p><p>I fixed the &#039;array out of range&#039; error so I could test in Strategy Tester.&nbsp; The results were still quite different between EAS and Strategy Tester -- with EAS slightly profitable and ST unprofitable.&nbsp; But then I fiddled with AUDUSD&#039;s spread in EAS and changed it from the default of 10 points to 40 points and the overall perfermance of the portfolio EA became negative in EAS, as well.</p></blockquote></div><p>Yes that error shows up on the un-edited version.&nbsp; Once you change the size of the array it should work as you found.</p><p>So my spread with ICMarkets currently is on average 2 points.&nbsp; </p><p>Maybe whats happened is that ICMarkets has recently brought in Zero spread...but back further, spreads existed...that might explain it.&nbsp; That could be why the MT5 data, back in time, doesn&#039;t have a spread of zero (it might have 10-40 points) and EAS, because I over-rode the data setting with 2 points, based everything on that...</p><p>Hmmm.&nbsp; Interesting...</p><p>That would/could also explain why more recent timeframe backtests work (3m, 9m, 12m) - because both platforms use the same spreads to generate/optimise/validate (i.e. 9 months in MT5 and in EAS match, because the broker data using the backtest matches what EAS used to build it).&nbsp; Does that make sense?</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (sleytus)]]></author>
			<pubDate>Mon, 19 Sep 2022 11:15:29 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71050/#p71050</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71046/#p71046</link>
			<description><![CDATA[<div class="quotebox"><cite>sleytus wrote:</cite><blockquote><p>I think it may have something to do with differences in the spread.</p><p>I fixed the &#039;array out of range&#039; error so I could test in Strategy Tester.&nbsp; The results were still quite different between EAS and Strategy Tester -- with EAS slightly profitable and ST unprofitable.&nbsp; But then I fiddled with AUDUSD&#039;s spread in EAS and changed it from the default of 10 points to 40 points and the overall perfermance of the portfolio EA became negative in EAS, as well.</p></blockquote></div><p>Yes that error shows up on the un-edited version.&nbsp; Once you change the size of the array it should work as you found.</p><p>So my spread with ICMarkets currently is on average 2 points.&nbsp; </p><p>Maybe whats happened is that ICMarkets has recently brought in Zero spread...but back further, spreads existed...that might explain it.&nbsp; That could be why the MT5 data, back in time, doesn&#039;t have a spread of zero (it might have 10-40 points) and EAS, because I over-rode the data setting with 2 points, based everything on that...</p><p>Hmmm.&nbsp; Interesting...</p><p>That would/could also explain why more recent timeframe backtests work (3m, 9m, 12m) - because both platforms use the same spreads to generate/optimise/validate (i.e. 9 months in MT5 and in EAS match, because the broker data using the backtest matches what EAS used to build it).&nbsp; Does that make sense?</p>]]></description>
			<author><![CDATA[null@example.com (timelleston)]]></author>
			<pubDate>Mon, 19 Sep 2022 08:49:28 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71046/#p71046</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71044/#p71044</link>
			<description><![CDATA[<p>I think it may have something to do with differences in the spread.</p><p>I fixed the &#039;array out of range&#039; error so I could test in Strategy Tester.&nbsp; The results were still quite different between EAS and Strategy Tester -- with EAS slightly profitable and ST unprofitable.&nbsp; But then I fiddled with AUDUSD&#039;s spread in EAS and changed it from the default of 10 points to 40 points and the overall perfermance of the portfolio EA became negative in EAS, as well.</p>]]></description>
			<author><![CDATA[null@example.com (sleytus)]]></author>
			<pubDate>Mon, 19 Sep 2022 08:41:39 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71044/#p71044</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71043/#p71043</link>
			<description><![CDATA[<p>I tried testing it -- got an &#039;array out of range&#039; error.</p><p>2022.09.19 01:23:20.333&nbsp; &nbsp; Core 1&nbsp; &nbsp; 2022.07.17 00:00:00&nbsp; &nbsp;array out of range in &#039;Portfolio Expert AUDUSD#a M15 138 4 years.mq5&#039; (1133,16)</p><p>This must be due to your editing.&nbsp; Have you tried testing an unedited version of your portfolio EA?</p><br /><br /><div class="quotebox"><cite>timelleston wrote:</cite><blockquote><p>Well, I re-validated the 138 portfolio, on a 3 month timeframe, using re-opt, re-norm, and re-multi-market, and only 1 passed the full re-validation...</p><p>I&#039;m beginning to think that somehow I generated and optimised a bunch of strategies on bad data, which somehow passed all of the tests within EAS...&nbsp; &nbsp;not sure how.&nbsp; Maybe something went wrong with the data export from MT5/Broker, or something...not sure.</p><p>But, one lesson here, always test within MT5 to &quot;confirm&quot; things.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (sleytus)]]></author>
			<pubDate>Mon, 19 Sep 2022 08:25:58 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71043/#p71043</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71042/#p71042</link>
			<description><![CDATA[<p>Well, I re-validated the 138 portfolio, on a 3 month timeframe, using re-opt, re-norm, and re-multi-market, and only 1 passed the full re-validation...</p><p>I&#039;m beginning to think that somehow I generated and optimised a bunch of strategies on bad data, which somehow passed all of the tests within EAS...&nbsp; &nbsp;not sure how.&nbsp; Maybe something went wrong with the data export from MT5/Broker, or something...not sure.</p><p>But, one lesson here, always test within MT5 to &quot;confirm&quot; things.</p>]]></description>
			<author><![CDATA[null@example.com (timelleston)]]></author>
			<pubDate>Mon, 19 Sep 2022 08:16:34 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71042/#p71042</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71041/#p71041</link>
			<description><![CDATA[<p>So I thought it might also be something to do with being above 100 strategies in the portfolio - because that appears to not work anyway, and I&#039;ve had to change line 56:<br />from...<br />int indHandlers[100][12][2];<br />to...<br />int indHandlers[138][12][2];</p><p>for it to run in MT5.</p><p>So, I just added some filters in EAS to get the number less than 100 strategies (got to 96) and re-ran it in MT5.<br />Still no joy.&nbsp; Curve is entirely different.&nbsp; This was on a data horizon from 3/Jan/22 to 19/Sept/22.&nbsp; The only place the two platforms agreed with was the number of bars <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (timelleston)]]></author>
			<pubDate>Mon, 19 Sep 2022 07:57:56 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71041/#p71041</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71038/#p71038</link>
			<description><![CDATA[<div class="quotebox"><cite>sleytus wrote:</cite><blockquote><p>And another thought -- what about testing on MT4&#039;s Strategy Tester...</p></blockquote></div><p>Oh that’s interesting… hadn’t tried that…</p>]]></description>
			<author><![CDATA[null@example.com (timelleston)]]></author>
			<pubDate>Mon, 19 Sep 2022 07:35:13 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71038/#p71038</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71037/#p71037</link>
			<description><![CDATA[<div class="quotebox"><cite>sleytus wrote:</cite><blockquote><p>Okay -- then I&#039;m stumped, as well...</p><p>But you did say that data horizons of less than 9 months always seemed to work -- what about in this case?&nbsp; What if you recalculated your current portfolio EA with a data horizon of 3 months and tested that on MT5?&nbsp; Actually, if you are trading M15 then you could shorten that to 1 month.</p></blockquote></div><p>Actually I did that try that too. I took the 138 Portfolio and reran it over the last 9 months - pretty much failed entirely in EAS - I was validating it only not optimising.</p>]]></description>
			<author><![CDATA[null@example.com (timelleston)]]></author>
			<pubDate>Mon, 19 Sep 2022 07:33:53 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71037/#p71037</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71036/#p71036</link>
			<description><![CDATA[<p>And another thought -- what about testing on MT4&#039;s Strategy Tester...</p>]]></description>
			<author><![CDATA[null@example.com (sleytus)]]></author>
			<pubDate>Mon, 19 Sep 2022 07:32:16 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71036/#p71036</guid>
		</item>
		<item>
			<title><![CDATA[Re: Advice needed - Portfolio Expert vs MT5 completely opposite backtest]]></title>
			<link>https://forexsb.com/forum/post/71035/#p71035</link>
			<description><![CDATA[<p>Okay -- then I&#039;m stumped, as well...</p><p>But you did say that data horizons of less than 9 months always seemed to work -- what about in this case?&nbsp; What if you recalculated your current portfolio EA with a data horizon of 3 months and tested that on MT5?&nbsp; Actually, if you are trading M15 then you could shorten that to 1 month.</p><br /><div class="quotebox"><cite>timelleston wrote:</cite><blockquote><div class="quotebox"><cite>sleytus wrote:</cite><blockquote><p>Yes -- I agree -- the screenshot looks odd...</p><p>Strategy Tester caches a lot of settings under &lt;DataFolder&gt;\Tester.&nbsp; What I&#039;ve done in the past is clean things up by:<br />1. Deleting the &#039;Tester&#039; folder.<br />2. Exiting and then relaunching Strategy Tester.<br />&nbsp; &nbsp; &nbsp; or<br />Test the portfolio EA on a virgin installation of MT5 from a different broker -- it&#039;s okay that the data is different.</p></blockquote></div><p>#1 &amp; #2 - tried deleting all the cache files for all brokers - restarted MT5, reran but had same result for ICMarkets.</p><p>Logged into my other broker (Markets.com) and tried on another account - similar results.&nbsp; 29,500 trades, lost about $2200 over the 4 years.&nbsp; Different spreads, swaps and commissions, but it certainly wasn&#039;t $300k in profit.</p><p>I then tried uploading Markets.com data into EAS - and re-calcing the portfolio using that data as a test/guide.&nbsp; See below - it still has a positive curve, much different to MT5.&nbsp; Obviously expecting differences here due to different spreads, comms, swaps etc.&nbsp; But still very different to MT5.</p><p>When I run other portfolios of strategies (up to around 100 in each portfolio) in MT5 over shorter timeframes (say 9 months) the results have always been failry similar between EAS and MT5.&nbsp; So, still stumped <img src="https://forexsb.com/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /></p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (sleytus)]]></author>
			<pubDate>Mon, 19 Sep 2022 07:29:44 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/71035/#p71035</guid>
		</item>
	</channel>
</rss>
