<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9156/" />
	<updated>2022-07-10T14:28:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9156/getting-error-message-when-backtesting-ea-ordercheck-invalid-price/</id>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69760/#p69760" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>yonkuro wrote:</cite><blockquote><div class="quotebox"><cite>Mr. Question wrote:</cite><blockquote><p>And here is another weird thing: I sent my source code to a professional mql5 programmer on Fiverr and he said that he ran the EA on a hedging account without errors.</p></blockquote></div><p>Same broker or not?</p></blockquote></div><p>No different broker.</p>]]></content>
			<author>
				<name><![CDATA[Mr. Question]]></name>
				<uri>https://forexsb.com/forum/user/14018/</uri>
			</author>
			<updated>2022-07-10T14:28:01Z</updated>
			<id>https://forexsb.com/forum/post/69760/#p69760</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69754/#p69754" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Mr. Question wrote:</cite><blockquote><p>And here is another weird thing: I sent my source code to a professional mql5 programmer on Fiverr and he said that he ran the EA on a hedging account without errors.</p></blockquote></div><p>Same broker or not?</p>]]></content>
			<author>
				<name><![CDATA[yonkuro]]></name>
				<uri>https://forexsb.com/forum/user/8447/</uri>
			</author>
			<updated>2022-07-09T07:15:33Z</updated>
			<id>https://forexsb.com/forum/post/69754/#p69754</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69753/#p69753" />
			<content type="html"><![CDATA[<p>And here is another weird thing: I sent my source code to a professional mql5 programmer on Fiverr and he said that he ran the EA on a hedging account without errors.</p>]]></content>
			<author>
				<name><![CDATA[Mr. Question]]></name>
				<uri>https://forexsb.com/forum/user/14018/</uri>
			</author>
			<updated>2022-07-08T22:19:55Z</updated>
			<id>https://forexsb.com/forum/post/69753/#p69753</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69751/#p69751" />
			<content type="html"><![CDATA[<p>@yonkuro</p><p>It seems you were right after all. When I removed SL and TP the error didn&#039;t pop up again. However, now the problem is that the backtester doesn&#039;t trigger any orders. The graph remains linear throughout the entire testing period.</p>]]></content>
			<author>
				<name><![CDATA[Mr. Question]]></name>
				<uri>https://forexsb.com/forum/user/14018/</uri>
			</author>
			<updated>2022-07-08T17:12:52Z</updated>
			<id>https://forexsb.com/forum/post/69751/#p69751</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69747/#p69747" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>yonkuro wrote:</cite><blockquote><div class="quotebox"><cite>Mr. Question wrote:</cite><blockquote><p>Are you saying I should create the EA without SL and TP? I can&#039;t do that as SL and TP is part of the strategy&#039;s profitability. I already tried out all TFs and they all give the same error.</p></blockquote></div><p>No, removing SL and TP is for backtest only</p></blockquote></div><p>Ok I&#039;ll try it out later when I&#039;m back home.</p>]]></content>
			<author>
				<name><![CDATA[Mr. Question]]></name>
				<uri>https://forexsb.com/forum/user/14018/</uri>
			</author>
			<updated>2022-07-08T11:25:38Z</updated>
			<id>https://forexsb.com/forum/post/69747/#p69747</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69738/#p69738" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Mr. Question wrote:</cite><blockquote><p>Are you saying I should create the EA without SL and TP? I can&#039;t do that as SL and TP is part of the strategy&#039;s profitability. I already tried out all TFs and they all give the same error.</p></blockquote></div><p>No, removing SL and TP is for backtest only</p>]]></content>
			<author>
				<name><![CDATA[yonkuro]]></name>
				<uri>https://forexsb.com/forum/user/8447/</uri>
			</author>
			<updated>2022-07-08T03:25:39Z</updated>
			<id>https://forexsb.com/forum/post/69738/#p69738</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69735/#p69735" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Grifter wrote:</cite><blockquote><p>Why not try using MT4?</p></blockquote></div><p>Because my client base increasingly uses MT5 and wants custom tailored EAs for the MT5 platform. The turnover for MT4 products is rapidly deteriorating since 2019 and is commercially not viable anymore from a Benefit-Cost-Ratio perspective.</p>]]></content>
			<author>
				<name><![CDATA[Mr. Question]]></name>
				<uri>https://forexsb.com/forum/user/14018/</uri>
			</author>
			<updated>2022-07-07T19:42:34Z</updated>
			<id>https://forexsb.com/forum/post/69735/#p69735</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69733/#p69733" />
			<content type="html"><![CDATA[<p>Why not try using MT4?</p><p>And no the strategy was not uploaded, you need to select the file then click &quot;ADD FILE&quot; to the right.</p>]]></content>
			<author>
				<name><![CDATA[Grifter]]></name>
				<uri>https://forexsb.com/forum/user/12300/</uri>
			</author>
			<updated>2022-07-07T18:01:48Z</updated>
			<id>https://forexsb.com/forum/post/69733/#p69733</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69732/#p69732" />
			<content type="html"><![CDATA[<p>Well, for testing purposes you don&#039;t need to put it on the intended timeframe (on demo account), drop it at M1 and see what&#039;s what. There have been cases where demo accounts are non-functional in some brokers, live trade works; at the same time if this occurs then it&#039;s better to ditch the broker, who knows what problems are there.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2022-07-07T17:08:12Z</updated>
			<id>https://forexsb.com/forum/post/69732/#p69732</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69729/#p69729" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>yonkuro wrote:</cite><blockquote><p>Problems usually came from mt5, please test it with lower TF such as M1 or M5, also you can try to remove SL and TP from forexsb and then export and test the EA again</p></blockquote></div><p>Are you saying I should create the EA without SL and TP? I can&#039;t do that as SL and TP is part of the strategy&#039;s profitability. I already tried out all TFs and they all give the same error.</p><div class="quotebox"><cite>footon wrote:</cite><blockquote><p>Attach the EA!</p><p>Common problem with MT5 hedging accounts, especially demo accounts, hedging accounts are not supported by Pro experts, you have to use netting account.</p><p>How does it perform live?</p></blockquote></div><p>It would have been nice if the product description mentioned this little but important detail. Is there a way to code the support of hedging accounts into the mq5 source code? If not then I have to go the tedious route and ask each one of the major FX brokers whether they even offer netting accounts. In case most of them don&#039;t, I&#039;ll have no option but to contact my cc provider and revert the payment I made. It would be a real shame because FSB Pro is an otherwise awesome software with lots of potential that unfortunately is left unused. </p><p>Addendum: was my mq5 file uploaded correctly? I can&#039;t see the file being attached in my original post.</p><p>Addendum #2: the EA hasn&#039;t performed live yet, as it is based on the daily TF and trades maybe twice a month.</p>]]></content>
			<author>
				<name><![CDATA[Mr. Question]]></name>
				<uri>https://forexsb.com/forum/user/14018/</uri>
			</author>
			<updated>2022-07-07T15:44:02Z</updated>
			<id>https://forexsb.com/forum/post/69729/#p69729</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69718/#p69718" />
			<content type="html"><![CDATA[<p>Attach the EA!</p><p>Common problem with MT5 hedging accounts, especially demo accounts, hedging accounts are not supported by Pro experts, you have to use netting account.</p><p>How does it perform live?</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2022-07-07T07:31:26Z</updated>
			<id>https://forexsb.com/forum/post/69718/#p69718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69714/#p69714" />
			<content type="html"><![CDATA[<p>Problems usually came from mt5, please test it with lower TF such as M1 or M5, also you can try to remove SL and TP from forexsb and then export and test the EA again</p>]]></content>
			<author>
				<name><![CDATA[yonkuro]]></name>
				<uri>https://forexsb.com/forum/user/8447/</uri>
			</author>
			<updated>2022-07-07T00:36:52Z</updated>
			<id>https://forexsb.com/forum/post/69714/#p69714</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69713/#p69713" />
			<content type="html"><![CDATA[<p>I think that might be a bug specific to MT5</p><p>https://www.mql5.com/en/forum/259922</p>]]></content>
			<author>
				<name><![CDATA[Grifter]]></name>
				<uri>https://forexsb.com/forum/user/12300/</uri>
			</author>
			<updated>2022-07-06T23:02:57Z</updated>
			<id>https://forexsb.com/forum/post/69713/#p69713</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69712/#p69712" />
			<content type="html"><![CDATA[<p>I have to say that I find this extremely infuriating. I purchased a piece of very expensive software that was being advertised as a tool to create EAs out-of-box without any coding experience. Now that I have tried backtesting the ex5 file I find out that I need to poke around in the source code and try to find the needle in the haystack and fix this shit manually (which I can&#039;t as I&#039;m not a programmer). </p><p>To give some more info: i have tried testing it on an ICMarkets Demo account which is a 5 decimal broker. Would be nice if the devs could help me out with this...</p>]]></content>
			<author>
				<name><![CDATA[Mr. Question]]></name>
				<uri>https://forexsb.com/forum/user/14018/</uri>
			</author>
			<updated>2022-07-06T18:32:52Z</updated>
			<id>https://forexsb.com/forum/post/69712/#p69712</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Getting Error Message when backtesting EA: OrderCheck(): Invalid price]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/69711/#p69711" />
			<content type="html"><![CDATA[<p>Do you have the currency pair set correctly? this error can happen when you have a 5 decimal order set on a 4 decimal broker. So you get an error, could be something else though</p><p>Also could be an issue with the SL/TP, some brokers only allow you to set this after the trade has executed. I&#039;m not sure how FSB handles opening positions in this manner but I remember glancing over the code and seeing a footnote beside where you can switch this</p>]]></content>
			<author>
				<name><![CDATA[Grifter]]></name>
				<uri>https://forexsb.com/forum/user/12300/</uri>
			</author>
			<updated>2022-07-06T17:29:11Z</updated>
			<id>https://forexsb.com/forum/post/69711/#p69711</id>
		</entry>
</feed>
