Jump to content
Medved Trader Forums

Bid/Ask Size

Recommended Posts

  • 5 weeks later...

Changes in size are way too chaotic/frequent. You'd have to save it on every tick, not on every candle - and that's a lot of data.

You know how you have a FIFOQueue? I recently added a TimedQueue. Instead of saving N values, it stores N seconds' worth of values - each value (internally) has a timestamp and it gets removed as it goes out of the time scope. As it is now, you don't get to set the timestamp of the value, it gets set to the current system time at the time you're adding it.

This would allow you to store let's say 60 seconds minutes worth of bid/ask sizes and be able to analyze them.

Note that unlike FIFOQueue, you would not need to save/restore it as a state variable. Just keep adding the new values to it.


Link to comment
Share on other sites

This would be quite valuable. With every executed order that prints if we could pull the bid and ask and store it to say, measure how much the spread fluctuates over a given time frame... You could create an indicator to measure spread volatility. Might provide some really good insight into how dangerous a particular stock would be to trade.

Edited by Jason
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...