Is there currently any way to access the Time and Sales data from within a custom indicator script?
I am interested in building a simple counter that dynamically sums up all of the sales that print to the Tick Stream—where every green print would add to the running total and every red print subtracts from the running total.
During fast market activity, it is hard to get a sense of whether buyers/sellers are in control from the frantic flurry of prints that populate the Tick Stream.
For example, it is impossible from a quick glance at the info below to get a sense for whether price has been trending up or down—this is the case even when sale info is colored green/red, as in the Tick Stream (for the purposes of this example I have used negative number wherever Tradovate would have colored the line in red).
However, a simple counter (as shown at the bottom), would allow one to get an instant idea as to the momentum/direction of the current price.
Any thoughts on how to implement this?
timestamp price size
11:46:46 $1,263 5
11:46:45 $1,261 3
11:46:44 $1,260 -1
11:46:43 $1,262 1
11:46:42 $1,259 2
11:46:41 $1,258 -5
11:46:40 $1,259 2
11:46:39 $1,256 -4
11:46:38 $1,258 -1
11:46:37 $1,260 -3
11:46:36 $1,263 -4
11:46:35 $1,266 -5
11:46:34 $1,267 5
11:46:33 $1,265 1
11:46:32 $1,263 2
11:46:31 $1,260 -4
11:46:30 $1,261 4
11:46:29 $1,257 -5
11:46:28 $1,258 2
11:46:27 $1,257 -1
11:46:26 $1,260 3
11:46:25 $1,256 5
11:46:24 $1,254 3
11:46:23 $1,254 1
11:46:22 $1,251 4
11:46:21 $1,248 -3
11:46:20 $1,249 3
11:46:19 $1,248 -4
Tick Counter:
Green Sales: 46
Red Sales: -40
Tape Balance 6