SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Wed Nov 21, 2018 3:47 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Fri Oct 07, 2016 10:37 am 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 221
Hi,

How do you calculate volume in this case it does not appear to correlating to my trade volume data.


Top
 Profile  
 
PostPosted: Fri Oct 07, 2016 10:39 am 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6808
(ask.Size + bid.Size) / 2 ?


Top
 Profile  
 
PostPosted: Fri Oct 07, 2016 12:52 pm 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 221
ah ok i thought the volume component would be like the bars based on trades. But it is pretty easy for derive trade volume.


Top
 Profile  
 
PostPosted: Fri Oct 07, 2016 12:57 pm 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6808
Well, usually people construct bars from bids and asks in Forex, where you don't have trades in the market data stream... so no trade volume anyway...

Regards,
Anton


Top
 Profile  
 
PostPosted: Sat Oct 08, 2016 11:21 am 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 221
I tend to use mid price and inverse weighted mid price (bid ask imbalance) quite heavily for intra day trading when down sampling because the using trade price gives too much jitter, and the bid ask spread also tends to swamp out other effects.


Top
 Profile  
 
PostPosted: Sat Oct 08, 2016 6:42 pm 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6808
Something like price = (bid.Price*bid.Size + ask.Price*ask.Size) / (bid.Size + ask.Size) ?


Top
 Profile  
 
PostPosted: Sun Oct 09, 2016 10:01 am 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 221
Other way round :

(bid.Price*ask.Size + ask.Price*bid.Size) / (bid.Size + ask.Size)

but also with you can take into account the last price that traded in your function as well you get a weighted function since the last price that traded is slightly more likely to trade again.

I have also found predictive significance in quote/trade intensity and

(trades@ask - trades@bid)/(trades@ask + trades@bid)

useful but you need do irregular time exponential smoothing possibly Kalman,

or regular bar time/volume based smoothing.


Top
 Profile  
 
PostPosted: Mon Oct 17, 2016 3:42 pm 
Offline

Joined: Tue Aug 05, 2003 3:43 pm
Posts: 6808
Quote:
(bid.Price*ask.Size + ask.Price*bid.Size) / (bid.Size + ask.Size)



Are you sure? This doesn't look like weighted average. I think the idea is that if bid size is much larger than ask size, then we use bid price. In your formula we would use ask price instead.


Top
 Profile  
 
PostPosted: Fri Oct 21, 2016 3:58 pm 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 221
Wait if the bid price is much larger than the ask then the ask is more likely to trade next therefore the ask is the price you want to consider. The conditional probability of an uptick is higher than a down tick.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group