Several questions about Time&Sales, DOM and tick data on the chart

#1
Hello folks!
Starting with developing my own trading apps I faced up to a couple of questions!

1) How to store streaming market data (DOM, Time&Sales) when:
a) The data are displayed in the UI on the graph and at the same time are analyzed in real time.
b) The data are used for testing algorithms and trading strategies

2) How Time & Sales is formed.
Does it represent itself an original "Full Order Log" or sorted "Full Order Log"?
As far as I know, Depth of Market (DOM) represents itself as a sorted "Full Order Log".
Does the similar principle work for the Time&Sales (Tape) calculation?

3) In a classic trading terminal the last candlestick on the chart is usually floating and changes within one second. This last candle also depends on the best BID/ASK. Need to understand based on what price (BID or ASK) the last candlestick fluctuates.

4) In some trading terminals such data as Time&Sales and DOM are aggregated into larger time frames (e.g. msec. -> sec. -> min etc.). What is the formula which is used for aggregation?

Will appreciate your assistance!

Thanks,
Nick
 
#2
Hello folks!
Starting with developing my own trading apps I faced up to a couple of questions!

1) How to store streaming market data (DOM, Time&Sales) when:
a) The data are displayed in the UI on the graph and at the same time are analyzed in real time.
b) The data are used for testing algorithms and trading strategies

2) How Time & Sales is formed.
Does it represent itself an original "Full Order Log" or sorted "Full Order Log"?
As far as I know, Depth of Market (DOM) represents itself as a sorted "Full Order Log".
Does the similar principle work for the Time&Sales (Tape) calculation?

3) In a classic trading terminal the last candlestick on the chart is usually floating and changes within one second. This last candle also depends on the best BID/ASK. Need to understand based on what price (BID or ASK) the last candlestick fluctuates.

4) In some trading terminals such data as Time&Sales and DOM are aggregated into larger time frames (e.g. msec. -> sec. -> min etc.). What is the formula which is used for aggregation?

Will appreciate your assistance!

Thanks,
Nick
You can write a program to extract Time and Sales from terminal and export to some sql database with every tick.
The key here is to see T&S trade delta for Nifty, Banknifty futures and stocks together as a whole system.
For example in morning a big buying pressure developed in Reliance and Nifty went up. after two hours big selling pressure came in HDFC and market went down. So watching Nifty, Banknifty future alone won't help. You have to see this for major stocks simultaneously. Otherwise T&S is best indicator to predict intraday moves. Watch this video to get some idea.