images/contents.gifimages/index.gifimages/prev1.gifimages/next1.gif

TDMA I Parameters

images/demark00000056.gif

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 projection (Proj.) factor is provided. This shifts the output to the right by X percent of the moving average length (rounded to the nearest integer number of bars). Both the MA computations and the determination of the drawing intervals are done in sync with the input data; the TD Price Projector simply delays the final output by some number of bars.