Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
1. To obtain T&S information in real-time from ACSIL: GetTimeAndSales()
2. To access to the T&S information within a bar historically from ACSIL:
- GetTimeAndSales() is not adapted
- There are some solutions to precisely identify to the tick all the individual ticks belonging to a given bar. For instance, I have proposed above a code which "synchronizes" the main chart and a secondary 1-tick chart based on the progress of volume. But these solutions are rather heavy and complicated.
- "sc.GetNearestMatchForDateTimeIndex" allows identifying the ticks of a secondary 1-tick chart belonging to a given bar, but there are some discrepancies due to the "timestamp effect". However, the 2 examples above show that the correspondence is not too bad.
- Overlays could also be used. This solution has not been tested, since similar to the previous (with respect to timestamp effect) and a little more complicated.
3. I am absolutely impressed by the possibilities of Sierra Chart.
The next 4 messages will be related to @yonatan's original question: use in real-time of SC's Time & Sales information obtained by sc.GetTimeAndSales()
Example A: emulation of the volume of the bar by using the real-time information in SC's Time & Sales (obtained by sc.GetTimeAndSales())
The tricky part is to identify the first trade of the bar within the T&S.
I have simply checked the date/time of the T&S trades versus the date/time of the beginning of the bar.
It entails that the emulation is exact for time charts (for instance: 2-min chart), but there could be a discrepancy for other kinds of charts (timestamp effect). This discrepancy could not be greater than 1s.
Example B: emulation of the pullback column by using the real-time information in SC's Time & Sales (obtained by sc.GetTimeAndSales())
We are not going to emulate the whole pullback column, but only the total delta of the pullback. The same logic could be used to emulate any part of the pullback column.
As for the previous example, we have to identify the first trade of the bar within the T&S.
I have simply checked the date/time of the T&S trades versus the date/time of the beginning of the bar.
It entails that the emulation is exact for time charts (for instance: 2-min chart), but there could be a discrepancy for other kinds of charts (timestamp effect). This discrepancy could not be greater than 1s.
sc.GetTimeAndSales() gives access to the T&S, but also to the ever-changing first bid and ask levels of the DOM between actual trades.
I mean...
Of course, sc.GetTimeAndSales() gives access to the content of the T&S window, with all successive actual trades, their size, and their status (bid or ask).
But sc.GetTimeAndSales() also gives access to the changing values of best ask/best bid (1st bid and ask levels of the DOM) between the actual trades.
To have confirmation of it, you can plot built-in study "Times and Sales BidSize" (based on sc.GetTimeAndSales) and a 1-tick chart.
You will see that the value of this study changes even if no trade takes places (no new tick).
You can compare the value of this study with the DOM of your broker (no link with SC).
They are the same.
(So, when you use sc.GetTimeAndSales, it is important to distinguish between (i) actual trades and (ii) actualization of the DOM without trade. I have shown a way to do it in my above codes.)
Hi Nicolas11
I wanted to Time and Sales Time studies. Add Ask Bid/Size Filter input settings. Available is only Volume Filter. Very need this to study spreadsheet.