<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Question about relationship between OnTick() and Back Testing data]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/6974/" />
	<updated>2017-10-09T11:23:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/6974/question-about-relationship-between-ontick-and-back-testing-data/</id>
		<entry>
			<title type="html"><![CDATA[Re: Question about relationship between OnTick() and Back Testing data]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/46871/#p46871" />
			<content type="html"><![CDATA[<p>Hi Popov,</p><p>Can you reply here so that all the rest of us can understand better those queries because I&#039;m interested to know so that I have a better understanding of the implications of it has on the EA&#039;s execution process.</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[hannahis]]></name>
				<uri>https://forexsb.com/forum/user/2809/</uri>
			</author>
			<updated>2017-10-09T11:23:38Z</updated>
			<id>https://forexsb.com/forum/post/46871/#p46871</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Question about relationship between OnTick() and Back Testing data]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/46863/#p46863" />
			<content type="html"><![CDATA[<p>Hello Steve,</p><p>Thank you for your interest to understand how FSB Pro works.<br />I suggest you to make a Skype conv to discuss these topics. I&#039;ll send you my contact details over a PM.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2017-10-09T05:21:08Z</updated>
			<id>https://forexsb.com/forum/post/46863/#p46863</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Question about relationship between OnTick() and Back Testing data]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/46847/#p46847" />
			<content type="html"><![CDATA[<p>I&#039;d like to better understand the relationship between the data that an EA receives with every call to OnTick() in a live account and the *.csv data that FSBPro uses when back testing and optimizing.&nbsp; I definitely have some misconceptions of how things work and I&#039;m hoping that by asking several questions then it will become more clear.</p><p>Let&#039;s suppose I use FSBPro to create a strategy that trades on the H1 time period:</p><p>Question #1:&nbsp; When my strategy trades in a live account it receives many frequent calls to OnTick().&nbsp; Since mine is an H1 strategy then that means&nbsp; an OHLC bar is formed only once per hour -- is that correct?&nbsp; Or, is it that Open and Close are updated only once per hour but High and Low are updated with every tick?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<br />Question #2:&nbsp; If my strategy uses &#039;Bar Opening&#039; and &#039;Bar Closing&#039; then do I really need all the OnTick() calls?&nbsp; Does it waste a lot of CPU to keep calling OnTick() and executing the code for each indicator when, in the end, my strategy is only supposed to execute once each hour?</p><p>Question #3:&nbsp; Suppose my strategy uses &#039;Bar Opening&#039; and &#039;Bar Closing&#039;.&nbsp; And suppose some of the indicators use a &#039;Base Price&#039; other than Open or Close -- i.e. they use High, Low, Median, Typical or Weighted.&nbsp; Does that mean I really do need the OnTick() data because High, Low, Median, Typical and Weighted will change with each OnTick()?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<br />Quesiton #4:&nbsp; If my indicators use a &#039;Base Price&#039; of High, Low, Median, Typical or Weighted but my time period is H1, then does that mean it is possible a trade could open at any time as long as the indicator&#039;s conditions have been satisfied?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<br />Question #5:&nbsp; I use EURUSD60.csv when back testing my strategy.&nbsp; This data set includes OHLC values for each hour but does not include &quot;tick&quot; data.&nbsp; In a live account the tick data can influence High, Low, Median, Typical and Weighted.&nbsp; Could this partially explain why my back testing results often do not match with live trading?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<br />Question #6:&nbsp; I would like for back testing results in FSBPro to match as closely as possible with live trading.&nbsp; To achieve this, does it make sense to follow the rules below?<br />&nbsp; &nbsp; &nbsp;a. Always use &#039;Bar Opening&#039; and &#039;Bar Closing&#039;.<br />&nbsp; &nbsp; &nbsp;b. Only use &#039;Base Price&#039; of Open or Close (i.e. never use High, Low, Median, Typical or Weighted)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<br />Question #7:&nbsp; Is it possible to add a little bit of code to the beginning of OnTick() so the strategy ignores all calls to OnTick() unless they occur at the end of the H1 time period?&nbsp; In other words, would this make the live data appear more similar to the back testing data in the EURUSD60.csv file?<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<br />Would appreciate any insight.&nbsp; Thanks...</p>]]></content>
			<author>
				<name><![CDATA[sleytus]]></name>
				<uri>https://forexsb.com/forum/user/9721/</uri>
			</author>
			<updated>2017-10-07T03:19:49Z</updated>
			<id>https://forexsb.com/forum/post/46847/#p46847</id>
		</entry>
</feed>
