<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Dynamic Spread Backtetsing]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9599/" />
	<updated>2024-02-17T22:47:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9599/dynamic-spread-backtetsing/</id>
		<entry>
			<title type="html"><![CDATA[Re: Dynamic Spread Backtetsing]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/78748/#p78748" />
			<content type="html"><![CDATA[<p>this is awesome!!! Thank you</p>]]></content>
			<author>
				<name><![CDATA[S118]]></name>
				<uri>https://forexsb.com/forum/user/13780/</uri>
			</author>
			<updated>2024-02-17T22:47:52Z</updated>
			<id>https://forexsb.com/forum/post/78748/#p78748</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Dynamic Spread Backtetsing]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/77164/#p77164" />
			<content type="html"><![CDATA[<p>Hello Trader,</p><p>I&#039;ll demonstrate the effect of the Dynamic spread when we backtet a strategy.</p><p>I&#039;ll use two copies of EA Studio with equal data and the same strategy open.<br />The left-hand side EA Studio instance has a Dark colour theme and uses &quot;Dynamic spread&quot;.<br />The right-hand side EA Studio uses a light color theme and has &quot;Dynamic spread&quot; disabled.</p><p>Please find the demonstration strategy attached.</p><p><a href="https://image-holder.forexsb.com/store/1-use-dynamic-spread-option.png"><span class="postimg"><img src="https://image-holder.forexsb.com/store/1-use-dynamic-spread-option-thumb.png" alt="https://image-holder.forexsb.com/store/1-use-dynamic-spread-option-thumb.png" /></span></a></p><br /><p>Here is how the backtest looks with and without Dynamic spread backtesting.</p><p><a href="https://image-holder.forexsb.com/store/2-use-dynamic-spread-option.png"><span class="postimg"><img src="https://image-holder.forexsb.com/store/2-use-dynamic-spread-option-thumb.png" alt="https://image-holder.forexsb.com/store/2-use-dynamic-spread-option-thumb.png" /></span></a></p><p>The data, the strategy and all other settings are the same. The only difference is that the &quot;dark&quot; EA Studio uses dynamic spread, and the &quot;Light&quot; EA Studio uses fixed spread.<br />You see that the count of trades is the same in both instances.</p><br /><p>Here is a screenshot of the Journal:</p><p><a href="https://image-holder.forexsb.com/store/3-use-dynamic-spread-option.png"><span class="postimg"><img src="https://image-holder.forexsb.com/store/3-use-dynamic-spread-option-thumb.png" alt="https://image-holder.forexsb.com/store/3-use-dynamic-spread-option-thumb.png" /></span></a></p><p>We see that we have a different Open price of the first position.<br />The first position is long. It means that it opens at the Ask price.<br />Because the historical data and the indicator charts use Bid prices, we calculate the Ask price by adding the spread.</p><p><strong>Ask = Bid + Spread</strong></p><p>We have &quot;Bar Open&quot; = 0.86457. This is the Bid price.</p><p>We can see the dynamic spread on the Indicator chart when we hover the mouse over a specific bar.</p><p><a href="https://image-holder.forexsb.com/store/4-use-dynamic-spread-option.png"><span class="postimg"><img src="https://image-holder.forexsb.com/store/4-use-dynamic-spread-option-thumb.png" alt="https://image-holder.forexsb.com/store/4-use-dynamic-spread-option-thumb.png" /></span></a></p><p>We have different Ask prices in both examples:<br /> - Dynamic spread: Ask = 0.86457 + (46 * 0.00001) = 0.86457 + 0.00046 = 0.86503<br /> - Static spread: Ask = 0.86457 + (20 * 0.00001) = 0.86457 + 0.00020 = 0.86477</p><p>Therefore, when we use a dynamic spread, the deposition opens at&nbsp; 0.86477; when we use a static spread, the position opens at 0.86477.</p><p>The dynamic spread eats from the profit. <br />Using dynamic spread makes the backtest far more reliable.<br />For that reason, I recommend using either the provided Premium Data feed or importing data from MetaTrader 5.</p><p>Please study this example and post your comments.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2023-10-17T08:41:06Z</updated>
			<id>https://forexsb.com/forum/post/77164/#p77164</id>
		</entry>
</feed>
