<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Data alerts]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/5173/" />
	<updated>2015-02-20T13:06:51Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/5173/data-alerts/</id>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/28069/#p28069" />
			<content type="html"><![CDATA[<p>Thanks for the vid! I know I maybe thick-headed sometimes, but at least I have experience - I know how to reload indicators. What I&#039;m saying is that if the reloading process is carried out numerous times and it involves error screens and subsequently fixing those errors one by one, reloading the indicator after every fix and additions, FSB Pro goes haywire! The fundamental behaviour of the indicator is changed (I&#039;m talking about calculation changes, not cosmetic stuff), it&#039;s the second time I&#039;m using Pro for indi development, and it&#039;s the second time this issue has risen. I turned back to old FSB, and it just works. I don&#039;t know...</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-02-20T13:06:51Z</updated>
			<id>https://forexsb.com/forum/post/28069/#p28069</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/28057/#p28057" />
			<content type="html"><![CDATA[<p>Footon, I made a short video about reloading custom indicators.</p><p><div class="fancy_video_tag_player"><iframe class="youtube-player" type="text/html" width="640" height="385" src="https://www.youtube.com/embed/FLuTxEB-m50" frameborder="0" allowfullscreen></iframe></div></p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-02-20T07:02:57Z</updated>
			<id>https://forexsb.com/forum/post/28057/#p28057</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/28051/#p28051" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>footon wrote:</cite><blockquote><p>Thanks, Miroslav! </p><p>I deleted the dll and recompiled, finally I was able to re-establish the base line I first had. A note to you - I did reload the indi around 10 times after modifications, that&#039;s when the indi went haywire showing totally wrong numbers (&gt;1), I don&#039;t know if you can reproduce this issue though...</p></blockquote></div><p>I am convinced this is a bug! Developer&#039;s hell. I make adjustments, reload the indi and something goes horribly wrong and those adjustments are not showing! DLL isn&#039;t reloaded and recompiled properly. Back to old days for me at the moment.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-02-20T00:25:17Z</updated>
			<id>https://forexsb.com/forum/post/28051/#p28051</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27857/#p27857" />
			<content type="html"><![CDATA[<p>Lo and behold! This is what I see</p><p><a href="http://postimg.org/image/k96vneqgb/"><span class="postimg"><img src="http://s9.postimg.org/k96vneqgb/image.jpg" alt="http://s9.postimg.org/k96vneqgb/image.jpg" /></span></a></p><p>At last, was about time.</p><p>Thank you Miroslav for that screenshot, it provided me the <strong>clue</strong>. For this project 10/100 must equal to 0.1, now it does.</p><p>That skype thing is a great proposal, except I&#039;m not into those things; I don&#039;t really know about the rest of the pack, but my development work takes more than a couple of days, porting something is easy and quick, but real development from idea to a working indi takes serious time for me. I&#039;m not a math guy by heart, so usually I learn the math stuff, then work out the code in my head, then code. Really heavy stuff involves learning the code nuances as well. Lately my code has been great, no serious debugging at all, this &quot;10/100&quot; reminded the old days, hahaa.</p><p>I&#039;ll carry on, I expect this saga to continue though, if something starts pulling south, it usually does it to the end.</p><p>Thank you again! <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-01-31T21:59:52Z</updated>
			<id>https://forexsb.com/forum/post/27857/#p27857</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27856/#p27856" />
			<content type="html"><![CDATA[<p>10 / 100 = 0</p><p><a href="http://postimg.org/image/55ffcjpg9/"><span class="postimg"><img src="http://s28.postimg.org/55ffcjpg9/screenshot_779.jpg" alt="http://s28.postimg.org/55ffcjpg9/screenshot_779.jpg" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-01-31T17:29:58Z</updated>
			<id>https://forexsb.com/forum/post/27856/#p27856</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27855/#p27855" />
			<content type="html"><![CDATA[<p>Footon, I cannot understand what you want to tell me. I even do not know if you speak for the main chart or for a separate chart. </p><p>Why do not call me via Skype and show me what you are doing. We&#039;ll fix it for a minute. </p><p>We can make a conference about building custom indicators or a webinar and to show to the users the whole process.</p><p>You know that if there is a bug in FSB Pro we&#039;ll fix it in a moment.<br />Why you are&nbsp; losing your time? For this two days you could have made five indicators.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-01-31T16:55:55Z</updated>
			<id>https://forexsb.com/forum/post/27855/#p27855</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27854/#p27854" />
			<content type="html"><![CDATA[<p>Debug mode shows beautiful round zero!</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-01-31T15:56:05Z</updated>
			<id>https://forexsb.com/forum/post/27854/#p27854</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27853/#p27853" />
			<content type="html"><![CDATA[<p>So I take it that it just doesn&#039;t print on the screen. If I were to use that in some following calculations, the value of 0.00001 should be or actually has to be respected in all circumstances.</p><p>I did check this:<br /></p><div class="codebox"><pre><code>value = (10 / 100) * 0.0001;
if (value &gt; 0) trace[iBar]= 999;</code></pre></div><p>Basically every bar on the chart has to give me the trace value, which is 999. But it doesn&#039;t, only thing I see is &quot;-&quot;...<br />Further proof is Pro crashing due to the fact that the value of 0.00001 is not passed through, only zero is.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-01-31T15:45:35Z</updated>
			<id>https://forexsb.com/forum/post/27853/#p27853</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27852/#p27852" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>What I&#039;m doing wrong that the calculation is resulting in &quot;-&quot;?</p></blockquote></div><p>There isn&#039;t anything wrong. See the code below:</p><div class="codebox"><pre><code>if (isDebug)
{
    asInfoValue[row++] = indComp.Value[bar].ToString(CultureInfo.InvariantCulture);
}
else
{
    double dl = Math.Abs(indComp.Value[bar]);
    string sFr = dl &lt; 10 ? &quot;F5&quot; : dl &lt; 100 ? &quot;F4&quot; : dl &lt; 1000 ? &quot;F3&quot; : dl &lt; 10000 ? &quot;F2&quot; : dl &lt; 100000 ? &quot;F1&quot; : &quot;F0&quot;;
    if (Math.Abs(indComp.Value[bar] - 0) &gt; 0.000001)
        asInfoValue[row++] = indComp.Value[bar].ToString(sFr);
    else
        asInfoValue[row++] = &quot;   -&quot;;
}</code></pre></div><p>If you want to see unrounded values, press <strong>F12</strong> and you&#039;ll toggle the debug mode.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-01-31T13:22:53Z</updated>
			<id>https://forexsb.com/forum/post/27852/#p27852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27851/#p27851" />
			<content type="html"><![CDATA[<p>Another issue I want to ask you:<br />when I do this</p><div class="codebox"><pre><code>(10 / 100) * 0.0001</code></pre></div><p> FSB shows &quot;<strong>-</strong>&quot; as a result.</p><p>When I declare this </p><div class="codebox"><pre><code>double value = 0.00001;</code></pre></div><p> FSB shows 0.00001 in the info panel.<br />What I&#039;m doing wrong that the calculation is resulting in &quot;-&quot;?</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-01-31T13:04:49Z</updated>
			<id>https://forexsb.com/forum/post/27851/#p27851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27850/#p27850" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Therefore, when I use the values in indi calculations it is not using the rounded ones, but the actual values, hence more precise end result but a slight deviation if rounded ones were to be used.</p></blockquote></div><p>The chart info rounds the numbers, however this doesn&#039;t reflect on the calculations. FSB Pro calculates with the full precision. The signal calculations use Sigma for calculating the signals. You can see the Indicator logic functions how it works for the different logic rules. These functions are absolutely the same in all versions of the program and also in the MQL code. Actually you can look at the MQL code for the signals and indicators calculations.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-01-31T13:02:05Z</updated>
			<id>https://forexsb.com/forum/post/27850/#p27850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27849/#p27849" />
			<content type="html"><![CDATA[<p>Thanks, Miroslav! </p><p>I deleted the dll and recompiled, finally I was able to re-establish the base line I first had. A note to you - I did reload the indi around 10 times after modifications, that&#039;s when the indi went haywire showing totally wrong numbers (&gt;1), I don&#039;t know if you can reproduce this issue though...</p><p>About the first problem I encountered (values being off by 0.00001), I&#039;m thinking the cause is that the value of the MA can be very long or near infinite, but on the info panel in FSB it is rounded. Therefore, when I use the values in indi calculations it is not using the rounded ones, but the actual values, hence more precise end result but a slight deviation if rounded ones were to be used. What do you think, is it plausible explanation?</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-01-31T11:59:47Z</updated>
			<id>https://forexsb.com/forum/post/27849/#p27849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27844/#p27844" />
			<content type="html"><![CDATA[<p>I&#039;m sure there is a very trivial explanation to that. <br />If you attach the indicator, I may find the problem.</p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-01-30T13:13:39Z</updated>
			<id>https://forexsb.com/forum/post/27844/#p27844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27843/#p27843" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Popov wrote:</cite><blockquote><div class="quotebox"><blockquote><p>I tell Pro to do this: 1.46305-1.46303. Pro answers 0.00001 ...</p></blockquote></div><p>How do you receive the answer?</p><p>There are different ways to print numbers in C#. I suggest you to use &quot;F5&quot; string format when you print prices. </p><p>See these C# examples in LINQPad.</p><p><a href="http://postimg.org/image/oe7wotk7t/"><span class="postimg"><img src="http://s28.postimg.org/oe7wotk7t/screenshot_778.jpg" alt="http://s28.postimg.org/oe7wotk7t/screenshot_778.jpg" /></span></a></p></blockquote></div><p>I receive by subtracting MA values taken from MA array, the most primitive stuff I believe.</p><p>Just started Pro again, it&#039;s like a nightmare now... I left the indicator unchanged from last night, at least yesterday it calculated correctly, only the answer was wrong, not much, but wrong. Today it&#039;s all over the place. I start to question my modest coding abilities, but luckily as a huge fan of old FSBs I have plenty of them, so I copied the same indi from Pro to one of the latest FSBs, which uses the v2/v3 indicator standard as Pro. Have I lost my sanity? Lets find out!</p><p>What I&#039;m doing:<br /></p><div class="codebox"><pre><code>answer[iBar] = MA[iBar] - MA[iBar-rearview];</code></pre></div><p>MA 14, close,simple<br />Rearview 2</p><p><strong>Pro:</strong></p><br /><p><a href="http://postimg.org/image/vuidtwoqn/"><span class="postimg"><img src="http://s27.postimg.org/vuidtwoqn/pro1.jpg" alt="http://s27.postimg.org/vuidtwoqn/pro1.jpg" /></span></a></p><p><a href="http://postimg.org/image/7iay1rocn/"><span class="postimg"><img src="http://s15.postimg.org/7iay1rocn/pro2.jpg" alt="http://s15.postimg.org/7iay1rocn/pro2.jpg" /></span></a></p><br /><p>As we can see, it&#039;s 1,46303 - 1,46365 = -0.00062. Every calculator in my household tells me the answer is <strong>-0.00062</strong>.<br />Pro shows 3,09643 !&quot;#¤[suitable cursing in your own choice and language]. </p><p>OK, maybe it&#039;s me, it usually is, so lets copy the indi to FSB, which uses the same indicator standard, meaning no indi conversions.</p><p><strong>FSB:</strong></p><p><a href="http://postimg.org/image/wvzj540lj/"><span class="postimg"><img src="http://s15.postimg.org/wvzj540lj/fsb1.jpg" alt="http://s15.postimg.org/wvzj540lj/fsb1.jpg" /></span></a></p><p><a href="http://postimg.org/image/jstkhhc8l/"><span class="postimg"><img src="http://s10.postimg.org/jstkhhc8l/fsb2.jpg" alt="http://s10.postimg.org/jstkhhc8l/fsb2.jpg" /></span></a></p><p>Again, rather straightforward 1,42451 - 1,43522 = -0,01071. And as everyone can see it IS <strong>-0,01071</strong> in the old FSB. I have an old beta FSB, it needed indi conversion, but nevertheless it performed flawlessly as well.</p><p>Upside - I&#039;m still sane. But what the hell is going wrong...</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2015-01-30T12:29:15Z</updated>
			<id>https://forexsb.com/forum/post/27843/#p27843</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Data alerts]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/27838/#p27838" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>I tell Pro to do this: 1.46305-1.46303. Pro answers 0.00001 ...</p></blockquote></div><p>How do you receive the answer?</p><p>There are different ways to print numbers in C#. I suggest you to use &quot;F5&quot; string format when you print prices. </p><p>See these C# examples in LINQPad.</p><p><a href="http://postimg.org/image/oe7wotk7t/"><span class="postimg"><img src="http://s28.postimg.org/oe7wotk7t/screenshot_778.jpg" alt="http://s28.postimg.org/oe7wotk7t/screenshot_778.jpg" /></span></a></p>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2015-01-30T05:41:50Z</updated>
			<id>https://forexsb.com/forum/post/27838/#p27838</id>
		</entry>
</feed>
