<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — What happens to open trades while doing walk forward testing?]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9196/" />
	<updated>2022-08-16T08:25:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9196/what-happens-to-open-trades-while-doing-walk-forward-testing/</id>
		<entry>
			<title type="html"><![CDATA[Re: What happens to open trades while doing walk forward testing?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/70405/#p70405" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>&gt;&nbsp; huge difference between what the walkforward calculates and what actual backtest shows.</p><p>Walk-forward use the &quot;actual-backtester&quot;. Actually, there is only one backtester.</p><p>&gt; I select that date range in Data Horizon tab and run the same strategy with these calculated parameters</p><p>Walk Forward shows the OOS start and end. On the other hand, the Data Horizon sets the data series&#039; start and end.</p></blockquote></div><p>Appreciate the quick response Popov. Yes you are correct, the Data Horizon tab sets the data series&#039;s start and end, that&#039;s why when the indicators were trying to calculate their values using past lookbacks, they didn&#039;t have access to past data due to the strict restriction I set manually using the Data Horizon tab. This explains the lack of trades and difference in values. Thanks for clearing it up.</p>]]></content>
			<author>
				<name><![CDATA[iamgreatest]]></name>
				<uri>https://forexsb.com/forum/user/14085/</uri>
			</author>
			<updated>2022-08-16T08:25:00Z</updated>
			<id>https://forexsb.com/forum/post/70405/#p70405</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What happens to open trades while doing walk forward testing?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/70353/#p70353" />
			<content type="html"><![CDATA[<p>&gt;&nbsp; huge difference between what the walkforward calculates and what actual backtest shows.</p><p>Walk-forward use the &quot;actual-backtester&quot;. Actually, there is only one backtester.</p><p>&gt; I select that date range in Data Horizon tab and run the same strategy with these calculated parameters</p><p>Walk Forward shows the OOS start and end. On the other hand, the Data Horizon sets the data series&#039; start and end.</p><p>&gt; Also I now see an overlap between the End date of 11th Segment and Start date of 12th Segment.</p><p>The last segment is slightly adjusted because it may not be possible to divide the provided bar by the number of the segments. It is a very rare case. Even then, we have to calculate the OOS start. Several bars deviation is normal and acceptable.</p><p>If you want a more statistically representative result, you should adjust the settings to have 100 or more deals per segment.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2022-08-12T08:18:30Z</updated>
			<id>https://forexsb.com/forum/post/70353/#p70353</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What happens to open trades while doing walk forward testing?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/70351/#p70351" />
			<content type="html"><![CDATA[<p>Also I now see an overlap between the End date of 11th Segment and Start date of 12th Segment. This is not supposed to happen right?</p>]]></content>
			<author>
				<name><![CDATA[iamgreatest]]></name>
				<uri>https://forexsb.com/forum/user/14085/</uri>
			</author>
			<updated>2022-08-12T06:51:16Z</updated>
			<id>https://forexsb.com/forum/post/70351/#p70351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What happens to open trades while doing walk forward testing?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/70350/#p70350" />
			<content type="html"><![CDATA[<p>Hey Popov, thanks for the reply. <br />I understood your point of how one can proceed while applying walk forward in live trading. <br />You mentioned that test starts calculation from the beginning of the out of sample dataset. This makes sense. </p><p>But, I was testing some strategy and was unable to reproduce the results shown when I applied the walkforward optimized parameters to the last out of sample segment. Can you point out what I&#039;m doing wrong. I have attached a simple example below. Sorry for the long post.</p><p>1] Dataset &amp; timeframe -&gt; <strong>EURUSD 1D</strong> (All available premium data 4886 bars)<br />2] Entry condition &amp; starting parameters -&gt; Rsi crosses the level upward (close, <strong>period- 14, level- 70</strong>)<br />3] Exit condition &amp; starting parameters -&gt; Rsi crosses the level downward (close, <strong>period- 14, level- 30</strong>)<br />4] Entry Lot - 0.1, Opp. entry signal - Ignore, No SL TP.<br />5] Walkforward setting -&gt; Segments(<strong>12</strong>), Out of sample(<strong>30% OOS</strong>), Numeric range(<strong>+- 20steps</strong>), Search best(<strong>Net Balance</strong>).<br />6] Validation -&gt; Minimum net profit(<strong>0</strong>)</p><p>After running walkforward, the results I get for the 12th segment is <strong>32</strong> trades, <strong>419 USD</strong> net profit, 555 USD drawdown. <br />The date range for 12th segment is -&gt; &quot;<strong>2021-07-13 00:00</strong>&quot; to &quot;<strong>2022-08-12 00:00</strong>&quot;.<br />The parameters for same are -&gt; Entry RSI -&gt; Period(<strong>3</strong>), Level(<strong>21</strong>) <br />Exit RSI -&gt; Period(<strong>2</strong>), Level(<strong>45</strong>).</p><p>Now I know this strategy is no good. But the problem is when I select that date range in Data Horizon tab and run the same strategy with these calculated parameters, the results are different(See attachments). The results I get are as follows-&gt; <strong>30</strong> trades, <strong>499.6</strong> USD net profit, 554.8 USD drawdown. </p><p>Drawdown is same but the <strong>two trades are missing</strong>. In this specific case at least its similar, sometimes there is a huge difference between what the walkforward calculates and what actual backtest shows. Please let me know what is wrong. See attached images too. </p><p>Thanks for reading this long post.</p>]]></content>
			<author>
				<name><![CDATA[iamgreatest]]></name>
				<uri>https://forexsb.com/forum/user/14085/</uri>
			</author>
			<updated>2022-08-12T06:47:21Z</updated>
			<id>https://forexsb.com/forum/post/70350/#p70350</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: What happens to open trades while doing walk forward testing?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/70334/#p70334" />
			<content type="html"><![CDATA[<p>The test start from the beginning of the shifted data set.</p><p>The Walk Forward serves to check if a strategy is suitable for optimisation on a new period.<br />If it has new parameters, it may have completely different deals.</p><p>If you apply walk-forward optimization on a trading strategy, you have three options (I prefer to make the change during the weekend):<br /> - change the strategies by closing the previous position, if any, and running the updated strategy from a neutral position.<br /> - set the same magic number to the new strategy. It will close the current position according to its signals.<br /> - leave the previous strategy to close its position and remove it from a neutral position. Run the new strategy with a new Magic Number. The positions may overlap, but it doesn&#039;t matter.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2022-08-11T18:35:55Z</updated>
			<id>https://forexsb.com/forum/post/70334/#p70334</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[What happens to open trades while doing walk forward testing?]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/70331/#p70331" />
			<content type="html"><![CDATA[<p>Was checking out the online Expert Advisor Studio&#039;s walkforward today. I wanted to know what happens to open trades when the parameters are changed while transitioning into a new segment. Is it closed and reopened according to new signals or something else. Let me know. Thanks</p>]]></content>
			<author>
				<name><![CDATA[iamgreatest]]></name>
				<uri>https://forexsb.com/forum/user/14085/</uri>
			</author>
			<updated>2022-08-11T16:34:45Z</updated>
			<id>https://forexsb.com/forum/post/70331/#p70331</id>
		</entry>
</feed>
