Reset()
<< Click to Display Table of Contents >> Reset() |
Resets the internal marker which is used for IsValidDataPoint() back to false. Calling the Reset() method is unique and can be very powerful for custom indicator development. Series<T> objects will always contain a value which is assigned, however calling Reset() simply means you effectively ignore the value of the current bar for plotting purposes. For calculation purposes you will want to use IsValidDataPoint() to ensure you are not calculating off of any reset values assigned by the Reset() method.
Series Type |
Value after Reset() |
Series<bool> |
false |
Series<double> |
0.00 |
Series<DateTime> |
DateTime.MinValue |
Series<float> |
0 |
Series<int> |
0 |
Series<long> |
0 |
Series<string> |
null |
This method does not return a value
Reset()
Reset(int barsAgo)
barsAgo |
An int representing from the current bar the number of historical bars the method will check. If no barsAgo value is supplied, the current bar value will be reset instead (barsAgo 0) |
protected override void OnBarUpdate() |