<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — FSB/FST trading discrepancies - Markup]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/3419" />
	<updated>2012-06-28T22:25:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/3419/fsbfst-trading-discrepancies-markup/</id>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15225/#p15225" />
			<content type="html"><![CDATA[<p>Yes, this is a perfect solution. I think FST is more robust with this change.</p>]]></content>
			<author>
				<name><![CDATA[SpiderMan]]></name>
				<uri>https://forexsb.com/forum/user/4094/</uri>
			</author>
			<updated>2012-06-28T22:25:49Z</updated>
			<id>https://forexsb.com/forum/post/15225/#p15225</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15211/#p15211" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>SpiderMan wrote:</cite><blockquote><p>The close option sounds like a good solution. I haven&#039;t even thought about it but I presume the same thing applies when entering a&nbsp; short position.</p></blockquote></div><p>Close option must be good for both directions. It fixes the markup issue. In English it sounds like that:<br />Enter long when last chart price touches or breaks through the indicator entry price. Actual order price is the broker&#039;s Bid for a short position and broker&#039;s Ask for a long position.</p><p>If there is no Markup, Bid = Close at any moment. (We have Bid charts.)<br />If broker uses Markup, Bid price is always below the chart&#039;s last price.</p><p>I think even to leave &quot;Close&quot; option to be the default one. It must work well in both cases.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2012-06-28T04:42:26Z</updated>
			<id>https://forexsb.com/forum/post/15211/#p15211</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15205/#p15205" />
			<content type="html"><![CDATA[<p>The close option sounds like a good solution. I haven&#039;t even thought about it but I presume the same thing applies when entering a&nbsp; short position.</p>]]></content>
			<author>
				<name><![CDATA[SpiderMan]]></name>
				<uri>https://forexsb.com/forum/user/4094/</uri>
			</author>
			<updated>2012-06-27T22:36:02Z</updated>
			<id>https://forexsb.com/forum/post/15205/#p15205</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15201/#p15201" />
			<content type="html"><![CDATA[<p>Markup can be included in an indicator for FST. Its values are not collected in an array but the current value is available with the following code:</p><div class="codebox"><pre><code>double Markup = Data.LastClose - Data.Bid; // As price. Ex. 0.00003

double Markup = Math.Round((Data.LastClose - Data.Bid) / Data.InstrProperties.Point); // As points. Ex. 3</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2012-06-27T15:50:28Z</updated>
			<id>https://forexsb.com/forum/post/15201/#p15201</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15199/#p15199" />
			<content type="html"><![CDATA[<p>When we lost a trade, we investigate the reasons and try to correct the strategy or software.<br />When broker lost a trade, he investigate the reasons and changes the rules.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2012-06-27T14:56:21Z</updated>
			<id>https://forexsb.com/forum/post/15199/#p15199</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15197/#p15197" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>SpiderMan wrote:</cite><blockquote><div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>Any comments?</p></blockquote></div><p>I would have thought that closing prices would have been covered by the logic slots. In this case we are looking to trade if a level is touched rather than where the close is. Maybe in trade settings add a &quot;broker markup&quot; option to add or subtract an offset. With the broker shown in my screen shots it is 0.6 pips.</p></blockquote></div><p>Not a good idea I&#039;m afraid as my markup went from 0.3 to 0.5, something tells me &quot;the best&quot; is yet to come...</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2012-06-27T14:46:05Z</updated>
			<id>https://forexsb.com/forum/post/15197/#p15197</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15194/#p15194" />
			<content type="html"><![CDATA[<p>A testing version with this option is published here: <a href="http://forexsb.com/forum/topic/3422/fst-1411-nightly-build/">FST 1.4.11 Nightly Build</a></p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2012-06-27T13:35:26Z</updated>
			<id>https://forexsb.com/forum/post/15194/#p15194</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15192/#p15192" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>I would have thought that <strong>closing prices</strong> would have been covered by the logic slots.</p></blockquote></div><p>I mean close price of current bar. MT4 shows the last tick price as bar close even if it is in the middle of the bar&#039;s time span. Normally Close = Bid but in your case Close = Bid&nbsp; + Markup.</p><p>I already made a new version of FST with this features, but cannot test it properly since my broker doesn&#039;t use Markup. I&#039;ll publish the new version in Developers forum in minutes. Markup info will be available in the Market Info window.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2012-06-27T13:11:41Z</updated>
			<id>https://forexsb.com/forum/post/15192/#p15192</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15191/#p15191" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><p>Any comments?</p></blockquote></div><p>I would have thought that closing prices would have been covered by the logic slots. In this case we are looking to trade if a level is touched rather than where the close is. Maybe in trade settings add a &quot;broker markup&quot; option to add or subtract an offset. With the broker shown in my screen shots it is 0.6 pips.</p>]]></content>
			<author>
				<name><![CDATA[SpiderMan]]></name>
				<uri>https://forexsb.com/forum/user/4094/</uri>
			</author>
			<updated>2012-06-27T13:04:05Z</updated>
			<id>https://forexsb.com/forum/post/15191/#p15191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15190/#p15190" />
			<content type="html"><![CDATA[<p>And again we have to workaround brokers&#039; pitfalls.</p><p>My first idea for a solution is to introduce a new option in <br /><strong>Trade Settings</strong> -&gt; <strong>Long logic rule base price</strong> -&gt; <strong>Close</strong></p><p>The current default option value is &quot;Bid&quot;. It means that when Bit price touches the entry level, FST sends an order.<br />&quot;Close&quot; option will check when Close price touches the entry level. Close price must be what MT4 sends for last chart value. The real deal will be executed at the actual trading prices.</p><br /><p>Code for basePrice and oldPrice will be something like that:<br /></p><div class="codebox"><pre><code>double basePrice;
double oldPrice;

switch (Configs.LongTradeLogicPrice)
{
    case &quot;Ask&quot;:
        basePrice = Data.Ask;
        oldPrice = Data.OldAsk;
        break;
    case &quot;Close&quot;:
        basePrice = Data.Close[Bars-1];
        oldPrice  = Data.OldClose[Bars-1];
        break;
    default: // case &quot;Bid&quot;:
        basePrice = Data.Bid;
        oldPrice = Data.OldBit;
        break;
}</code></pre></div><p>Any comments?</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2012-06-27T11:40:19Z</updated>
			<id>https://forexsb.com/forum/post/15190/#p15190</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15189/#p15189" />
			<content type="html"><![CDATA[<p>Got the answer fairly quickly, it is called markup, additional fee broker gets from us on top of spread. </p><p>Explanation here: <a href="http://www.investopedia.com/terms/m/markup.asp#axzz1yzPqbtH7">http://www.investopedia.com/terms/m/mar … z1yzPqbtH7</a></p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2012-06-27T10:55:21Z</updated>
			<id>https://forexsb.com/forum/post/15189/#p15189</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15188/#p15188" />
			<content type="html"><![CDATA[<p>I turned ask line on, it showed up, but still not near the real ask line. </p><p><a href="http://postimage.org/image/6spxhptsp/"><span class="postimg"><img src="http://s12.postimage.org/6spxhptsp/ask_line.jpg" alt="http://s12.postimage.org/6spxhptsp/ask_line.jpg" /></span></a></p><p>I&#039;ll ask my broker.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2012-06-27T10:36:25Z</updated>
			<id>https://forexsb.com/forum/post/15188/#p15188</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15184/#p15184" />
			<content type="html"><![CDATA[<p>The plot thickens!</p><p>I have turned on the ASK line in the options and it doesn&#039;t display. Below is a screenshot of MT4 with the trading window up which clearly shows the bid price on the chart as 0.6 pips higher than the bid price in the trading window. The bid/ask spread is 2.4 pips so the price line is not the middle price.</p> <br /><p><a href="http://postimage.org/image/cwt9yfugj/"><span class="postimg"><img src="http://s13.postimage.org/cwt9yfugj/Program_Manager_2012_06_27_14_55_33.jpg" alt="http://s13.postimage.org/cwt9yfugj/Program_Manager_2012_06_27_14_55_33.jpg" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[SpiderMan]]></name>
				<uri>https://forexsb.com/forum/user/4094/</uri>
			</author>
			<updated>2012-06-27T05:19:35Z</updated>
			<id>https://forexsb.com/forum/post/15184/#p15184</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15182/#p15182" />
			<content type="html"><![CDATA[<p>Is option &quot;Show Ask Line&quot; from Tools - Chart of MT4 menu activated? I&#039;m not sure what it is doing, but it sounds to me that the chart should show Ask prices.</p><p>Ears ago some brokers were drawing middle price chart (Bid + Ask) / 2 instead of Bid charts.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2012-06-27T00:55:53Z</updated>
			<id>https://forexsb.com/forum/post/15182/#p15182</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FSB/FST trading discrepancies - Markup]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/15181/#p15181" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>SpiderMan wrote:</cite><blockquote><p>This is becoming more interesting. I have accounts with 2 brokers and I am running the same system on both. One broker didn&#039;t execute the trade, the other did. As you suggested Footon, I compared the actual bid price with the price on the chart. With one broker it is identical and the bid price is the same as the chart price, with the other the bid price is actually a constant 0.6 pips lower than the price on the chart, this is why my .2 pips difference was enough to trigger the trade.</p><p>The question I why the difference, the spreads look the same?</p></blockquote></div><p>Yeah, I was pretty puzzled when I discovered the difference. For my variable spread account, bid is 0.3 lower and that distance is 90% of the time there, it seems almost like a fixed spread to me. There has to be a catch why broker is doing this, but I haven&#039;t figured it out yet. </p><p>It is very interesting news that your other broker quotes bid on chart correctly. Is it dirty vs honest broker here?</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2012-06-26T22:34:40Z</updated>
			<id>https://forexsb.com/forum/post/15181/#p15181</id>
		</entry>
</feed>
