The example shows how to use custom code and build in financial functions. In this case the chart displays Directional Movement indicators as a separate plot.

The Directional Movement System consists of three lines:
The Positive Direction Indicator (+DI) summarizes upward trend movement;
The Negative Direction Indicator (-DI) summarizes downward trend movement;
The Average Directional Movement Index (ADX) indicates whether the market is trending or ranging.

Directional Movement

 
 

Example Controls

Period: