DYO: Tick Volume Ticker example
|
Q: I attach the DYO template in case you find time to look at it. The trades will start in section 6 as they come in and then "move left" along the bottom sections, with each trade being highlighted in red or green depending upon whether the bid was hit or the offer.
A: With some new features for putting a label in a section, I have consolidated your template to a single DYO as shown here.

Line A gets the Tick Volume and Line B tests that this value is above a threshold, such as 10, so small values are ignored.
Line C is the Flag for whether the tick is at the Bid or at the Ask.
Line D shifts an array of values leftward for each new tick volume processed. GV[1]..[6] will hold the last 6 tick volume values. GV[11]..[17] will hold the last 6 Flags used for coloring the background of the section window Green or Red. Green for True (at Ask) and Red for False (at Bid).
Lines E through J show values in the 6 section windows. If the Line's Flag is True, the Green background color is used. If the Line's Flag is False, Red is used.
The Line label begins with the section window number such as |1| for showing the label in Section 1. The label to show is the GV number in integer format, such as [1`] shows GV[1] as in integer. This useful example can be downloaded from Internet Services.
Template: 1688-Ticker
Last modified 8/24/09 5:46 PM
|