Skip to content

DIPlus Property

Summary

The Positive Direction Indicator (+DI) indicates upward trend movement.

Signature

1
public abstract IndicatorDataSeries DIPlus {get;}

Return Value

IndicatorDataSeries

Declaring Type

cAlgo.API.Indicators.DirectionalMovementSystem

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 //...
 [Robot]
 public class SampleRobot : Robot
 //...
 private DirectionalMovementSystem _dms;
 protected override void Initialize()
 {
     _dms = Indicators.DirectionalMovementSystem(Period);
 }
 //...
 protected override void OnBar()
 {
     Print("The Current Positive Direction Indicator (+DI) is: {0}", _dms.DIPlus.LastValue);
 }
 //...

Last update: July 1, 2022

Comments