<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>On the importance of sanity-checking values where money is involved</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2009/06/08/9705184.aspx</link><description>Swapped positions.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: On the importance of sanity-checking values where money is involved</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2009/06/08/9705184.aspx#9716485</link><pubDate>Tue, 09 Jun 2009 19:49:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9716485</guid><dc:creator>Aaron G</dc:creator><description>&lt;p&gt;My brokerage/trading software actually does do this. &amp;nbsp;I've seen a warning to the effect of &amp;quot;your limit price is very far off from the current market price&amp;quot;, and that warning has to be checked before the trade is accepted.&lt;/p&gt;
&lt;p&gt;The irony is that the amount was perfectly sane, but because I was entering the trade just before market open, it was showing the market price as $0.00, so it was actually their error, not mine.&lt;/p&gt;
&lt;p&gt;@keith: Limit orders are a service that brokerages provide to retail investors. &amp;nbsp;If you ARE the brokerage, or some other institution, or you use the ECN, you have the ability to put in orders for a specific price. &amp;nbsp;That's how the stock market really works on the inside; a &amp;quot;market&amp;quot; order through your brokerage is just a proxy buy/sell order at the current ask/bid price.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9716485" width="1" height="1"&gt;</description></item><item><title>re: On the importance of sanity-checking values where money is involved</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2009/06/08/9705184.aspx#9716024</link><pubDate>Tue, 09 Jun 2009 16:34:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9716024</guid><dc:creator>keith</dc:creator><description>&lt;p&gt;Unless this is a thinly-traded stock, it does not make sense that the order would be filled at 100K. &amp;nbsp;If there was an order for 28 shares with a 100K limit price, it could be fulfilled by any market trade less than 100K (the limit price is a cap, not necessarily the actual price; I believe the contract language is &amp;quot;&amp;lt;my price&amp;gt; or better&amp;quot;). &amp;nbsp;Again, unless this was a very illiquid stock, or the buyer used after-hours trading, or other non-normal approach, I would expect some trader or organization (for example a value-based mutual fund or hedge fund) with an interim price based on a fair-value metric (say &amp;quot;the price at 30x P/E&amp;quot;, which, if we're generous for the example could be up to 10x the current price, say $270; there are surely people who dial in a ten-bagger in a GTC limit order) sell limit order on the books. &amp;nbsp;If the exchange filled this order at $100K before filling any booked intermediate sell limit orders, they failed all limit sellers, not just the insane buyer. &amp;nbsp;Plus, with just 28 shares in the trade, that should be fast to clear the market at a one-uptick market price. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or does the quotation range just show recent and active quotes and bids, not necessarily the actual amounts at which trades occured (in which case, one would expect the price to uptick steadily from the entry of the market until the buy was filled; with only 28 shares, it's probably been filled at a little higher than the steady state, but not extremely; and the bid is still recent enough to populate the trading range)?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9716024" width="1" height="1"&gt;</description></item><item><title>re: On the importance of sanity-checking values where money is involved</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2009/06/08/9705184.aspx#9715984</link><pubDate>Tue, 09 Jun 2009 16:18:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9715984</guid><dc:creator>Frank Wilhoit</dc:creator><description>&lt;p&gt;The deep issue here is that users use automations as if they were paper forms, where you can overflow the boxes, put things in the wrong places, scribble notes in the margins, and reasonably hope that somebody will understand what you meant. &amp;nbsp;This comes to the design of legacy business processes, which sometimes cannot be automated without forcibly reducing the human heuristics that have gone into them for years.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9715984" width="1" height="1"&gt;</description></item><item><title>re: On the importance of sanity-checking values where money is involved</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2009/06/08/9705184.aspx#9715978</link><pubDate>Tue, 09 Jun 2009 16:15:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9715978</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;If this trade actually went through, could that trigger limit orders?&lt;/p&gt;
&lt;p&gt;That's kind of scary if so.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9715978" width="1" height="1"&gt;</description></item><item><title>re: On the importance of sanity-checking values where money is involved</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2009/06/08/9705184.aspx#9714127</link><pubDate>Tue, 09 Jun 2009 11:31:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9714127</guid><dc:creator>Jules</dc:creator><description>&lt;p&gt;The odd thing about the image in the link is that, based on the location of the arrow, what the submitter seems to be saying is: look, &amp;quot;last close&amp;quot; is outside of the range in &amp;quot;day's range&amp;quot;. &amp;nbsp;Which is, of course, to be expected.&lt;/p&gt;
&lt;p&gt;I've seen stuff like this happen on LSE, too, which is manually traded like NYSE. &amp;nbsp;Not to quite that extreme, but (for example) I remember investigating a glitch in one of our systems here that was caused when the price for a share dropped momentarily from 450ish to 45.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9714127" width="1" height="1"&gt;</description></item><item><title>re: On the importance of sanity-checking values where money is involved</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2009/06/08/9705184.aspx#9713682</link><pubDate>Tue, 09 Jun 2009 10:35:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9713682</guid><dc:creator>silky</dc:creator><description>&lt;p&gt;well, not only is sanity checking relevant, but the physical layout of the interface is critical.&lt;/p&gt;
&lt;p&gt;you wouldn't pop something up, probably you'd re-confirm and show a list of previously entered data, highlighting just how out of range the entered one is.&lt;/p&gt;
&lt;p&gt;there could also be a seperate confirmation to check the state of your position after the trade. if you see you still have 99972 shares, you may question things.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9713682" width="1" height="1"&gt;</description></item><item><title>re: On the importance of sanity-checking values where money is involved</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2009/06/08/9705184.aspx#9709730</link><pubDate>Tue, 09 Jun 2009 00:59:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9709730</guid><dc:creator>Harshdeep</dc:creator><description>&lt;p&gt;A similar thing happened yesterday - &lt;a rel="nofollow" target="_new" href="http://harshdeep.wordpress.com/2009/06/08/biggest-stock-price-movement-ever"&gt;http://harshdeep.wordpress.com/2009/06/08/biggest-stock-price-movement-ever&lt;/a&gt;. I'm not sure if it was a &amp;quot;clearly erroneous transaction&amp;quot; or some parsing error by Google.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9709730" width="1" height="1"&gt;</description></item><item><title>re: On the importance of sanity-checking values where money is involved</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2009/06/08/9705184.aspx#9709376</link><pubDate>Tue, 09 Jun 2009 00:08:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9709376</guid><dc:creator>David Hayes</dc:creator><description>&lt;p&gt;This happens, most exchanges will cancel the trade and/or suspend trading on the stock if something like this happens. You'll get a big slap on the wrist from the exchange so most trading systems will refuse a trade more than a certain distance from the last traded price.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9709376" width="1" height="1"&gt;</description></item><item><title>re: On the importance of sanity-checking values where money is involved</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2009/06/08/9705184.aspx#9708635</link><pubDate>Mon, 08 Jun 2009 21:05:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9708635</guid><dc:creator>porter</dc:creator><description>&lt;p&gt;How about&lt;/p&gt;
&lt;p&gt;&amp;quot;You are clearly insane, do you want to continue?&amp;quot;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9708635" width="1" height="1"&gt;</description></item><item><title>re: On the importance of sanity-checking values where money is involved</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2009/06/08/9705184.aspx#9708445</link><pubDate>Mon, 08 Jun 2009 19:39:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9708445</guid><dc:creator>JZ</dc:creator><description>&lt;p&gt;NASDAQ does have a policy for things like this: &lt;a rel="nofollow" target="_new" href="http://www.nasdaqtrader.com/Trader.aspx?id=ClearlyErroneous"&gt;http://www.nasdaqtrader.com/Trader.aspx?id=ClearlyErroneous&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I enjoy the ambiguity of &amp;quot;Clearly Erroneous Transaction Policy.&amp;quot;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9708445" width="1" height="1"&gt;</description></item></channel></rss>