Questions tagged [order]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
94 views

Delta across futures markets vs respective micros

I short term trade futures markets, and I use the DOM (depth of market) and various volume indicators, like cumulative delta, and footprint charts. I used to trade MES, but I switched over to ES, and ...
Ali Ragb's user avatar
0 votes
0 answers
251 views

How a trade influence the forex market?

I'm trying to program a basic forex simulator in order to test strategies. But I don't know how is influenced the market when a position is opened or closed. For example, if I open a 10 000 000 € BUY ...
Bertrand125's user avatar
0 votes
1 answer
59 views

Difference between real and expected average transaction price of an order?

This might be a really simple question but I'm quite confused. I've been given a limit order book (I don't think it's necessary to upload it for my question but I can if you want me to) and I've been ...
Charlie P's user avatar
2 votes
1 answer
542 views

Limit Order Book disaster recovery technique

I have designed a fast limit order book, similar to the one described here. It is working and passing the unit tests. Now, I am thinking of its reliability. i.e in case of failure (e.g unhandled ...
M. Saqib Arfeen's user avatar
0 votes
1 answer
152 views

Stock market simulator coding problem

I'm working on a coding problem that I was given for simulating a stock market simulator. I don't really know anything about the stock market, but the instructions state that stock market domain ...
westcoaststudent's user avatar
0 votes
0 answers
58 views

Fake Order Detection

Sometimes there is a limit order inserted as the best sell/bid, but when my program sees the opportunity and places a market order immediately trying to hit it, it's canceled which causes a big ...
frank's user avatar
  • 43
1 vote
1 answer
569 views

Difference between IOC and FOK orders

I am trying to understand the difference between FOK and IOC orders. If I send a market FOK or IOC order to sell 100 shares of StockX - what would happen if the orderbook looked like this? ...
assangar's user avatar
7 votes
2 answers
612 views

What are the main types of orders on an exchange?

I'm currently reading Michael Lewis' Flash Boys, which is about high-frequency trading. It was published in 2014 and it says that there are 150 types of orders on exchanges (mainly built for high-...
curiousTrader's user avatar
0 votes
2 answers
152 views

How does a Stock Exchange Provider implement a Stop-Loss Order?

If I place a stop loss order at my provider. Is this order directly forwarded to the stock exchange? Or does my provider implement this logic. If so, do they have to declare any delays that arise by ...
hpc64's user avatar
  • 3
1 vote
3 answers
2k views

what happens when a stock price gaps over buy/sell stop order?

Example for clarification. Let's say the stock price is 50 and i am trading intraday on the 5 minute chart and place a sell stop order at 48. But then the next 5 minute candle opens at 45 and goes ...
harry's user avatar
  • 11
1 vote
0 answers
80 views

What kind of ARMA-GARCH model is that?

My question is what kind of ARMA-GARCH model is the following equation and how to specify it in rugarch R module: $$r_{t+1}- r_t = \alpha_0 + \alpha_1r_t+\...
White Noise's user avatar
3 votes
0 answers
441 views

How to identify buy walls and sell walls from a limit orderbook?

I am trying to get notified of buy walls and sell walls from a limit orderbook and I had a couple of ideas and would appreciate some insight into these Take the mean quantity and anything above the ...
PirateApp's user avatar
  • 131
2 votes
2 answers
1k views

Order books theoretical price

Suppose we have the following bid/ask spread for a particular stock: What is the theoretical value of the stock? Now suppose we have: What is the theoretical value of the stock? Now suppose a ...
Sameer Lal's user avatar
2 votes
0 answers
73 views

IBrokers: How to assign trail amount for order type 'TRAIL'?

I'm using R package IBrokers with IB TWS. I'm trying to create a twsOrder object using twsOrder function: twsOrder(...., orderType = 'TRAIL', ...) How can I ...
Deb's user avatar
  • 21
1 vote
0 answers
50 views

How to debit user balance on market buy order?

Suppose that the user's balance is debited before his order is sent to the matching engine. The debiting is done to ensure that the user has sufficient balance and that he is not submitting orders ...
Soggiorno's user avatar
  • 111
1 vote
0 answers
125 views

Is it possible to place hidden order inside spread when trading E-mini S&P 500?

My question is not about hidden orders in general. In equity market a trader can post his hidden order inside spread, is it the same way for E-mini S&P 500?
Soheil's user avatar
  • 123
1 vote
1 answer
134 views

Why some exchanges enforce that you send the total quantity (fill qty + open qty) when changing the order size?

Is it to protect against overfills? Can anyone explain in simple terms?
Peter Mel's user avatar
  • 253
2 votes
2 answers
1k views

why is there a cancel/replace message in FIX?

Couldn't we just cancel existing order and enter new order? Is there any other reason apart from a communication overhead that now we need to send 2 messages vs just 1 message to cancel replace?
Medicine's user avatar
  • 155
7 votes
2 answers
3k views

Order Execution Algorithms

To execute large orders under minimum price impact or to hide a market view, trading systems sometimes utilize special order execution algorithms or order types. One example is an iceberg order, ...
emcor's user avatar
  • 5,749
0 votes
4 answers
200 views

How can one get broker order data?

Is there any chance to get order data from any broker with a label from which account it came from? The accounts can be anonymized, i just need to identify an account's orders sent. Any help will ...
Tomas Pazur's user avatar
1 vote
0 answers
43 views

order routing for a fill [closed]

Lets assume a FIFO rules in futures, I buy a contract and id like to sell it. Should I estimate the possibilite of orders on opposite side would be filled first? If I watch new orders incoming at new ...
Delawer's user avatar
  • 11
3 votes
1 answer
349 views

How to model bracket orders?

I'm looking for a way to make my own Python backtester (like zipline or pyalgotrade) or improve one of these backtesters. One major lack of these backtesters is the lack of support of bracket orders (...
Femto Trader's user avatar
6 votes
3 answers
871 views

What is the correct / expected behavior for a market order sent to an empty book?

Should it stick around until liquidity shows up? (GTC) Should it cancel any size for which there is no liquidity? (IOC) Is there such a thing as Market GTC or Market Orders must always be IOC?
chrisapotek's user avatar
8 votes
3 answers
1k views

Papers and algorithms on bidding schemes for best order execution?

I'm building an automated option trading bot that executes common options multi-leg strategies (straddles, spreads) and I want to learn the best way to execute my orders. As you know, the bid-ask ...
cowmoo's user avatar
  • 131
2 votes
2 answers
307 views

Where do these Orders come from and what do they mean?

Good morning! I was looking at an order book yesterday and saw orders which I haven't seen before. Normally an order in the order book consists of the total volume, the price and how many sellers/...
L.Butz's user avatar
  • 129
5 votes
3 answers
1k views

How do Order Management/Matching Systems match/allocate orders (and filled prices)?

I am working on an improvement of my company's order allocation system. We run a central Order Management System (OMS) but currently performance attribution from filled orders leaves room for ...
Matt Wolf's user avatar
  • 14.4k
2 votes
2 answers
240 views

How do you handle order tracking (without unique Lot ID's)

Hypothetical Trade: I buy 10,000 shares of ASTC using a broker API. The order is filled in 4 similar lots; ...
Autowealth's user avatar
3 votes
2 answers
426 views

Data feed that shows individual orders

Does anyone know how I can obtain time and sales data for a stock? Lots of feeds provide the total volume but I would like to see the breakdown of what buy/sell orders made up the day's volume. I ...
dev's user avatar
  • 131
5 votes
3 answers
2k views

Is it worth preserving orderbook structure when building it from individual orders?

Say I'm building an order book and two bids come in at price $p$ and volumes $v_1$ and $v_2$. Which option is better To store the order as $\{p, v_1+v_2\}$ or To store the order as $\{p,v_1\}$ and $\{...
Dmitri Nesteruk's user avatar
1 vote
2 answers
897 views

Order and position management in (semi-)automated trading system

A simple and lazy approach to implementing an order and position management (OPM) component in a (semi-)automated trading system: leave most OPM to counter party (broker/exchange). Even then funds ...
Konsta's user avatar
  • 781