TwinDragons Indicator

 

This indicator has two lines (high=buffer(0) and low=buffer(1)). Essentially, when both lines are low it is a buy signal, and when both lines are high it is a sell signal. Also, the distance between the two lines is a measure of price stability (the greater the distance, the more instability there is in price).

The key input is TD_Index - this should be between 3 and 5. It can be higher, but it is recommended to not exceed 8.

Both lines can be smoothed using the following "standard" MA inputs:

TD_Period - number of bars for moving average

TD_Shift - moving average shift

TD_Method - moving average method

Shift - index for bar to calculate average

(See iMAOnArray() for more details)

The unsmoothed lines are accessed by setting TD_Period=1.

High and low level inputs were added for convenience.

If you try to use this, please post your comments. Thanks.

Screenshot of TwinDragons Indicator: