CrossAbove()
<< Click to Display Table of Contents >> CrossAbove() |
Evaluates a cross above condition over the specified bar look-back period.
Note: This method does not return true if both series being compared have equal values on the current or previous bar with a lookbackPeriod of 1. |
This method returns true if a cross above condition occurred; otherwise, false.
lookBackPeriod |
Number of bars back to check the cross above condition |
series1 & series2 |
Any Series<double> type object such as an indicator, Close, High, Low, etc... |
value |
Any double value |
protected override void OnBarUpdate() // Go short if CCI crossed above 250 within the last bar } |