vania-janet/multiturn-rag-retrieval-data huggingface dataset:
Using any simulator will never be exactly the same as real trading.  One reason is that a simulator will always execute your trades at the exact price you want, but that may not always happen in real life. For example, if you place a limit order to buy 1000 shares of a stock at 10.50, and the price drops down to exactly 10.50, then the simulator will execute your trade and you will have 1000 shares at 10.50.  But in real life, the price of the stock may drop to 10.50, but other people may have buy orders ahead of you.  If the price of the stock drops to 10.50 but then starts going up again, you may not get all the shares that you wanted (or you may not even get any shares at all) due to the fact that people were ahead of you. In real trading there is also slippage, which you don't see in a simulator.  For example, if you have a stop order to sell 1000 shares of a stock if it drops to 7.50, then the simulator will sell all 1000 shares at 7.50 if the price drops to 7.50.  But in real trading, if the price drops to 7.50, then you may not be able to sell all 1000 shares at 7.50 if there's not enough liquidity or the market is moving very fast.  You may end up selling 100 shares at 7.50, 100 shares at 7.49, 100 shares at 7.48, 50 shares at 7.47, 50 shares at 7.46, 200 shares at 7.45, and 400 shares at 7.44. Another thing is that you don't experience the emotional aspect of trading with a simulator.  If you buy a stock in a simulator and it goes down, it's not real money, so you may be more willing to hold it and wait for it to come back up.  But if you are trading real money and the stock goes down, you may not be so willing to hold if it goes down.  You may be more apt to sell the stock for a small loss before the loss gets too big.
In your above example the Lowest Sell order was at 20.10 at time t1 and hence any buy order after time t1 for amount 20.10 or greater would match to this and the price would be 20.10. However if the Buy order was first ie at t1 there was a buy order for 20.21 and then at time later than t1, there is a sell order for say 20.10 [amount less than or equal to 20.21] it would match for 20.21. Essentially the market looks at who was the first to sell at lower price or who was the first to buy at higher price and then decide the trade. Edit [To Clarify xyz]: Say if there is an Sell order at $10 Qty 100. There is a buyer who is willing to pay Max $20 and is looking for Qty 500. Your key assumption that the Buyer does not know the current SELL price of $10 is incorrect. Now there are multiple things, the Buyer knows the lowest Sell order is at $10, he can put a matching Buy order at $10 Qty 100, and say $11 Qty 100 etc. This is painful. Second, lets say he puts a Buy order at $10 Qty 100, by the time the order hits the system someone else has put the trade at $10 and his order is fulfilled. So this buyer has to keep looking at booking and keep making adjustments, if its a large order, it would be extremely difficult and frustrating for this Buyer. Hence the logic of giving preference. The later Buy order says ... The Max I can pay is $20, match eveything at the current price and get the required shares.
"In the first situation you describe, any intelligent routing algo will send a 1000 lot order to the lit exchange in step 1. Then you get filled 1000@$10. After the fill occurs, the matching engine tells everyone what happened.   If the order book consists of 100 orders of 1 lot @ $10, and you place a ""buy 100 lots"" order, here is what happens:  1. The matching engine receives your order. 2. The matching engine matches your order against the 100 individual orders on the book. 3. The matching engine broadcasts 100 trade notifications.   No one has any opportunity to cancel their orders since they only hear of the fill after it happened.   The only way someone would have the opportunity to cancel is if there was 500 lots on one exchange and 500 on another. Then someone might observe a trade on exchange #1 and cancel their sell order on exchange #2 in response."
When you want to short a stock, you are trying to sell shares (that you are borrowing from your broker), therefore you need buyers for the shares you are selling.  The ask prices represent people who are trying to sell shares, and the bid prices represent people who are trying to buy shares. Using your example, you could put in a limit order to short (sell) 1000 shares at $3.01, meaning that your order would become the ask price at $3.01.  There is an ask price ahead of you for 500 shares at $3.00.  So people would have to buy those 500 shares at $3.00 before anyone could buy your 1000 shares at $3.01. But it's possible that your order to sell 1000 shares at $3.01 never gets filled, if the buyers don't buy all the shares ahead of you.  The price could drop to $1.00 without hitting $3.01 and you will have missed out on the trade. If you really wanted to short 1000 shares, you could use a market order.  Let's say there's a bid for 750 shares at $2.50, and another bid for 250 shares at $2.49.  If you entered a market order to sell 1000 shares, your order would get filled at the best bid prices, so first you would sell 750 shares at $2.50 and then you would sell 250 shares at $2.49. I was just using your example to explain things.  In reality there won't be such a wide spread between the bid and ask prices.  A stock might have a bid price of $10.50 and an ask price of $10.51, so there would only be a 1 cent difference between putting in a limit order to sell 1000 shares at $10.51 and just using a market order to sell 1000 shares and getting them filled at $10.50. Also, your example probably wouldn't work in real life, because brokers typically don't allow people to short stocks that are trading under $5 per share. As for your question about how often you are unable to make a short sale, it can sometimes happen with stocks that are heavily shorted and your broker may not be able to find any more shares to borrow. Also remember that you can only short stocks with a margin account, you cannot short stocks with a cash account.
You put in a market order when you want to sell to whomever raises their hand first.  It results in the fastest possible liquidation of your stock. It's appropriate when you need to sell now, regardless of price. An example of when to use it: It's 3:55 PM, the market's going to close in 5 minutes and you need to sell some stocks to make some kind of urgent payment elsewhere.  If instead you have a limit order in place, you might not reach the limit price before the market closes, and you'll still own the stock, which might not be what you want.
If you had a trading system, and by trading system I mean the criteria setup that you will take a trade on, then once a setup comes up at what price will you open the trade and at what price you will close the trade. As an example, if you want to buy once price breaks through resistance at $10.00 you might place your buy order at $10.05. So once you have a written trading system you could do backtesting on this system to get a percentage of win trades to loosing trades, your average win size to average lose size, then from this you could work out your expectancy for each trade that you follow your trading system on.
If you want to buy once the price goes up to $101 or above you can place a conditional order to be triggered at $101 or above and for a limit order to entered to buy at $102. This will mean that as soon as the price reaches $101 or above, your limit order will enter the market and you will buy at any price from $102 or below. So if the price just trickles over $101 you will end up buying at around $101 or just over $101. However, if the price gaps above $101, say it gaps up to $101.50, then you will end up buying at around $101.50. If the price gaps up above $102, say $102.50, then your limit order at $102 will hit the market but it will not trade until the price drops back to $102 or below.
It will only be placed on to the market if your buy order gets traded. So if you wanted to place your stop loss at $9.00, you would type in 9.00 in the box after ""If at or below ?"" and select if you want a limit or market order. The third condition is a ""Take profit"" conditional order. This allows you to take profits if the stock reaches a certain price. Say you wanted to take profits at 30%, that is if the price reached $13.00. So you would type in 13.00 in the box after ""If at or above ?"" and again select if you want a limit or market order. Once you have bought the stock if the stop order gets triggered then the take profit order gets cancelled automatically. If on the other hand the take profit order gets triggered then the stop loss order gets cancelled automatically. These OCO conditional orders can be placed either at the time you enter your buy order or after you have already bought the stock, and they can be edited or deleted at any time. The broker you use may have a different process for entering conditional and OCO orders such as these."
You have to look at stocks just like you would look at smaller and more illiquid markets. Stock trade in auction markets. These are analogous to ebay or craigslist, just with more transparency and liquidity. There is no guarantee that a market will form for a particular stock, or that it will sustain.  When a stock sells off, and there are no bids left, that means all of the existing bidder's limit orders got filled because someone sold at those prices. There is nothing fishy about that. It is likely that someone else wants to sell even more, but couldn't find any more bidders. If you put a bid you would likely get filled by the shareholder with a massive position looking for liquidity. You could also buy at the ask.
It looks like GOOG did not have a pre-market trade until 7:14 am ET, so Google Finance was still reporting the last trade it had, which was in the after-hours session yesterday. FB, on the other hand, was trading like crazy after-hours yesterday and pre-market today as it had an earnings report yesterday.
If it's a marketable order it will fill the front queued best bid, and if it's a limit order his becomes the new ask price. A trade does not need to occur at this price for it to become the ask. This is wrong, market makers are the opposite party to you so the prices are the other way around for them. This is wrong. There is no distinction between the market maker and yourself or any other member of the public (beside the fact that designated market makers on some exchanges are obliged to post both a bid and ask at all times). You can open an account with any broker and do exactly the same as a market maker does (although with nothing like the speed that a high frequency market-making firm can, hence likely making you uncompetitive in this arena). The prices a market maker sees and the types of orders that they are able to use to realize them are exactly the same as for any other trader.
"Well, they don't have to enter a market order. I was just saying that for your benefit.   In practice what will really happen is they'll say to themselves   ""I want ABC for no more than 70.00""  The current bid is at 69.60 They'll use a limit order on 10,000 shares. If anyone offers them more than 70.00 the computer program they're using will not accept.  However, the shares won't be bought all at once. A limit order for 10,000 shares will be spit into 1,000 shares at 69.70 and 10,000 for 69.65  The HFT can then make a reasonable guess someone is buying in bulk. So then the HFT sends out a sell order saying ""10 shares at 70.10"". The guy doesn't want that so they do it over again at 70.09  Eventually they notice when the guy accepts at 70.00  So now they knew this guy is willing to pay that. Then HFT buys all the shares they can. ALL SHARES, not just the amount the guy wants. They buy it all at 69.95, which is higher than the 69.70 the guy just paid or whatever.  They then sell it all back to the guy at 70.00  The guy has no choice because all the shares are now gone. He has to pay his highest price.   Once the guy gets his order the HFT just dumps the rest of the shares back at the price they bought them at.  edit: Another way to pull this off is to just literally build your own exchange. Then you can do all of this without any clever tricks. You can just outright give yourself preference over everyone else because you can truly decide what order the trades are being executed."
"As others have noted, your definition of ""market price"" is a bit loose.  Really whatever price you get becomes the current market price.  What you usually get quoted are the current best bid and ask with the last transaction price.  For stocks that don't trade much, the last transaction price may not be representative of the current market value. Your question included regulation (""standards bureau""), and I don't think the current answers are addressing that.  In the US, the Securities and Exchange Commission (SEC) provides some regulation regarding execution price.  It goes by the designation Regulation NMS, and, very roughly, it says that each transaction has to take the best available price at the time that it is executed.  There are some subtleties, but that's the gist of it. No regulation ensures that there will be a counterparty to any transaction that you want to make.  It could happen, for example, that you have shares of some company that you're never able to sell because no one wants them. (BitCoin is the same in this regard.  There is a currently a market for BitCoin, but there's no regulation that ensures there will be a market for it tomorrow.) Outside of the US, I don't know what regulation, if any, exists."
It's a covered call.  When I want to create a covered call position, I don't need to wait before the stock transaction settles. I enter it as one trade, and they settle at different times.
If the company has a direct reinvestment plan or DRIP that they operate in house or contract out to a financial company to administer, yes. There can still be transaction fees, and none of these I know of offer real time trading.  Your trade price will typically be defined in the plan as the opening or closing price on the trade date.  Sometimes these plans offer odd lot sales at a recent running average price which could provide a hundred dollar or so arbitrage opportunity.
High frequency trades are intra day. The would buy a stock for 100 and sell for 100.10 multiple times. So If you start with 100 in your broker account, you buy something [it takes 2-3 days to settle], you sell for 100.10 [it takes 2-3 days to settle]. You again buy something for 100. It is the net value of both buys and sells that you need to look at. Trading on Margin Accounts. Most brokers offer Margin Accounts. The exact leverage ratios varies. What this means is that if you start with 10 [or 15 or 25] in your broker you can buy stock of 100. Of course legally you wont own the stock unless you pay the broker balance, etc.
"At the most fundamental level, every market is comprised of buyers and selling trading securities. These buyers and sellers decide what and how to trade based on the probability of future events, as they see it. That's a simple statement, but an example demonstrates how complicated it can be. Picture a company that's about to announce earnings. Some investors/traders (from here on, ""agents"") will have purchased the company's stock a while ago, with the expectation that the company will have strong earnings and grow going forward. Other agents will have sold the stock short, bought put options, etc. with the expectation that the company won't do as well in the future. Still others may be unsure about the future of the company, but still expecting a lot of volatility around the earnings announcement, so they'll have bought/sold the stock, options, futures, etc. to take advantage of that volatility. All of these various predictions, expectations, etc. factor into what agents are bidding and asking for the stock, its associated derivatives, and other securities, which in turn determines its price (along with overall economic factors, like the sector's performance, interest rates, etc.) It can be very difficult to determine exactly how markets are factoring in information about an event, though. Take the example in your question. The article states that if market expectations of higher interest rates tightened credit conditions... In this case, lenders could expect higher interest rates in the future, so they may be less willing to lend money now because they expect to earn a higher interest rate in the future. You could also see this reflected in bond prices, because since interest rates are inversely related to bond prices, higher interest rates could decrease the value of bond portfolios. This could lead agents to sell bonds now in order to lock in their profits, while other agents could wait to buy bonds because they expect to be able to purchase bonds with a higher rate in the future. Furthermore, higher interest rates make taking out loans more expensive for individuals and businesses. This potential decline in investment could lead to decreased revenue/profits for businesses, which could in turn cause declines in the stock market.
You have no guarantees. The stock may last have traded at $100 (so, the market price is $100), but is currently in free-fall and nobody else will be willing to buy it for any more than $80. Or heck, maybe nobody will be willing to buy it at all, at any price. Or maybe trading on this stock will be halted. Remember, the market price is just what the stock last traded at. If you put in a 'market order', you are ordering your broker to sell at the best available current price. Assuming someone's willing to buy your stock, that means you'll sell it. But if it last traded at $100, this doesn't guarantee you'll sell at anything close to that.
I work in a firm that performs this kind of execution for a number of instutional traders. We sell a number of algorithms, and a lot of research goes into building good market signals and forecasts, but the basic idea is that we make a trade-off between time to execute and market impact. This generally means that we're doing a mix of everything you said; we will join the bid for some fraction of our size, and also hit the offer when it looks like the price might be moving away from us. In some certain situations we will even sweep the book several levels deep to avoid tipping off market makers and having them adjust in anticipation of the rest of our order.
Market Makers are essentially just there to process the buys and sells of traders, so just like you and I buy and sell at the ask and bid prices they do to. They are just completing the process of making our orders a reality. Market makers are just representative of brokers, meaning that when you place your order at ask or bid, you are placing that particular brokers order at ask or bid. People often say that certain brokers have too many shares and claim that they are games when really that just means that there happen to be a lot of people using a particular broker all at once, or more troubling, perhaps even company execs using a broker, to sell a large amount of shares.
"Margin trades let you post a margin of a certain proportion of the value of the trade as collateral against the price of a trade and pay off the difference between the current price and the price that you bought at. Any losses incurred are taken from the margin so the margin has to be maintained as prices change. In practice this means that when the price moves significantly from the buying price a ""margin call"" is triggered and the buyer has to increase their posted margin. The vast majority of the foreign exchange trades done every day are margin trades as (effectively) are all spread bets. Margins get reset overnight whether or not a call has occurred."
A stock is only worth what someone is willing to pay for it. If it trades different values on different days, that means someone was willing to pay a higher price OR someone was willing to sell at a lower price.  There is no rule to prevent a stock from trading at $10 and then $100 the very next trade... or $1 the very next trade. (Though exchanges or regulators may halt trading, cancel trades, or impose limits on large price movements as they deem necessary, but this is beside the point I'm trying to illustrate). Asking what happens from the close of one day to the open of the next is like asking what happens from one trade to the next trade... someone simply decided to sell or pay a different price.  Nothing needs to have happened in between.
The purpose of a market order is to guarantee that your order gets filled. If you try to place a limit order at the bid or ask, by the time you enter your order the price might have moved and you might need to keep amending your limit order in order to buy or sell, and as such you start chasing the market. A market order will guarantee your order gets executed. Also, an important point to consider, is that market orders are often used in combination with other orders such as conditional orders. For example if you have a stop loss (conditional order) set at say 10% below your buy price, you might want to use a market order to make sure your order gets executed if the price drops 10% and your stop loss gets triggered, making sure that you get out of the stock instead of being stuck with a limit order 10% below your buy price whilst the stock keeps falling further.
"Without going into minor details, an FX transaction works essentially like this. Let's assume you have SEK 100 on your account. If you buy 100 USD/RUB at 1.00, then that transaction creates a positive cash balance on your account of USD 100 and a negative cash balance (an overdraft) of RUB 100. So right after the transaction (assuming there is not transaction cost), the ""net equity"" of your account is: 100 SEK + 100 USD - 100 RUB = 100 + 100 - 100 = 100 SEK. Let's say that, the day after, the RUB has gone down by 10% and the RUB 100 is now worth SEK 90 only. Your new equity is: 100 SEK + 100 USD - 100 RUB = 100 + 100 - 90 = 110 SEK and you've made 10%(*): congrats! Had you instead bought 100 SEK/RUB, the result would have been the same (assuming the USD/SEK rate constant). In practice the USD/SEK rate would probably not be constant and you would need to also account for: (*) in your example, the USD/RUB has gone up 10% but the RUB has gone down 9.09%, hence the result you find. In my example, the RUB has gone down 10% (i.e. the USD has gone up 11%)."
"Because it takes 3 business days for the actual transfer of stock to occur after you buy or sell to the next owner, your cash is tied up until that happens. This is called the settlement period. Therefore, brokers offer ""margin"", which is a form of credit, or loan, to allow you to keep trading while the settlement period occurs, and in other situations unrelated to the presented question. To do this you need a ""margin account"", you currently have a ""cash account"". The caveat of having a retail margin account (distinct from a professional margin account) is that there is a limited amount of same-day trades you can make if you have less than $25,000 in the account. This is called the Pattern Day Trader (PDT) rule. You don't need $25k to day trade, you will just wish you had it, as it is easy to get your account frozen or downgraded to a cash account. The way around THAT is to have multiple margin accounts at different brokerages. This will greatly increase the number of same day trades you can make. Many brokers that offer a ""solution"" to PDT to people that don't have 25k to invest, are offering professional trading accounts, which have additional fees for data, which is free for retail trading accounts. This problem has nothing to do with:  So be careful of the advice you get on the internet. It is mostly white noise. Feel free to verify"