De Marker |
DeMarker Indicator demonstrates phases of price depletion which usually correspond to price lows or highs. It fluctuates from 0 to 1. Downward movement in prices is expected if the parameter of the indicator moves above the 0.7 mark. Upward movement in prices is expected if the indicator moves below the 0.3 mark.
As the indicator moves above the 0.7 level, prices are predicted to go down. Therefore, it is a signal to sell short. If the indicator is under the 0.3 level, prices are predicted to go up. It is a signal to go long.
where N is the period for calculating indicator values.
To initialize DeMarker indicator, use one of the following constructors:
DeMarker – set default values: period = 14
DeMarker(Int32) – set values for period
DeMarker(TimeSpan) – set time period
Use
DeMark - property to get current value.
1// Create new instance 2DeMarker dem = new DeMarker(28); 3 4// Number of stored values 5dem.HistoryCapacity = 2; 6 7// Add new data point 8dem.Add(Bars.Current.Open, Bars.Current.High, Bars.Current.Low, Bars.Current.Close, Bars.Current.Volume, CurrentTime); 9 10// Get indicator value 11double IndicatorValue = dem.DeMark; 12// Get previous value 13if (dem.HistoryCount == 2) 14{ 15 double IndicatorPrevValue = dem[1]; 16}