Take the 2-minute tour ×
Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It's 100% free, no registration required.

I have a feed in real time that lists the ask and bid orders.

Each order consists of a value and a quantity.

I want to calculate the percentage of short orders from the total orders in terms of quantity.

So far i have this:

    Sum(askOrderQuantities)/( Sum(askOrderQuantities+ Sum(bidOrderQuantities))

As far as i know selling is not the same as short. most ask orders are way above market price. This means that they will not go through anytime soon. Does this mean they are long because the seller is betting the price will go up?

Edit: I am trying to find a percentage that represents people going short of the total market, weighing in the quantity they are using. This is for the forex market. I have the following data in real time:

   Order sheet
   Ticker
   Market trade history
share|improve this question
    
Hi Sherif Eweis, welcome to quant.SE! Unfortunately I'm not really clear on what your asking. Can you please check that you use the definitions right? –  Bob Jansen Aug 16 at 18:03
    
Are you distinguishing limit and market-orders? –  emcor Aug 16 at 18:11
    
You will not be able to tell short orders from sell orders, and furthermore, it doesn't look like you have any trade data at all. All you have is orders to sell and orders to buy. The problem you are going to (eventually) have is you cannot determine whether a reduction of the size on one side of the order book is caused by a fill (someone selling via taking liquidity) or by someone cancelling their resting buy order (possibly in anticipation of buying via taking liquidity). –  experquisite Aug 16 at 23:00

1 Answer 1

Perhaps you might have to "match" Tick data to the best bid/offer to see which price(s) go through... If say the spread is 35.50/36.50 and the tick at that moment is 36.50 then we can consider this to be "buyer initiated" and of course if the tick is 35.50 then it becomes "seller initiated". That is to say if the price is above the average of the current spread we can consider it to "buyer initiated" and "seller initiated" if the price is below the average best bid/offer.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.