Summary

Returns true, if dataseries1 has crossed above dataseries2, over the specified Period.

Syntax

HasCrossedAbove(DataSeries crossingSeries, DataSeries crossedSeries, int period)

Parameters

Example

SimpleMovingAverage sma;

protected override void Initialize()
{
    sma = Indicators.SimpleMovingAverage(source, period);
}

public override void Calculate(int index)
{
    if(Functions.HasCrossedAbove(sma.Result, MarketSeries.Close,0){
    {
        //Do something
    }
}