TDMA I Parameters
This study draws interrupted moving average lines. Two moving averages are
drawn, but only when particular conditions hold.
Moving average A is computed on the High prices (actually on any selectable
price, but High would typically be used). Moving average B is computed on the
Low prices (again selectable). Moving average type and length are selectable,
but the same type and length parameters are used for both A and B.
The averages are computed continuously (this makes a difference for
exponential averages, for example). But they are drawn only in intervals determined by
the following conditions. A count parameter C and a length parameter L are used.
Line A begins to be drawn whenever the High price is strictly less than all
C-1 preceding Highs. The line continues to be drawn while this condition remains
true, and for L-1 additional bars when it ceases to be true. (No gap occurs
if the condition becomes true again within L bars.)
Line B begins to be drawn whenever the Low price is strictly greater than all
C-1 preceding Lows. The line continues to be drawn while this condition
remains true, and for L-1 additional bars when it ceases to be true.
Two scaling factors are provided, each of which scales the values of one line
by an absolute multiple.
In addition, a