Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 02:28:56 +0000



Time/Sales Window: Is there a way to have it auto-clear lines older than X seconds ?

View Count: 1631

[2020-11-19 17:06:29]
User277997 - Posts: 22
Looking to have it clear out any lines that are older than some set time...probably 2-3 seconds. Only want to see the most recent activity.

Any settings or studies ?
[2020-11-19 17:14:22]
John - SC Support - Posts: 36309
The only setting for this is the number of Time and Sales records to keep. Refer to the information here:
Data/Trade Service Settings: Number of Stored Time and Sales Records (Global Settings >> Data/Trade Service Settings >> Common Settings >> Common Other Settings)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2020-11-19 18:05:19]
User277997 - Posts: 22
John - thanks for the quick guidance. This setting stores trade count...what I was hoping to find is a setting or study that's time based so any trade on the T/S clears some numbers of seconds after the trade executes. With the StoredTimeSalesRecords setting, the window may have trades from 5-10 minutes in a slow market and I'd like to have those automatically cleared out. Thanks.
[2020-11-20 09:50:22]
Sierra Chart Engineering - Posts: 104368
What you are looking for is not supported.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-06-13 16:26:44]
sean3000 - Posts: 53
+1

This feature would be especially useful when using a filtered T&S because the displayed records become very stale during slow periods.

Having T&S records auto-clear after a user-defined time period would make it much easier to spot activity without needing to reference timestamps.
[2022-06-27 14:57:15]
sean3000 - Posts: 53
I created an AutoHotkey script that clears time and sales when a hotkey is pressed. It would still be nice to have native support for time-based auto-clearing and hotkey functionality, but this script is a decent workaround.

The script takes the coordinate of the Clear menu item on the T&S windows and sends a click input to that location when the hotkey is pressed. It records the mouse location prior to the click and returns the cursor to its original location after the input is sent.

To determine the coordinates on your screen, right click the AutoHotkey app icon in the taskbar and select Window Spy. Hover your cursor over the T&S Clear menu item and note the Screen coordinates in the Mouse Position box (do not use the window or client options).


#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

#Persistent
#SingleInstance force

SetMouseDelay, -1
CoordMode, Mouse, Screen

; Automatically reload script upon changes, not required but useful when editing the script

SetTimer,UPDATEDSCRIPT,500

UPDATEDSCRIPT:

FileGetAttrib,attribs,%A_ScriptFullPath%

IfInString,attribs,A
{
FileSetAttrib,-A,%A_ScriptFullPath%

SplashTextOn,,,Updated script,

Sleep,500
Reload
}


; Clear T&S when ALT+C is pressed
; Refer to AutoHotkey documentation to set up your own hotkey: autohotkey.com/docs/Hotkeys.htm

!c::

BlockInput MouseMove

MouseGetPos, x, y

Click, 3240 940

MouseMove, x, y, 0

BlockInput MouseMoveOff

return

[2022-06-29 17:49:59]
User277997 - Posts: 22
I've taken a simple approach (I think).

I created a 1-second chart for ES with a VbP study that aggregates the past 3 bars and filter out trades below 20 carts. I set the scale so the current price is always centered. I make the chart narrow enough so I ONLY see the most current bar (which only the past 3 seconds of trading).

What I end up with is a view of the past 3 seconds of trades over 20.

Probably not programatically elegant but it tells me what I want to know.
[2022-07-06 03:03:39]
sean3000 - Posts: 53
That's a good idea. I made something similar.

I created two 1-second charts and added the Bid Volume study to one and the Ask Volume study to the other, with the studies set to display as the main price graph.

Each chart also has a time and sales window below, filtered to only show bid or ask trades. I also have text displays showing a sum of the last three periods (seconds).

This makes it really clear which side is being more aggressive.
imagetime and sales.png / V - Attached On 2022-07-06 02:56:33 UTC - Size: 80.13 KB - 265 views
[2023-10-07 16:15:30]
User595055 - Posts: 6
Sean3000
Would you be so kind to link your .cht for that pic?

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account