<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — 2 trading time sessoins]]></title>
		<link>https://forexsb.com/forum/topic/8991/2-trading-time-sessoins/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/8991/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in 2 trading time sessoins.]]></description>
		<lastBuildDate>Wed, 29 Dec 2021 15:01:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: 2 trading time sessoins]]></title>
			<link>https://forexsb.com/forum/post/67375/#p67375</link>
			<description><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>I made a modified script for you.</p><p>Please test it in your MetaTrader.</p><p>Here is how the fix works:<br /></p><div class="codebox"><pre><code>bool   isPeriodTofix  = period==PERIOD_M15 || period==PERIOD_M30 || period==PERIOD_H1;
string barOpenMinutes = TimeToString(rates_array[i].time,TIME_MINUTES);
string fixedMinutes   = isPeriodTofix &amp;&amp; barOpenMinutes == &quot;23:10&quot; ? &quot;23:00&quot; : barOpenMinutes;</code></pre></div><p>First, it checks if the data period is on of interest: M15, M30, or H1. We don&#039;t care for the lower periods, because the broker doesn&#039;t produce bars for them. The H4 and D1 must be correct because they start at 20:00 and 00:00 respectively.</p><p>Then the script gets the provided time in the `barOpenMinutes` variable. <br />The script checks if the time is &quot;23:10&quot; and changes it to &quot;23:00&quot; in such a case.</p><br /><p>Trade safe!</p></blockquote></div><p>Thanks a lot</p>]]></description>
			<author><![CDATA[null@example.com (electronics)]]></author>
			<pubDate>Wed, 29 Dec 2021 15:01:24 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/67375/#p67375</guid>
		</item>
		<item>
			<title><![CDATA[Re: 2 trading time sessoins]]></title>
			<link>https://forexsb.com/forum/post/67368/#p67368</link>
			<description><![CDATA[<p>I made a modified script for you.</p><p>Please test it in your MetaTrader.</p><p>Here is how the fix works:<br /></p><div class="codebox"><pre><code>bool   isPeriodTofix  = period==PERIOD_M15 || period==PERIOD_M30 || period==PERIOD_H1;
string barOpenMinutes = TimeToString(rates_array[i].time,TIME_MINUTES);
string fixedMinutes   = isPeriodTofix &amp;&amp; barOpenMinutes == &quot;23:10&quot; ? &quot;23:00&quot; : barOpenMinutes;</code></pre></div><p>First, it checks if the data period is on of interest: M15, M30, or H1. We don&#039;t care for the lower periods, because the broker doesn&#039;t produce bars for them. The H4 and D1 must be correct because they start at 20:00 and 00:00 respectively.</p><p>Then the script gets the provided time in the `barOpenMinutes` variable. <br />The script checks if the time is &quot;23:10&quot; and changes it to &quot;23:00&quot; in such a case.</p><br /><p>Trade safe!</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Wed, 29 Dec 2021 07:39:18 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/67368/#p67368</guid>
		</item>
		<item>
			<title><![CDATA[Re: 2 trading time sessoins]]></title>
			<link>https://forexsb.com/forum/post/67367/#p67367</link>
			<description><![CDATA[<p>Hello Electronics,</p><p>Thank you for the detailed report!</p><p>Forex Strategy Builder needs correct bar open times in order to produce a correct backtest. The program checks each bar of the data files at loading and ignores those bars with inconsistent open time.</p><p>In the case you report, each H1 bar must start at a round hour. However, your broker makes it strange. It looks like it suspends the trading between 23:00 and 23:10 for rollover calculation purposes. Usually, the brokers quote the market without interruption. What they do is to prevent actually trade executions. It is a problem, but not so big that in your case.</p><p>This particular case can be fixed with a modified script for exporting data from a MetaTrader chart. <br />The script must modify the open time of M15, M30, and H1 bars to change them from 23:10 to 23:00.</p><p>We already have Data export scripts attached to the Premium Club. You can try to modify it. if you have trouble with it, I&#039;ll be happy to help you.</p><p>Happy holidays and Trade Safe!</p>]]></description>
			<author><![CDATA[null@example.com (Popov)]]></author>
			<pubDate>Wed, 29 Dec 2021 07:26:15 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/67367/#p67367</guid>
		</item>
		<item>
			<title><![CDATA[2 trading time sessoins]]></title>
			<link>https://forexsb.com/forum/post/67364/#p67364</link>
			<description><![CDATA[<p>Hi, All</p><p>I have some doubt about historical data to back test my H1 strategies. The issue is the session time of a broker that I will show it&#039;s image. It shows you that there are 2 trading time sessoins each day, first 00:00 - 23:00, second 23:10 - 24:00<br /><a href="https://ibb.co/SKXpKQJ"><span class="postimg"><img src="https://i.ibb.co/NL6zL17/MT4-Contract.jpg" alt="https://i.ibb.co/NL6zL17/MT4-Contract.jpg" /></span></a><br /><a href="https://statewideinventory.org/acura-0-60-times">acura rlx 0 to 60</a></p><p>For example, the screen shot from MT4 H1 chart, data bar series respectively show as image below. and I try to back check the 23:10 data bar begin from May-2021 to present.<br /><a href="https://ibb.co/wKvY614"><span class="postimg"><img src="https://i.ibb.co/tbd3C5D/23-10-MT4.png" alt="https://i.ibb.co/tbd3C5D/23-10-MT4.png" /></span></a></p><p>When I save history as CSV. form and I check the respectively time series same as the MT4 chart.<br /><a href="https://ibb.co/K0Ndgnc"><span class="postimg"><img src="https://i.ibb.co/LkQmyKD/CSV-File.png" alt="https://i.ibb.co/LkQmyKD/CSV-File.png" /></span></a></p><p>But when I check data series in FSB chart the 23:10 data bar is skiped or no show as below.<br /><a href="https://ibb.co/hDcPZsW"><span class="postimg"><img src="https://i.ibb.co/Wg0bPny/Indicator-chart-FSB.png" alt="https://i.ibb.co/Wg0bPny/Indicator-chart-FSB.png" /></span></a></p><p>Also check in the Bar Explorer tab. No 23:10 data time series.<br /><a href="https://ibb.co/vkfy7G7"><span class="postimg"><img src="https://i.ibb.co/HqRwWsW/Bar-Explorer-FSB.png" alt="https://i.ibb.co/HqRwWsW/Bar-Explorer-FSB.png" /></span></a></p><p>What happen? because my back test will be unreliable if some data bar not available when compared with real market chart.</p>]]></description>
			<author><![CDATA[null@example.com (electronics)]]></author>
			<pubDate>Wed, 29 Dec 2021 02:54:23 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/67364/#p67364</guid>
		</item>
	</channel>
</rss>
